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

namespace aware java-xpathapi problem

Subject: namespace aware java-xpathapi problem
From: "Sanjay Pandey/Towers Perrin" <pandeys@xxxxxxxxxx>
Date: Mon, 12 Nov 2001 12:23:59 -0500
java xpathapi
Hello List,

I have my xml doc like below

<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns="
http://www.x.com/XYZ"  type="X">
<level1>
     <level2 xsi:type = 'someValue'>
          <details>description</details>
     </level2>
</level1>

</Root>

If I try to get to the level2 node by using xpathStr as "//xs:level2[@type
= 'someValue']", I am unable to get the node. If I remove "xsi:" from the
XML, then the same XPath works fine. I am using Xalan and here is a code
snippet.

                Nodelist nl =
XPathAPI.eval(rootNode,xpathStr,prefixResolver).nodelist();

Any help would be highly appreciated.

Thanks,
Sanjay


 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.