This is an instance of another kind of identity template -- "one node at a
time". Sometimes (e.g. in positional grouping) it may be useful:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="node()[1]"/>
</xsl:copy>
<xsl:apply-templates select="following-sibling::node()[1]"/>
</xsl:template>
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"Josh Hone" <icsad(_at_)hotmail(_dot_)com> wrote in message
news:Law8-F93o5xvZDRb78O0004594e(_at_)hotmail(_dot_)com(_dot_)(_dot_)(_dot_)
Hi all -
This is my first post on this list, but I have been using XSL for over a
year. I searched the archive and FAQ but found no answer to my question.
I
am afraid there is not a favorable answer to my question, but here it is.
I
need to see if I can write a stylesheet which simply takes the input XML
and
turns exactly what was input into output XML. I know that you can easily
do
this with Xalan/DOM code, but my system requires that this situation be
solved by stylesheets so that no extra code is written. Is this possible?
Thank you very much.
Josh Hone
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list