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

RE: Modifying namespace definitions in xs:schema eleme

Subject: RE: Modifying namespace definitions in xs:schema elements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 10 Oct 2009 20:21:11 +0100
RE:  Modifying namespace definitions in xs:schema eleme
> Exploring the set of attributes in xs:schema (by <xsl:choose> 
> <xsl:when test="true()"> <xsl:value-of
> select="concat(namespace-uri(),local-name())"/>...) has shown 
> me that the namespace definitions (xmlns="...") are not 
> passed to template processing.

The namespace declarations appear in the data model in the form of namespace
nodes, and are available on the namespace axis (they are not attribute nodes
on the attribute axis). You can process them using the XPath expression
namespace::*. However, you cannot process them using template rules, because
there is no match pattern that will match namespace nodes.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

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.