Bug 29194

Summary: xml-namespaces not supported
Product: Taglibs Reporter: Jesper Zedlitz <jesper>
Component: XTags TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED LATER    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: class for the bindNamespace tag
adds the bindNamespace tag to jakarta-taglibs/xtags/xml/xtags.xml

Description Jesper Zedlitz 2004-05-25 07:34:10 UTC
It seems that the XTags taglib does not support xml-namespaces. Example: 
<xtags:parse> 
  <test><foo:bar xmlns:foo="http://foo.bar">Test</foo:bar></test> 
</xtags:parse> 
<xtag:forEach select="//foo:bar">found</xtags:forEach> 
does not find the element.  
 
The prefix has to be bound to the namespace URI somewhere. I suggest a new tag 
element 
<xtag:bindNamespace prefix="foo" uri="http://foo.bar"/> 
which adds the namespace binding to the context of the xpath expression.
Comment 1 Jesper Zedlitz 2004-05-25 10:48:18 UTC
Created attachment 11649 [details]
class for the bindNamespace tag
Comment 2 Jesper Zedlitz 2004-05-25 10:49:31 UTC
dom4j >= 1.2 is needed for good xml-namespace support in xpath expressions 
Comment 3 Jesper Zedlitz 2004-05-25 10:53:37 UTC
Created attachment 11650 [details]
adds the bindNamespace tag to jakarta-taglibs/xtags/xml/xtags.xml
Comment 4 Henri Yandell 2009-11-29 19:47:56 UTC
Resolving. Taglib has been retired.