The following is the identity transformation included in the XSLT spec
(http://www.w3.org/TR/xslt). It recursively descends through the tree,
copying all nodes along the child axis (elements, text, processing
instructions, comments) and all nodes along the attribute axis (attributes).
That leaves two XPath node types, the root node and namespace nodes, neither
of which should be explicitly copied, because they are both implicitly
created in the output.
Hope this helps,
[log in to unmask]
XYZFind, the search engine *designed* for XML
Download our free beta software: http://www.xyzfind.com/beta
From: General discussion of Extensible Markup Language
[mailto:[log in to unmask]]On Behalf Of Guy Nirpaz
Sent: Thursday, September 21, 2000 9:19 AM
To: [log in to unmask]
Subject: Trivial XSLT ?
It seems trivial - but I didn't find an answer yet -
I have xml document - lets call it doc1
I want to transform doc1 to doc2 trivially - doc2 should be the exact copy
How do I do it with XSL ?