Subject: [xsl]pass a parameter from the URL using Javascript From: "Leonidas Kanellos" <leonidaskanellos@xxxxxxxxxxx> Date: Wed, 02 Apr 2003 12:42:45 +0000 |
I declare my parameter at the top of the xsl stylesheet, like that: <xsl:param name="page_number" select=" 1 "/> iI change the select value and i get the h2 that i want.
<div class="section"> <h2>Chris</h2> <p>text</p> <p>text</p> </div> <div class="section"> <h2> <a href="http://www.mypage.com">Leo</a> </h2> </div> <div class="section"> <h2>George</h2> <p>text</p> </div> <div class="section"> <h2>Alex</h2> <p>text</p> <p>text</p> </div>
<xsl:when test="//xhtml:div[@class='section'][position()=$page_number]"> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] test expression in predic, Stuart Brown | Thread | Re: [xsl]pass a parameter from the , David Carlisle |
Re: [xsl] test expression in predic, Oleg Tkachenko | Date | Re: [xsl]pass a parameter from the , David Carlisle |
Month |