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

Keeping track of processed nodes, to avoid redundant

Subject: Keeping track of processed nodes, to avoid redundant output.
From: "John Smith" <debrief@xxxxxxxxx>
Date: Tue, 11 Sep 2007 11:39:54 +0100
 Keeping track of processed nodes
Hello,

This is a simplified description of what I am trying to do, I have an
xml document like this:

<main>
  <someElement>
    <anElement name="John" />
  </someElement>
  <someElement>
    <anElement name="Jane" />
  </someElement>
  <someElement>
    <anElement name="John" />
  </someElement>
  <someElement>
    <anElement name="Jane" />
  </someElement>
</main>


and I like to retrieve each 'name' attribute from 'anElement', but I
only want to process the name once. So if the 'John' attribute is
repeated I want to somehow keep track that I have already processed
it, hence there is no need to process it again.

So for the given example I like to output something like:

<out>
  <name>John</name>
  <name>Jane</name>
</out>


Thanks,
John

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.