[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: undo a transformation
From: Garvin Riensche <g.riensche@xxxxxxx>
Date: Thu, 26 Apr 2007 12:37:45 +0200
in xslt2, if I understand you correctly something like

<xsl:variable name="a" select="/"/>
<xsl:variable name="b" as="item()*">
  <xsl:apply-templates mode="a" select="$a"/>
</xsl:variable>
<xsl:variable name="c" as="item()*">
  <xsl:apply-templates mode="b" select="$b"/>
</xsl:variable>
<xsl:sequence select="if(deep-equal($b,$c)) then $a else $c"/>

Thanks a lot! That's exactly what I was looking for. I didn't expect this to be so easy to implement...


Regards,
Garvin

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member