From: Sonali J. Kanaujia <sonali@so...> - 2001-10-08 14:53:23
Can Saxon 6.4.3 's XPath APIs resolve namespace references,
within an XPath expression ?
If not then please can you suggest a way to get around this problem.
Basically, the question is how to evaluate XPath Expressions that
namespace tags ?
From: Michael Kay <mhkay@ic...> - 2001-10-08 15:11:28
> Can Saxon 6.4.3 's XPath APIs resolve namespace references,
> within an XPath expression ?
When you construct an Expression using Expression.make(), the second
argument is a StaticContext. The StaticContext object provides methods that
are used to resolve namespace prefixes (as well as variable references, base
URIs, etc). For many purposes it's simplest to supply a
com.icl.saxon.expr.StandaloneContext, which implements StaticContext. The
StandaloneContext has a method declareNamespace() which allows you to
associate a namespace prefix with a URI.
Get latest updates about Open Source Projects, Conferences and News.