dey: Tabelle

Beitrag lesen

Hi.
Ich steig da mal mit ein.
Die Frage, die sich stellt, sind Deine Daten immer in der richtigen Reihenfolge oder nicht!
Ich füg unten mal was dazu

Value   F     B     NL     D-W     I      L     DK   ....
1      115   102   179     85     126    107    184  ....
%      11.6  10.3  17.8    8.4    12.8   18.3   18.5 ....
2      376   401   550     401    401    289    336  ....
usw. usw.

Folgendes Stylesheet erledigt das rudimentär (ohne großes Formatieren):

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="/">
   <html>
      <body>
         <table border="1">

xsl:apply-templates/

</table>

</body>
   </html>
</xsl:template>

<xsl:template match="row">
   <tr>
      xsl:apply-templates/
    </tr>

</xsl:template>

<xsl:template match="entry">

<td><xsl:value-of select=".[@colname='F']"/></td>
     <td><xsl:value-of select=".[@colname='B']"/></td>....

???<td><xsl:value-of select="."/></td>
</xsl:template>

</xsl:stylesheet>

Gruß

Vor @colname könnte noch win ./ nötig sein!?

bydey

Franz