Subject: Re: [xsl] Strict sequential identity rule? From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Wed, 21 Sep 2005 15:05:13 +0200 |
Is the following statement true or false:
"The transformation below is an identity transformation":
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes"/> <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> </xsl:stylesheet>
<!-- foo --> <bar>baz</bar>
regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Don't send spam. I don't like it and it is illegal.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Strict sequential identity ru, Dimitre Novatchev | Thread | Re: [xsl] Strict sequential identit, David Carlisle |
[xsl] Strict sequential identity ru, Dimitre Novatchev | Date | Re: [xsl] Strict sequential identit, David Carlisle |
Month |