[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] problem with one example in http://www.w3.org/TR/xslt-30/ #stream-examples

Subject: [xsl] problem with one example in http://www.w3.org/TR/xslt-30/ #stream-examples
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 8 Oct 2014 17:22:03 -0000

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()"/>

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"

   <xsl:stream href="book.xml">
      <xsl:apply-templates mode="delete-ednotes"/>

Current Thread