[Bug 26999] New: [xslt 3.0] Problems with streaming example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 26999] New: [xslt 3.0] Problems with streaming example

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26999

            Bug ID: 26999
           Summary: [xslt 3.0] Problems with streaming example
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

>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>

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 26999] [xslt 3.0] Problems with streaming example

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26999

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Michael Kay <[hidden email]> ---
The WG agreed that the example is lacking a mode attribute.

--
You are receiving this mail because:
You are the QA Contact for the bug.