Mantis - Resin
Viewing Issue Advanced Details
23 minor always 03-08-05 00:00 01-25-06 11:04
jjongsma  
ferg  
normal  
closed  
fixed  
none    
none 3.0.18  
0000023: JSTL <x:out>: XPath doesn't work with namespaced elements.
RSN-14
For a sample XML document:

<articles xmlns:articles="...">
  <articles:article id="test" flag="yes">
     ...
  </articles:article>
</articles>

Using the following JSTl does not work in Resin 3 - it does in Resin 2.

<x:out select="$parsedXml/articles/articles:article[@flag='yes']"/>

It DOES work when I use a wildcard in place of the namespaced element name:

<x:out select="$parsedXml/articles/*[@flag='yes']"/>
Resin 3.0.11, Java 1.4.2

Notes
(0000776)
ferg   
01-25-06 11:04   
jsp/1g14