Subject: [xsl] creating html tables from cells From: "Whitney, Dan (CanWest Interactive)" <DWhitney@xxxxxxxxxxx> Date: Wed, 15 Oct 2003 11:06:07 -0400 |
2 questions. I have the following xml structure: <RS> <RI col="1">Row 1 - Column 1</RI> <RI col="2">Row 1 - Column 2</RI> <RI col="3">Row 1 - Column 3</RI> <RI col="4">Row 1 - Column 4</RI> <RI col="1">Row 2 - Column 1</RI> <RI col="2">Row 2 - Column 2</RI> <RI col="3">Row 2 - Column 3</RI> <RI col="4">Row 2 - Column 4</RI> </RS> I'm wondering if there's an effecient way with xsl to transform it to: <table> <tr> <td>Row 1 - Column 1</td> <td>Row 1 - Column 2</td> <td>Row 1 - Column 3</td> <td>Row 1 - Column 4</td> </tr> <tr> <td>Row 2 - Column 1</td> <td>Row 2 - Column 2</td> <td>Row 2 - Column 3</td> <td>Row 2 - Column 4</td> </tr> </table> I know I have to somehow create the tr's on the RS element but I'm not at all sure how. Thanks for any help Dan XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Generating beautiful HTML, Martinez, Brian | Thread | Re: [xsl] creating html tables from, Wendell Piez |
Re: [xsl] Generating beautiful HTML, andrew . curry | Date | [xsl] problem with templates, belangour abdessamad |
Month |