This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: The use of a variable in use-attribute-sets attribute
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] The use of a variable in use-attribute-sets attribute
- From: Daniel Veillard <Daniel dot Veillard at imag dot fr>
- Date: Tue, 15 May 2001 11:16:07 +0200
- References: <20010515072605.75024.qmail@web12608.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Tue, May 15, 2001 at 12:26:05AM -0700, Dan Diebolt wrote:
> Appendix C of teh XSLT spec states:
>
> "Any of the elements declared in this DTD may have attributes whose
> name starts with xmlns: or is equal to xmlns in addition to the
> attributes declared in this DTD."
>
> I take it that every xsl element can have an attribute that starts
> with xmlns. Admittedly this isn't seen on most xsl elements. What
> does it mean when it occurs on say an xsl:if element?
>
> <xsl:if test="position()=last()" xmlns:ns="http://www.foo.org/">
>
> </xsl:if>
Simply that you can use this namespace for childs of the xsl:if element,
this can be useful, isn't it ? This can also be one one the extension prefix
and maybe be used for an attribute on the xsl:if itself (the use of
such an prefix for documentation or QA comes to mind).
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list