[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: "Senthil Nathan" <rsennat@xxxxxxxxx>
Date: Thu, 13 Sep 2007 20:47:15 +0530
Re:  Filtering new tags using XSL
Hey,
If you have the xml something like this,

<Root>
   <Parent>
        <Child1 OLD="1">
             <Value>100</Value>
        </Child1>
        <NEW>
              <Value>0</Value>
        </NEW>
    </Parent>
</Root>

Using XSLT you can filter out the nodes based on the attribute, OLD="1"
So, atleast there should be some flag in the nodes to differentiate
from the older ones, using which you can filter out.

Thanks
Senthil

On 9/13/07, Buddhi Dananjaya <buddhi@xxxxxxxxxxxxxxxxxxx> wrote:
> I have following xml file ( Reduced for clearness - this has more than
> 2000):
>
> <root>
>    <data name="LBL_MM">
>        <value>mm</value>
>        <comment>MM</comment>
>    </data>
>    <data name="LBL_INCH">
>        <value>Inches</value>
>        <comment>inch</comment>
>    </data>
>    <data name="DE">
>        <value>Drawing Editor</value>
>        <comment>DE</comment>
>    </data>
>    <data name="TO">
>        <value>Tray Object</value>
>        <comment>TO</comment>
>    </data>
> </root>
>
> My customer may add new <data></data> blocks into this file, not always
> at the bottom (here and there) can anyone suggest a XSL format ( prefer
> sample code) to filter out  newly added blocks..I need to get a new xml
> file which will contain new <data> blocks after transformation.
>
> - Thanks in advance :-)
>
> - Buddhi from Sri Lanka -

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.