Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Example:
<xsl:if test="$pageNumber > 1"> <span class="spanLink"><a href="?page={$pageNumber -1}&orderby={$orderby}">« Prev</a></span> </xsl:if>
Error occured.
Error Occured: System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'.
Hi Bruno,
Try something like this:
<xsl:if test="$pageNumber > 1"> <span class="spanLink"> <a> <xsl:attribute name="href">?page=<xsl:value-of select="$pageNumber"/>&orderby=<xsl:value-of select="$orderby"/></xsl:attribute> « Prev </a> </span></xsl:if>
What you had is fine, except you need to encode the ampersand as &
@Bruno
your code is correct you just need to encode the ampersand.
So & > &
<span class="spanLink"><a href="?page={$pageNumber -1}&orderby={$orderby}">« Prev</a></span>
Hi Bruno
the problem is the & in your condiftion - use & instead
<xsl:if test="$pageNumber > 1"> <span class="spanLink"><a href="?page={$pageNumber -1}&orderby={$orderby}">« Prev</a></span> </xsl:if>
>Tommy
Thanks a lot man´s. Dan, Jeffy, Sean, Tommy it´s work ;)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How i can pass two arguments in a link?
Example:
<xsl:if test="$pageNumber > 1">
<span class="spanLink"><a href="?page={$pageNumber -1}&orderby={$orderby}">« Prev</a></span>
</xsl:if>
Error occured.
Error Occured: System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'.
Hi Bruno,
Try something like this:
What you had is fine, except you need to encode the ampersand as &
@Bruno
your code is correct you just need to encode the ampersand.
So & > &
Hi Bruno
the problem is the & in your condiftion - use & instead
<xsl:if test="$pageNumber > 1">
<span class="spanLink"><a href="?page={$pageNumber -1}&orderby={$orderby}">« Prev</a></span>
</xsl:if>
>Tommy
Thanks a lot man´s. Dan, Jeffy, Sean, Tommy it´s work ;)
is working on a reply...