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 25821 - [XSLT30] Use type determined usage (TDU) with streamable templates
Summary: [XSLT30] Use type determined usage (TDU) with streamable templates
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: 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-05-20 01:26 UTC by Abel Braaksma
Modified: 2014-08-02 14:00 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2014-05-20 01:26:33 UTC
(apologies if this was reported before, I thought we discussed this, but I could only find a similar issue in Bug 24109)

I checked the current Working Draft, both internal and public, and the following is considered not guaranteed streamable:

<xsl:template match="author" mode="streamable" as="xs:string">
   <xsl:sequence select="name" />
</xsl:template>

I think we should take the declared type into account with streamability analysis. We already have such rules elsewhere, as from bug 24109, it seems too restrictive to not allow such a construct, especially because I think (but can't claim) that people tend to use xsl:sequence over xsl:value-of nowadays.
Comment 1 Michael Kay 2014-07-27 19:38:13 UTC
The WG accepted this change. The editor has taken the liberty of applying the same change also to streamable stylesheet functions.