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 29205 - [XSLT30] xsl:use-when and shadow attributes on LREs, extension instructions and data elements
Summary: [XSLT30] xsl:use-when and shadow attributes on LREs, extension instructions a...
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: 2015-10-15 16:31 UTC by Abel Braaksma
Modified: 2015-10-28 17:14 UTC (History)
1 user (show)

See Also:


Attachments

Description Abel Braaksma 2015-10-15 16:31:33 UTC
Originally reported on the public XSL WG list: https://lists.w3.org/Archives/Public/public-xsl-wg/2015Oct/0019.html. Relevant parts repeated here:

We say about using xsl:use-when on elements not in the XSLT namespace the following:

"A literal result element, or any other element within a stylesheet module that is not in the XSLT namespace, may similarly carry an xsl:use-when attribute."

We use the words "similarly" and "carry". But we don't seem to explicitly say that the same rules apply, i.e., that if the EBV is false(), the LRE is effectively excluded, including all its children. In the case of data elements and extension instructions I would argue that its behavior on that instruction is implementation defined. Or if not, I think we should explicitly say so. 

----

A proposal to fix this has first been reported here: https://lists.w3.org/Archives/Public/public-xsl-wg/2015Oct/0024.html. 

On the XSLWG telcon of 2015-10-15 this proposal was accepted.
Comment 1 Michael Kay 2015-10-15 21:31:42 UTC
I have moved the sentence ""A literal result element, or any other element within a stylesheet module that is not in the XSLT namespace, may similarly carry an xsl:use-when attribute." to remove this potential misunderstanding.

I have also added a note to the section on shadow attributes to clarify the effect of attributes whose name begins with underscore on literal result elements, extension instructions, and data elements.