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

First occurence of a repeating value

Subject: First occurence of a repeating value
From: "Todd Bishop" <todd_bishop@xxxxxxxxxxx>
Date: Thu, 07 Nov 2002 02:36:54 +0000
todd bishop
My XML is of the form:

<main>
 <sub>
    <entry>
       <item1>val1</item1>
       <item2>val2</item2>
       <item3>val3</item3>
    </entry>
    <entry>
       <item1>val4</item1>
       <item2>val2</item2>
       <item3>val5</item3>
    </entry>
    <entry>
       <item1>val6</item1>
       <item2>val2</item2>
       <item3>val7</item3>
    </entry>
  </sub>
</main>

I want the output to be as shown below, using "val2" once as the title,
and listing all the other values after that:

Title: val2
------
Item1: val1
Item3: val3

Item4: val4
Item5: val5

Item6: val6
Item7: val7

Any suggestions on how to accomplish this? Thanks in advance.

-- Todd





_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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.