Subject: [xsl] namespace aware java-xpathapi problem From: "Sanjay Pandey/Towers Perrin" <pandeys@xxxxxxxxxx> Date: Mon, 12 Nov 2001 12:23:59 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: XSL-List Digest V3 #1251,, challa sumalatha | Thread | Re: [xsl] namespace aware java-xpat, Jeni Tennison |
[xsl] XSL Grouping, David B. Bitton | Date | [xsl] Re: XSL-List Digest V3 #1251, challa sumalatha |
Month |