|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re:
<xsl:param name="cols" select="3"/>
<!-- Selects the ART-elements, which are at the beginning of a row. --> <xsl:template match="ARTS"> <table border="1"> <xsl:apply-templates select="ART[position() mod $cols = 1]" mode="row"/> </table> </xsl:template> <!-- Selects the first ART of a row and the rest in this row. --> <xsl:template match="ART" mode="row"> <tr> <xsl:apply-templates select=". | following-sibling::ART[position() < $cols]" mode="cell"/> </tr> </xsl:template> <!-- Add the cells. --> <xsl:template match="ART" mode="cell"> <td><xsl:value-of select="NAME"/></td> </xsl:template> Regards, Joerg Carlos schrieb: If i have, i have writted bellow xml file, how can i present this file in this form: <tr><td>1</td><td>2</td><td>3</td></tr> <tr><td>4</td><td>5</td><td>6</td></tr> 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








