[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Strict sequential identity rule?


Subject: Re: [xsl] Strict sequential identity rule?
From: George Cristian Bina <george@xxxxxxx>
Date: Wed, 21 Sep 2005 16:49:23 +0300

If you include also / in the match:

<xsl:template match="/ | @* | node()">

I think it should work in the same way

 <xsl:template match="node() | @*">
   <xsl:copy>
     <xsl:apply-templates select="node() | @*"/>
   </xsl:copy>
 </xsl:template>

works.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Joris Gillis wrote:
Tempore 15:20:04, die 09/21/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit David Carlisle <davidc@xxxxxxxxx>:


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


it can so:-)


The result of the transformation is:

<!-- foo -->
<bar>baz</bar>
<bar>baz</bar>

This is not even well-formed XML anymore. How can you still call it an identity transformation, when it gives this behaviour?

regards,


Current Thread