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

RE: Namespace prefixes in Schemas

Subject: RE: Namespace prefixes in Schemas
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 16 Aug 2006 10:51:18 +0100
RE:  Namespace prefixes in Schemas
> But nevertheless i lied about my actual problem, (gee, i'm 
> watching too much "House") cause i was afraid that the 
> moderator will come by saying this is not a XSL question... 

I think XPath is in-scope for this list.

> 
> My problem is that i'm using Sarissa to get some Schema nodes 
> using XPath, like this
> 
> var nodes = xmlSchema.selectNodes("//xs:element");
> 
> after declaring
> 
> Sarissa.setXpathNamespaces(xmlSchema,
> 'xmlns:xs="http://www.w3.org/2001/XMLSchema"');
> 
> It seems that this is about the same situation you've pointed 
> in your answer, but that is not working

Without reading the Sarissa specs I would certainly expect it to work. (That
is, to match the namespace URI rather than the prefix). Sounds as if your
issue might be specific to Sarissa, or to the XPath processor in your
particular browser; or it might be some misunderstanding.

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

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.