xsl-list
[Top] [All Lists]

Re: [xsl] undo a transformation

2007-04-26 03:38:50
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

--~------------------------------------------------------------------
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>