Subject: [xsl] Brake-up a big XHTML document into pages using 2 stylesheets From: "Leonidas Kanellos" <leonidaskanellos@xxxxxxxxxxx> Date: Tue, 18 Mar 2003 13:49:35 +0000 |
<div class="section"> <h2>Welcome</h2> <p>text</p> <p>text</p> </div> <div class="section"> <h2><a href="http://www.mypage.html">Mypage</a> </h2> </div>
<div class="section"> <h2>People</h2> <p>text</p> <p>text</p> </div> </body> </html>
<xsl:stylesheet> <xsl:template name="brake"> header....code <xsl:template match="//div[@class='section'][$page_number]//h2"> 5. <xsl:value-of select="*"> </xsl:value-of> <xsl:apply-templates /> </xsl:template>
footer...code </xsl:templte> </xsl:stylesheet>
I came up with something like that: <xsl:if test="//div[@class='section']/h2=$page_number"> <xsl:param name="page_number" select="5" /> </xsl:if>
but it doesn't work. I don't know where to declare this parameter and how. Any help will be grate.
Regards Leon
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Antwort: [xsl] Integrating Multiple, manfred . weigel | Thread | RE: [xsl] Integrating Multiple Styl, Thomas, Mark-BLS CTR |
AW: [xsl] Syntax Problem, David Alcantara | Date | [xsl] local extremums, Evgenia Firsova |
Month |