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

RE: Namespace problem

Subject: RE: Namespace problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 25 Sep 2009 09:31:41 +0100
RE:  Namespace problem
> you should have been no outpout,mthis is a syntax error
> 
> <xsl:template match="@xmlns:xsi" />
> 
> xmlns:xsi is not an attribute so can't be accessed with @.

Just to be clear, the reason this is an error is that there is no in-scope
namespace binding for the prefix xmlns. This prefix is used in XML namespace
declarations, and there is a conventional URI to which it corresponds, but
in the XPath data model there is no namespace node corresponding to this
prefix/URI pair, and therefore the prefix cannot be used in QNames within
XPath expressions or match patterns.

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.