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

for-each attributes test

Subject: for-each attributes test
From: "Jason S" <jasonsmith@xxxxxxxxxxx>
Date: Wed, 23 Oct 2002 16:10:27 -0400
for each attributes
Hello.

I have many xml files containing event elements as show below. Each file is
specific to a certain team. The only way I have to determine which team goes
with which file is by examining the team-key attributes within the
team-metadata elements. As you see, team-6 repeats in each set of
team-metadata for each event, thus, this file belongs to team-6. I need to
be able to loop through the teams and determine which team key is repeating
in multiple events. In the end, I am trying to capture the recurring
team-key for each file in order to identify which team the file belongs to.
Any suggestions?

Thanks in advance
Jason S

<event>
  <team>
     <team-metadata team-key="team-18">
     </team-metadata>
  </team>
  <team>
     <team-metadata team-key="team-6" >
     </team-metadata>
  </team>
</event>

<event>
 <team>
     <team-metadata team-key="team-6">
     </team-metadata>
 </team>
  <team>
     <team-metadata team-key="team-18" >
     </team-metadata>
  </team>
</event>

<event>
 <team>
     <team-metadata team-key="team-3">
     </team-metadata>
 </team>
 <team>
     <team-metadata team-key="team-6" >
     </team-metadata>

 </team>
</event>


 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.