Topic: xpath problems again, thanks in advance Pages that link to <a href="https://ozoneasylum.com/backlink?for=26286" title="Pages that link to Topic: xpath problems again, thanks in advance" rel="nofollow" >Topic: xpath problems again, thanks in advance\

 
Author Thread
beryl_peng
Bipolar (III) Inmate

From:
Insane since: Jul 2005

IP logged posted posted 07-19-2005 17:24 Edit Quote

hi hi,

can i know whether variable in xsl can hold the previous value?
this is the idea what i want to do..i know the syntax is wrong

code:
<xsl:param name ="counter"/>

<xsl: for each select ="tr">
<xsl:if test="normalize-space(TD[2]/text()) != '' ">
<xsl:value-of select="concat($counter, TD[2]/text())" />
</xsl:if>
</xsl:for-each>



this code didnt work, is it possible the $counter will hold the previous value?

thanks



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu