[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Filtering new tags using XSL

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

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

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

  <xsl:template match="/root">
    <newtags>
      <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" />
        </xsl:if>
      </xsl:for-each>
    </newtags>
  </xsl:template>

</xsl:stylesheet>

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


-- 
Regards,
Mukul Gandhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.