xsl:use-when and shadow attributes on LREs, extension instructions and data elements

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. 

Somewhat on the same token, we don't mention how shadow attributes (3.14.2) are treated on extension instructions and/or data elements. We seem to be inclusive (we only mention "where the attribute name is in no namespace and the name of the parent element is in the XSLT namespace"), but then we go on and end the paragraph being exclusive listing where it does not apply. That list does not include extension instructions or data elements, for which I could argue it is implementation dependent.

Not reported in Bugzilla as I'm not sure this is a bug.

Cheers,
Abel

Received on Sunday, 11 October 2015 11:28:37 UTC