[xsl] Breaking up XML(XHTML) into pages

Subject: [xsl] Breaking up XML(XHTML) into pages
From: "Leonidas Kanellos" <leonidaskanellos@xxxxxxxxxxx>
Date: Mon, 24 Mar 2003 16:33:12 +0000

Hi all,



I have a an XHTML file and i want to break it into pages.
I have a standart header and a footer and i whant to apply them in each page.


My problem is with the parameter (page_number) that i set.

Above is the code that i use in my xsl in order to choose a spesific h2:

<xsl:template match="//div[@class='section'][$page_number]//h2">
<xsl:if test="./xhtml:h2">
<input name="page_number" value="{$page_number}"/>
5. <xsl:value-of select="*">
</xsl:value-of>
<xsl:apply-templates/>
</xsl:if>
</xsl:template>

I have declared the parameter at the top of my stylesheet, like that:

<xsl:param name="page_number" select=" '5' "/>

But i don't get the fifth h2 as a page.

Any ideas?

Leonidas Kanellos

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread