|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Reformatting tables
> How can I write some xsl to reformat this into proper rows? Eg: <xsl:template match="tr[count(td[1]/p) > 1]"> <xsl:for-each select="td[1]/p"> <tr> <td><p><xsl:value-of select="."/></p></td> <xsl:variable name="n" select="position()"/> <td><p><xsl:value-of select="../../td[2]/p[position()=$n]"/></p></td> </tr> </xsl:for-each> </xsl:template> <xsl:template match="tr"> <xsl:copy-of select="." /> </xsl:template> J 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








