W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 1999

Names in XSLT

From: Oren Ben-Kiki <oren@capella.co.il>
Date: Wed, 19 May 1999 12:46:24 +0200
Message-ID: <028001bea1e4$d6dd10e0$5402a8c0@oren.capella.co.il>
To: <xsl-editors@w3.org>
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.


    Oren Ben-Kiki
Received on Wednesday, 19 May 1999 06:48:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:16 UTC