Me again!
In further attempts to get my other post functioning, I have written a simple script that should handle the variables I need. On my page, I have the following:
Code:
<script language="JavaScript" type="text/javascript">
var noSubs = 0;
function incrementSubs()
{
noSubs++;
}
function getSubs()
{
return noSubs;
alert(noSubs);
}
</script>
Inside my xsl sheet, I need to do something like this:
Code:
<xsl:when test="normalize-space($thirdTier)">
<xsl:value-of select="$thirdTier" />
<xsl:text> THIS IS A SUB CATEGORY - </xsl:text>
<xsl:text> Current Position = </xsl:text><xsl:value-of select="$CurPos"></xsl:value-of><![CDATA[<br></br>]]>
RUN FUNCTION incrementSubs()
</xsl:when>
Do i do this with <xsl:value-of select="incrementSubs();" />, as this does not work?
Thanks in advance.
Chris,