This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2290 - [XQueryX] Use of ./text()
Summary: [XQueryX] Use of ./text()
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQueryX 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 16:55 UTC by Michael Kay
Modified: 2005-09-27 08:03 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-09-22 16:55:39 UTC
The XQueryX stylesheet makes frequent use of constructs like:

<xsl:value-of select="xqx:value/text()"/>

This produces incorrect results if xqx:value contains comments or processing
instructions. Since there's no intrinsic reason to ban comments and PIs (and
nothing in the spec that says they are banned), it's better practice to use

<xsl:value-of select="xqx:value"/>

Michael Kay
Comment 1 Jim Melton 2005-09-26 22:36:04 UTC
Many thanks for your comment.  We have made the change that you suggest, both
for instances of "xqx:value/text()" and instances of "xqx:name/text()". 

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG's decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the Status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.