Bug 29194 - xml-namespaces not supported
Summary: xml-namespaces not supported
Status: RESOLVED LATER
Alias: None
Product: Taglibs
Classification: Unclassified
Component: XTags Taglib (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal with 1 vote (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 07:34 UTC by Jesper Zedlitz
Modified: 2009-11-29 19:47 UTC (History)
0 users



Attachments
class for the bindNamespace tag (1.65 KB, text/plain)
2004-05-25 10:48 UTC, Jesper Zedlitz
Details
adds the bindNamespace tag to jakarta-taglibs/xtags/xml/xtags.xml (1.14 KB, patch)
2004-05-25 10:53 UTC, Jesper Zedlitz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.