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 26999 - [xslt 3.0] Problems with streaming example
Summary: [xslt 3.0] Problems with streaming example
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC All
: 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: 2014-10-08 17:31 UTC by Michael Kay
Modified: 2014-10-24 10:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2014-10-08 17:31:48 UTC
From Martin Honnen on xsl-list:

Playing with the examples in http://www.w3.org/TR/xslt-30/#stream-examples I wonder whether the last example saying

------------------------------
Additional template rules could be added to process other elements and attributes in the same pass through the data: for example, to modify the value of a last-updated attribute (wherever it appears) to the current date and time, the following rule suffices:

<xsl:template match="@last-updated">
 <xsl:attribute name="last-updated" select="current-dateTime()"/>
</xsl:template>
-------------------------------

is not lacking a mode="#all" or mode="delete-ednotes" on the

 <xsl:template match="@last-updated">

as otherwise the template would not be applied to the document processed in a streaming way with the stylesheet presented earlier which does

<xsl:mode name="delete-ednotes" streamable="yes"
                               on-no-match="shallow-copy"/>
and

  <xsl:stream href="book.xml">
     <xsl:apply-templates mode="delete-ednotes"/>
  </xsl:stream>
Comment 1 Michael Kay 2014-10-16 16:53:28 UTC
The WG agreed that the example is lacking a mode attribute.