xsl-list
[Top] [All Lists]

Re: Strict sequential identity rule?

2005-09-21 06:05:13
Tempore 14:47:37, die 09/21/2005 AD, hinc in 
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Dimitre Novatchev 
<dnovatchev(_at_)gmail(_dot_)com>:

 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>

I'd say FALSE, because it cannot handle this XML document properly:

<!-- 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>