|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Reformatting tables
A more generic version for more than 2 columns:
<xsl:template match="tr">
<xsl:for-each select="td[1]/p">
<xsl:variable name="pos" select="position()"/>
<tr>
<td><xsl:copy-of select="."/></td>
<xsl:for-each select="../following-sibling::td">
<td><xsl:copy-of select="p[$pos]"/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:template>I only made a little test - hope it works. Regards, Joerg Neil Abraham wrote: Hi all, -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de News: Cocoon-Premiere - Virbus AG setzt bei ShoppingMall-Plattform "Lofex" auf neueste XML-basierende Technologie http://www.virbus.de/de/press/pressemitteilung/20011123_lofex/index.html http://www.lofex.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








