This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Selecting the correct column value
- To: XSL-list at lists dot mulberrytech dot com
- Subject: [xsl] Selecting the correct column value
- From: "Koetje Boe" <b_koetje at hotmail dot com>
- Date: Tue, 19 Dec 2000 11:47:49 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
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