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

Re: resolving namespace for attribute content with a

Subject: Re: resolving namespace for attribute content with a QName
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Fri, 23 Sep 2005 12:14:40 +0300
resolving namespaces
Ramkumar Menon wrote:

<customer idName="tns:customerId" xmlns:tns="http://abcd.org">Sample Customer</customer>
.....


Here, i need to resolve the namespace for customerId.


If you are talking about XSLT, you can use sting related functions to test for URIs obtained using the namespace axis, see [1]. If you are not talking about XSLT and regarding JAXP; it's just a bootstrap API to get an XML parser and nothing more. How you resolve NS URIs for QName attribute values depends on the API you use to process XML. Usually you just need to build a prefix:URI map as you go and then again use string functions on attribute values.



[1] http://www.google.com/search?hl=en&lr=&q=%22matching+attribute+values+with+namespaces%22&btnG=Search


hth,

Manos

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.