|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








