<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9978</bug_id>
          
          <creation_ts>2010-06-22 13:29:07 +0000</creation_ts>
          <short_desc>[XSLT] xsl:analyze-string select returning non-xs:string</short_desc>
          <delta_ts>2010-07-15 10:22:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 2.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xslt20/#element-analyze-string</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36331</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2010-06-22 13:29:07 +0000</bug_when>
    <thetext>Section 15.1 of XSLT 2.0 states that:

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

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

&quot;[ERR XTTE0520] It is a type error if the sequence returned by the select expression contains an item that is not a node.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36517</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-01 16:59:17 +0000</bug_when>
    <thetext>Decided that this didn&apos;t justify a change to the spec, beyond an editorial clarification that the expected code is XPTY0004.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36907</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 10:22:13 +0000</bug_when>
    <thetext>This clarification will be erratum E53.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>