Hi, as I guess from your e-mail-Adresse (rsasecurity), your question relates to XML Signature or Canonical XML. So if this is the case, you probably want to have a look at the class XMLSignatureInput [1] from the xml-security project (Java only, sorry). This is a container class which contains either octet streams or XPath node sets (the ones returned from Xalan Java). There you can see how the Canonicalizer converts an arbitrary XPath node set back into a document.
Hope this helps, Christian [1] http://cvs.apache.org/viewcvs.cgi/xml-security/src/org/apache/xml/security/ signature/XMLSignatureInput.java --On Montag, 1. April 2002 15:43 -0800 "Huynh, Dung" <[EMAIL PROTECTED]> wrote: > Joseph, > > Thanks for the quick response. > >> If you really need a new Document containing the results of >> an XPath, the >> easiest way to do that is probably to build a stylesheet >> which uses that >> XPath as a selection pattern and outputs copies of the nodes >> it has found. >> If you want to do it manually: Construct a new DOM document, use its >> importNode operation to obtain copies of each of the nodes >> found by the >> XPath, and insert these copies into appropriate places in the >> new document. >> > > You mentions the manually case. Is there an automatically generating DOM > document using > stylesheet as you described?
