![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: still problems with XPath and namespaces... [Thread Next] Re: still problems with XPath and namespaces...To: NULL Date: 1/3/2005 7:56:00 PM Stefan Franke wrote: > I'm using FiveSight's XPathTester (Version 1.4 for Saxon - 3 December 2001). > When I try something like "//*/cd:TITEL" an error message comes up and tells > me that 'Prefix cd has not been declared'. So I thought, oh well, I have to > find a way around this problem. Am I wrong in thinking that? No, you need to bind that prefix to the proper namespace but an XPath tool should give you a way to do that before evaluating an expression. I don't know FiveSight's XPathTester and it seems it is no longer available on their web site. Saxon 6.5 as documented here <http://saxon.sourceforge.net/saxon6.5.3/api-guide.html#Expressions> has a method declareNamespace in its XPath API so with Java and Saxon it should be possible to bind prfixes to namespaces before evaluating an expression. -- Martin Honnen http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
