[Bug 9721] [XSLT 2.1] Support for chameleon modes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9721

Michael Kay <mike@saxonica.com> changed:

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

--- Comment #2 from Michael Kay <mike@saxonica.com> 2011-06-08 21:16:35 UTC ---
The minutes of the Prague F2F (March 2011) record:

We believe our work on packaging satisfies this requirement. (Hint: write a
wrapper stylesheet that includes the other; add a mode to the wrapper with a
rule that calls apply-templates on the current node, in the default mode;
package the result; the default mode is now private to the package.)

To expand this, the essence of the requirement is to be able to use multiple
modules that were each written to use the unnamed mode and integrate them into
a single stylesheet. We can now do this by putting each of the modules in its
own package, with a wrapper that does:

<xsl:template match="~item()" mode="M">
  <xsl:apply-templates/>
</xsl:template>

and then make "M" a public mode in this package, and the unnamed mode private
to the package.

I have captured a note on this approach as a note in the spec, which will be
expanded, so I am marking the bug fixed.

Evan, if you are happy with this outcome, please close the bug. (Alternatively,
feel free to wait until you have seen the spec.)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 8 June 2011 21:16:38 UTC