Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: still problems with XPath and namespaces...

From: Martin Honnen <mahotrash@-----.-->
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/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent