|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Breaking up XML(XHTML) into pages
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
|
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








