This may appear silly but I don't know how to do this in a clean way
with xsl ...
My input is
<pageBrowser startPage="5" pageSize="10"/>
And I want this output :
<a href="toto.htm?skip=50">5</a>
<a href="toto.htm?skip=60">6</a>
<a href="toto.htm?skip=70">7</a>
<a href="toto.htm?skip=80">8</a>
<a href="toto.htm?skip=90">9</a>
<a href="toto.htm?skip=100">10</a>
<a href="toto.htm?skip=110">11</a>
<a href="toto.htm?skip=120">12</a>
<a href="toto.htm?skip=130">13</a>
<a href="toto.htm?skip=140">14</a>
I mean I want to use a loop somewhere and not only have
<xsl:template match="pageBrower">
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a>
<a href="toto(_dot_)htm?skip={(_at_)startPage*@pageSize}"><xsl:value-of
select="@startPage"/></a></xsl:template>
Philippe
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--