[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: 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
xsl if attrib
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.