Names in XSLT

XSLT allows for reusing stylesheet "pieces" using <xsl:include> and
<xsl:import>. This create a potential for the existence of libraries of XSLT
"pieces". However the use of such libraries will be limited as long as
there's no way to ensure there are no collisions between separate "pieces".
XSLT already provides the basic mechanisms for avoiding such collisions,
using template modes and names. However these names must currently be simple
names - that is, they can't make use of the namespace mechanism.

A possible solution would be to allow the "name" and "mode" attributes for
all <xsl:*> tags to accept a QName. Currently only the name of an
<xsl:element> or <xsl:attribute> may be a QName. The rules for expanding the
QName would be the same as the current rules for <xsl:element> and
<xsl:attribute>, with the exception that the rest of the tags do not have a
"namespace" attribute. This can be viewed as a simplification of the current
state where there are two types of "name" attributes.

Thanks,

    Oren Ben-Kiki

Received on Wednesday, 19 May 1999 06:48:57 UTC