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

processing unique elements (as indicated by id attribu

Subject: processing unique elements (as indicated by id attribute) once
From: Gary Bartlett <gary_a_bartlett@xxxxxxxxx>
Date: Fri, 4 May 2001 06:02:06 -0700 (PDT)
gary bartlett auctions
Greetings -

I am struggling with a solution for the following:

I have an input xml file with a mix of well formed
HTML and some custom elements.  I want to be able to
process the custom elements once for each unique
element (for these purposes I am using the id
attribute of the element to determine if it is
unique).

Here is sample input:


<page>
  <gfeRepetition>
    <table>
      <gfeElement id="name1" method="name1">
        Element1
      </gfeElement>
      <gfeConditional id="cond2" test="test2">
	<gfeElement id="name1" method="name1">
           Element1
        </gfeElement>
	<gfeElement id="name2" method="name2">
           Element2
        </gfeElement>
      </gfeConditional>
      <gfeConditional id="cond2" test="test2" 
negate="true">
	<gfeElement id="name1" method="name1">
           Element1
        </gfeElement>
	<gfeElement id="name2" method="name2">
           Element2
        </gfeElement>
      </gfeConditional>
    </table>
  </gfeRepetition>
</page>

I have struggled with several different approaches -
but am unable to get any of them to do what I need.

Any suggestions as to how to accomplish this are
appreciated.

Thanks - Gary Bartlett

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.