This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Selecting the correct column value


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]