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 1227 - Error in first example in 15.3?
Summary: Error in first example in 15.3?
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 10:36 UTC by Norman Walsh
Modified: 2005-07-21 18:45 UTC (History)
0 users

See Also:


Attachments

Description Norman Walsh 2005-04-08 10:36:26 UTC
The content model summary of xsl:analyze-string reads, in part:

  (xsl:matching-substring?, xsl:non-matching-substring?, xsl:fallback*)

But the first example in 15.3 uses:

  <xsl:analyze-string ...>
    <xsl:non-matching-substring>...</>
    <xsl:matchign-substring>...</>
  </>

Which is not technically allowed (as the child elements are in the wrong
order).
Comment 1 Michael Kay 2005-04-28 17:42:30 UTC
Decided to fix the example to match the current grammar (after discussing
whether to change the grammar instead).
Comment 2 Michael Kay 2005-05-03 13:56:03 UTC
Example fixed in draft Y