[Home] [By Thread] [By Date] [Recent Entries]
On 6/12/07, Matt <puskas.duck@xxxxxxxxx> wrote:
Thanks Andrew, I didn't want to put too much info in as to cloud the issue. An alternative way is: <xsl:variable name="pageLayout1"> <xsl:apply-templates mode="pageLayout1"> <xsl:with-param name="pageNo" select="'$pageNo'"/> </xsl:apply-templates> </xsl:variable> <xsl:variable name="pageLayout2"> <xsl:apply-templates mode="pageLayout2"> <xsl:with-param name="pageNo" select="'count($pageLayout1//pages)'"/> </xsl:apply-templates> </xsl:variable> <xsl:copy-of select="$pageLayout1"/> <xsl:copy-of select="$pageLayout2"/> This way you can access any part of $pageLayout1 from any subsequent part of the processing, in this case to count the number of pages. Another alternative is to not worry about page numbers at that point (if thats possible) and just add them later eg: <xsl:apply-templates select="$pageLayout1|$pageLayout2" mode="pageNumber"/> ...with the identity template and another to add the actual page number. cheers andrew
|

Cart



