Look at any of the extension functions in XalanExtensions for hints on how
to return an XObject that represents a node list. For that you'll need the
latest sources from CVS. You could also look at the Document() function,
or at any of the other standard XPath/XSLT functions that return node-sets.
Just grep the code for the following string:
createNodeSet
The reason there are XalanNodes and DOM_Nodes is because the Xerces DOM
(DOM_Node) is not designed for derivation, which makes it impossible for us
to use it in Xalan-C++. It also performs very poorly.
Dave
peter
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
y> cc: (bcc: David N Bertoni/CAM/Lotus)
Subject: Newbie : Help with xpath - how
to
07/26/2001 return NodeList ?
10:18 AM
Please
respond to
xalan-dev
Does anybody know where I can get an example of a VC++ XPath routine that
returns a NodeList ? Please provide anything with a *concrete* source code
example, thanks. Why ? I'm quite a newbie at VC++ and there's only so much
geek talk that I can handle :)
I've done advanced XPath in Xalan-Java. Unfortunately my experience doesn't
actually hold water in Xalan VC++. Pointers, asserts .... arrgghhh......
Looked into the VC++ XPath example in Xalan but all it does is return the
node name wrapped in a CharVectorType (or something). Furthermore, why do
we
have XalanNode and DOM_Node atthe same time ? Isn't this a bit messy and
makes using the Xalan and Xerces code only for advance coders ? Perhaps
there should only be one standard "Node" since dealing with XPath requires
using Xerces (DOM_Node) and Xalan (XalanNode) interchangebly.