Subject: Re: [xsl] XSL for 2 columns- Format Specified From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Mon, 24 Jan 2005 21:22:19 +0100 |
Need to convert this in following format where i will get 2 columns side by side on pages which will continue till the end of data. Flow of the data on the page should be down and then across
AFter every 5 records , the line space should be there. BOth columns should be inline means space after 5 records in both columns should match on the same line. Field within same column should be seperated by space
two columns should be seperated by vertical line in between. Headings should repeat on each page. Format should look like as below:
<xsl:template match="root"> <html> <body> <xsl:apply-templates select="region"/> </body> </html> </xsl:template>
<xsl:template match="region"> <table> <thead> <th>field A</th> <th>field B</th> </thead> <xsl:apply-templates select="row[position() <= $size]"/> </table> </xsl:template>
<xsl:template match="row"> <tr> <xsl:apply-templates select="." mode="col"/> </tr> <xsl:if test="position() mod 5=0"> <tr><td><br/></td><td><br/></td></tr> </xsl:if> </xsl:template>
<xsl:template match="field"> <xsl:apply-templates/><xsl:text> </xsl:text> </xsl:template>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Laudeo W3C et dona ferens
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL for 2 columns- Format Sp, samir sawant | Thread | Re: [xsl] XSL for 2 columns- Format, samir sawant |
[xsl] thanks, juan valentín-pastra | Date | RE: [xsl] free XMLSpy version and x, Wendell Piez |
Month |