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

How to get a "heading" from an element

Subject: How to get a "heading" from an element
From: Roger Chung-Wee <roger@xxxxxxxxxxxxx>
Date: Thu, 07 Feb 2002 20:23:40 +0000
west indies airport code
I'm having a real problem with something apparently simple. I can
extract from a database something like the following ...

<airline>
<airline-name>BWIA West Indies Airways</airline-name>
<airport-code>POS</airport-code>
<airport-name>Piarco International</airport-name>
</airline>

<airline>
<airline-name>BWIA West Indies Airways</airline-name>
<airport-code>BGI</airport-code>
<airport-name>Grantley Adams International</airport-name>
</airline>

<airline>
<airline-name>LIAT</airline-name>
<airport-code>ANU</airport-code>
<airport-name>V C Bird International</airport-name>
</airline>

<airline>
<airline-name>LIAT</airline-name>
<airport-code>BGI</airport-code>
<airport-name>Grantley Adams International</airport-name>
</airline>

... and would like to turn it into something like this:
<tr>
<td>BWIA West Indies Airways</td>
</tr>
<tr>
<td>POS</td>
<td>Piarco International</td>
</tr>
<tr>
<td>BGI</td>
<td>Grantley Adams International</td>
</tr>
<tr>
<td>LIAT</td>
</tr>
<tr>
<td>ANU</td>
<td>V C Bird International</td>
</tr>
<tr>
<td>BGI</td>
<td>Grantley Adams International</td>
</tr>

Thanks.

Roger.

 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.