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 9978 - [XSLT] xsl:analyze-string select returning non-xs:string
Summary: [XSLT] xsl:analyze-string select returning non-xs:string
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://www.w3.org/TR/xslt20/#element-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 13:29 UTC by Tim Mills
Modified: 2010-07-15 10:22 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2010-06-22 13:29:07 UTC
Section 15.1 of XSLT 2.0 states that:

"If the result of evaluating the select  expression is not a string, it is converted to a string by applying the function conversion rules."

Should function conversion fail XPTY0004 will be raised.  It would be nice if an XTTE error code had been assigned to this condition.

Compare with xsl:apply-templates

"[ERR XTTE0520] It is a type error if the sequence returned by the select expression contains an item that is not a node."
Comment 1 Michael Kay 2010-07-01 16:59:17 UTC
Decided that this didn't justify a change to the spec, beyond an editorial clarification that the expected code is XPTY0004.
Comment 2 Michael Kay 2010-07-15 10:22:13 UTC
This clarification will be erratum E53.