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 26730 - [XT30TS] error-XPDY0002c
Summary: [XT30TS] error-XPDY0002c
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-04 16:19 UTC by Tim Mills
Modified: 2014-09-05 08:48 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2014-09-04 16:19:59 UTC
The test case stylesheet error-XPDY0002c.xsl doesn't seem to match up with the intent of the test.

   <test-case name="error-XPDY0002c">
      <description>error: context item is not set on entry to a stylesheet function. Was error-code-025.</description>
      <created by="Michael Kay" on="2012-11-07"/>
      <environment ref="error001"/>
      <dependencies>
         <spec value="XSLT20+"/>
      </dependencies>
      <test>
         <stylesheet file="error-XPDY0002c.xsl"/>
      </test>
      <result>
         <error code="XPDY0002"/>
      </result>
   </test-case>


<?xml version="1.0"?> 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

<!-- Error: XPath syntax -->
<?spec xpath#errors?><?error XPST0003?>

  <xsl:template match="doc">
    <out>
      <xsl:value-of select="@undeclared:*"/> 
      <xsl:message>Error not detected!</xsl:message>
    </out>
  </xsl:template>

</xsl:stylesheet>
Comment 1 Michael Kay 2014-09-04 17:21:33 UTC
Thanks, fixed.
Comment 2 Tim Mills 2014-09-05 08:48:15 UTC
Confirmed fixed.  Thanks.