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
Hi,
Need Help, I am new to xslt, can someone please tell me where and how can add Next/Prev buttons in the xslt below i have.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" /> <xsl:template match="channel"> <xsl:for-each select="item"> <div> <span class="oj-title"> <xsl:value-of select="@title"></xsl:value-of> </span> <br/> <xsl:if test="@businessArea != ''"> <span class="oj-description"> <b>Reporting Segment: </b> <xsl:value-of select="@businessArea"></xsl:value-of> </span> <br/> </xsl:if> <xsl:if test="@businessCountry != ''"> <span class="oj-description"> <b>Country: </b> <xsl:value-of select="@businessCountry"></xsl:value-of> </span> <br/> </xsl:if> <xsl:if test="@jobLocation != ''"> <span class="oj-description"> <b>Location: </b> <xsl:value-of select="@jobLocation"></xsl:value-of> </span> <br/> </xsl:if> <div class="oj-btnwrap"> <a class="oj-view"> <xsl:attribute name="href"> <xsl:value-of select="@link"/> </xsl:attribute> View Details </a> </div> <div class="metso-clear"></div> </div> </xsl:for-each> </xsl:template></xsl:stylesheet>
Hi Avinash
Could you try explaining a bit more detail about what it is you're trying to achieve above? I think the code looks a bit odd so just want to know what you exactly need to achieve before digging further into giving advices on the code.
Looking forward to hearing from you.
/Jan
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Nex Prev Button in XSLT
Hi,
Need Help, I am new to xslt, can someone please tell me where and how can add Next/Prev buttons in the xslt below i have.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="channel">
<xsl:for-each select="item">
<div>
<span class="oj-title">
<xsl:value-of select="@title"></xsl:value-of>
</span>
<br/>
<xsl:if test="@businessArea != ''">
<span class="oj-description">
<b>Reporting Segment: </b>
<xsl:value-of select="@businessArea"></xsl:value-of>
</span>
<br/>
</xsl:if>
<xsl:if test="@businessCountry != ''">
<span class="oj-description">
<b>Country: </b>
<xsl:value-of select="@businessCountry"></xsl:value-of>
</span>
<br/>
</xsl:if>
<xsl:if test="@jobLocation != ''">
<span class="oj-description">
<b>Location: </b>
<xsl:value-of select="@jobLocation"></xsl:value-of>
</span>
<br/>
</xsl:if>
<div class="oj-btnwrap">
<a class="oj-view">
<xsl:attribute name="href">
<xsl:value-of select="@link"/>
</xsl:attribute>
View Details
</a>
</div>
<div class="metso-clear"></div>
</div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Hi Avinash
Could you try explaining a bit more detail about what it is you're trying to achieve above? I think the code looks a bit odd so just want to know what you exactly need to achieve before digging further into giving advices on the code.
Looking forward to hearing from you.
/Jan
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.