Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSLT goruping to table

From: M <mantrandesign@-----.--->
To: NULL
Date: 1/30/2009 1:53:00 PM
Hi,

I'm pretty new at xslt. After a lot of research, I come to know my
question is related to xslt grouping.
I have an xml file like below with 2 col, with 2 id Word, Excel. Under
each col is a bunch of row, in this case each col has 3 rows.

Could you help me to transform and output the xml to an html table
like this - THANKS!
<table>
<tr>
  <td>WORD</td>
  <td>EXCEL</td>
</tr>

<tr>
  <td>Word 1</td>
  <td>Excel 1</td>
</tr>

<tr>
  <td>Word 2</td>
  <td>Excel 2</td>
</tr>

<tr>
  <td>Word 3</td>
  <td>Excel 3</td>
</tr>

</table>

---------------HERE'S THE XML:

<templates>
<col id="word">
  <row>
    <title>Word 1</title>
  </row>

  <row>
    <title>Word 2</title>
  </row>

  <row>
    <title>Word 3</title>
  </row>
</col>

<col id="excel">
  <row>
    <title>Excel 1</title>
  </row>

  <row>
    <title>Excel 2</title>
  </row>

  <row>
    <title>Excel 3</title>
  </row>
</col>
</templates>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent