Re: [xsl] Filtering new tags using XSL

Subject: Re: [xsl] Filtering new tags using XSL
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Fri, 14 Sep 2007 16:34:10 +0530
Here is a simple stylesheet, which will let you identify the differences.

<xsl:stylesheet xmlns:xsl=""; version="1.0">

  <xsl:variable name="old-doc" select="document('old.xml')" />

  <xsl:template match="/root">
      <xsl:for-each select="data">
        <xsl:variable name="temp" select="." />
        <xsl:if test="not($old-doc/root/data[@name = $temp/@name])">
          <xsl:copy-of select="$temp" />


(not tested..)

On 9/14/07, Buddhi Dananjaya <buddhi@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
> Even XSLT is ok. I can transform and get the newly added tags.
> - Buddhi -

Mukul Gandhi

Current Thread