You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2003/07/29 11:31:57 UTC
DO NOT REPLY [Bug 21957] New: -
Setting xpath namespace bindings?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21957>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21957
Setting xpath namespace bindings?
Summary: Setting xpath namespace bindings?
Product: Velocity
Version: 1.3.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Anakia
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: apache-biz@pcal.net
Apologies in advance if I'm missing something, but I cannot see any way to
declare the namespace declarations that I want to use when evaluating an xpath
in a template. Unless my entire document is in no namespace, I seem to be out
of luck.
For example, if I have a document
<foo xmlns='bar.com'><baz/></foo>
I can't evaluate something like
$root.selectNodes("myns:baz")
without a way to map 'myns' to 'bar.com' in the xpath context.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org