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

Selecting the correct column value

Subject: Selecting the correct column value
From: "Koetje Boe" <b_koetje@xxxxxxxxxxx>
Date: Tue, 19 Dec 2000 11:47:49 -0000
jan willem koldenhof
hi,
my xml-file looks like:
 <dataset>
   <metadata>
     <columnInfo name="EMP_NO"/>
     <columnInfo name="PHONE_NO"/>
     etc.
  </metadata>
  <data>
    <row>
       <column name="EMP_NO">112</column>
       <column name="PHONE_NO">06-1123445354</column>
       etc.
   </row>
   <row>
     <column name="PHONE_NO">06-2233535675</column>
     <column name="EMP_NO">334</column>
     etc.
   </row>
   etc.
 </data>
</dataset>

The goal is just to show the data in a table. The problem I have is that the column values don`t always have the same order in the rows. So what I want to do is:
for each row(i):
for each columnInfo(j):
select the column from row i which corresponds to the columninfo j`s name.


I tried several stylesheets, but I don`t seem to get it working.

any suggestions are appreciated.

Jan-Willem Koldenhof




_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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.