This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XML to XML transformation
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: XML to XML transformation
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 22 Nov 2000 14:31:16 -0000
- Reply-To: xsl-list at mulberrytech dot com
> To begin with, I tried to write an XSL stylesheet that
> creates a result document that is the same as the source.
>
> I found that I don't know how to do it.
See section 7.5 of the XSLT spec.
There's a simpler way:
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
But you can't modify that to make any changes.
> The best thing I got was this:
>
> <xsl:text disable-output-escaping = "yes" ><</xsl:text>
>
Turn to disable-output-escaping as a last resort only. If you're using it as
a beginner then it means you haven't understood the basic principle of the
language, which is that you write nodes to the result tree, not tags to the
output file.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list