Subject: Re: [xsl] The use of a variable in use-attribute-sets attribute From: Daniel Veillard <Daniel.Veillard@xxxxxxx> Date: Tue, 15 May 2001 11:16:07 +0200 |
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@xxxxxxxxxx | 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] The use of a variable in , Dan Diebolt | Thread | Re: [xsl] The use of a variable in , David Carlisle |
RE: [xsl] The use of a variable in , Dan Diebolt | Date | [xsl] acessing attribute values and, Sebastian Schirmer |
Month |