Will,

Thanks a lot for your reply.
It was useful.

-Indrajit  


On Fri, 16 Feb 2007 Will Sappington wrote :
> >Indrajit Bhattacharya wrote
> >Hi Dave,
> >
> >Thanks a lot for your reply.
> >
> >>>We store all our data as xerces DOM in our application. Is there any
> >>>problem using these xercesc::DOMNode* data with Xalan for XPath and
> >>>XSLT ?
> >>>
> >>
> >>That depends on what you mean by "problem..."
> >
> >Here my intension is: given a xercesc::DOMNode* pointer, we need to
>perform
> >XPath expression evaluation, the expression being taken from user of
>the
> >application. Do you see any issue in this use model ?
> >
> >Thanka again,
> >-Indrajit
>
>You might want to try reading the FAQ, it has a topic that deals
>specifically with Xerces DOM's and Xalan.  Here is what it says (the
>HTML documentation has embedded links to related topics):
>
>Should I be using the Xerces DOM or Xalan DOM?
>
>The Xalan DOM implementation is highly optimised for transformations.
>However, whilst you can build documents in the Xalan DOM, subsequent
>modification will not work. The Xalan DOM is designed to be either an
>input or an output from a transformation, not as a general DOM
>implementation.
>
>So in cases where you want to simply transform documents using Xalan,
>using the internal DOM implementation is the best approach.
>
>In cases where you want to modify the DOM document on the fly, you
>should use the Xerces DOM as the base document. You can wrap the Xerces
>DOM in a wrapper (see passing in a Xerces DOM) to then use as an input
>to a Xalan transformation. Alternatively you can output the result of a
>transformation to a Xerces DOM document (see working with DOM input and
>output). In either case, the Xerces document can be freely modified.
>However, after you modify the document, you need to re-build the wrapper
>so that any changes are replicated in the Xalan wrappers.
>
>If that doesn't help you, perhaps a search through the archives may also
>yield some useful information while you await our responses.
>
>I don't know whether XPath evaluation will work on a Xerces DOM or not.
>I'm implementing an XPath solution but I'm using the Xalan DOM.
>
>-will

Reply via email to