|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Divide to pages
andrew welch wrote:
On 4/5/06, Paull <paullus4mlist@xxxxxxxxx> wrote:I'm grouping with following: <xsl:template match="/data"> <xsl:for-each select="group"> <xsl:variable name="id" select="@id"/> <b><xsl:value-of select="$id"/></b><br/> <xsl:apply-templates select="/data/item[@id=$id]" /> </xsl:for-each> </xsl:template> <xsl:template match="item"> <xsl:value-of select="@id"/> <xsl:value-of select="."/><br/> <xsl:if test="position() mod 5 = 0"> <!-- EOP --> </xsl:if> </xsl:template> But using <xsl:if test="position() mod 5 = 0"> is not correct because it not handles situation with 5 groups each with one item should be pasted into one page.
|
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
|






