>    Hello,
> I'm trying to use de XPath implementation of Xalan in C++
> and I d'ont undestand the role of XalanSourceTreeDOMSupport with XPath
> (and in general)
> So first where to find revelant doc on the use of the class of the
> Xalan-C API (the use and the role not the C++ definition!)

The sample applications and the source code itself are the best
documentation for this information.

> So my questions are:
> - should I insert as member of my class others objects (like a
> XalanSourceTreeDOMSupport) ?
> - Was it a good idea to choose a XalanDocument/XalanNode/DOMNode ... in
> the class something else could be better and what?
> - There are others solutions to evaluate an Xpath without DOMSupport or
> how to have an appropriate DOMSupport.. and what is this DOMSUpport

The best example of this is right from the source code.  Look at the class
XalanDefaultParsedSource, defined in
XalanTransformer/XalanDefaultParsedSource.hpp.  That class is probably more
complex than your's needs to be, but it will give you an idea of what you
will need for your implementation.  Of course, you could always just use
XalanDefaultParsedSource within your class if you wanted to.

Dave


  • Xpath in C++ Vincent Berruchon
    • David N Bertoni/Cambridge/IBM

Reply via email to