I think you're confused about what the parameters mean. In the XPath
wrapper example, the first XPath that's created is used to locate the
context node in the document to use for evaluating the second XPath, which
is the expression that you wish to evaluate. So, for example:
XPathWrapper foo.xml "/" "//*/@*"
would parse the file foo.xml, locate the root node, then use that as the
context for evaluating the second expression which would find all of the
attributes in the document.
So in this case "context" is a string containing the XPath expression that
is used to locate the context node.
Dave
Matt Leinhos
<matt@granula To: [EMAIL PROTECTED]
rity.net> cc: (bcc: David N Bertoni/CAM/Lotus)
Subject: C++ Xalan API question
06/19/2001
05:00 PM
Please
respond to
xalan-dev
Hello,
I've a question about the xalan C++ 1.1 API. According to the
documentation, the second argument of XPathProcessorImpl::initXPath is the
XPath expression; however, in the XPathWrapper example, the context is the
second argument.
Would someone please clarify?
Thank you for your time,
Matt
------------------------------------
Matt Leinhos
Granularity Information Architecture
- C++ Xalan API question Matt Leinhos
- David_N_Bertoni
