[Bug 29478] [XSLT30] Allow selecting all component types inside xsl:accept/xsl:expose

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29478

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
Proposal:

For xsl:expose and xsl:accept:

(a) Allow the value component="*", meaning all kinds of component.

(b) If component="*" is specified, then every token in the *names* attribute
must be a Wildcard (static error if not).

(c) The effect of specifying component="*" is equivalent to replicating the
declaration five times with the same values for the names and visibility
attributes, and each of the five permitted values for the component attribute.

I decided not to propose changes along the lines "if there is an xsl:accept,
then the default changes to "don't accept anything unless specified". I tried
drafting such rules and they get complex; the change is substantive and there's
a high risk of getting it wrong. I think the changes above are enough: you just
have to add 

<xsl:accept component="*" names="*"/>

to flip the default.

For xsl:expose the changes get even more intricate because of the interaction
with explicit visibility attributes.

I prefer component="*" rather than component="all" or component="#all" because
of the proximity of the names attribute where "*" means "all names".

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

Received on Tuesday, 23 February 2016 23:11:52 UTC