This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The use of a variable in use-attribute-sets attribute


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]