[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: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 15 May 2001 10:48:55 +0100
use attribute sets namespace
  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>

It's best to think of xmlns.. as _not_ being an attribute but being a
namespace declaration that is handled by the namespace aware XML parser
_before_ the XSLT engine starts.


So.. that "attribiute" isn't on xsl:if and doesn't affect the way the
XSLT engine treats that instruction but it does, as a consequence of the
XML namespace spec, declare that any XML Names starting ns: occuring on
elements within that xsl:if element refer to the foo.org namespace.
So this would affect literal result elements and attributes and also
Names used in xsl:element etc.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp

 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.