> Thanks for your response. My problem is I have to use this XML file as[color=blue]
> input to be processed by an application I am writing. It would be much
> easier if I could read a line of input which contained a start tag, the
> value, the end tag instead of having to parse a 300+ character line
> looking for all the various tags used. I looked up 'identity
> transformation' in the XML books I have, Handbook 4.0 and Definitive
> XML, and couldn't find a reference. Could you be a little more
> specific. Sorry for being a pest.[/color]
The identity transform is defined in the XSLT spec
(
http://www.w3.org/TR/xslt#copying):
"For example, the identity transformation can be written using xsl:copy as
follows:
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>"
Therefore this transformation:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
when applied (with Saxon 6.5.3) on this source.xml:
<car><make>ford</make><color>red</color><year>2001</year></car>
produces this result:
<car>
<make>ford</make>
<color>red</color>
<year>2001</year>
</car>
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL