In my xsl I have the following calls to a template
<xsl:call-template name="populateFields">
<xsl:with-param name="linenum">1</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="populateFields">
<xsl:with-param name="linenum">2</xsl:with-param>
</xsl:call-template>
..etc..
I want to get values from xml, for the following
//document/OLD/ADDRESS1
//document/OLD/ADDRESS2
I'm treating the suffix to ADDRESS as the parameter linenum.
How can I get the following to work:
<xsl:template name="populateFields" >
<xsl
aram name="linenum"/>
... etc ...
<xsl:value-of select="//document/OLD/ADDRESS{$linenum}"/>
...etc...
<input type="text" name="corres1" size="45" maxlength="35" value="{//document/OLD/ADDRESS}{$linenum}"/>
... etc...
</xsl:template>
I want //document/OLD/ADDRESS1 evaluated in both instances.
Thanks for your help.
<xsl:call-template name="populateFields">
<xsl:with-param name="linenum">1</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="populateFields">
<xsl:with-param name="linenum">2</xsl:with-param>
</xsl:call-template>
..etc..
I want to get values from xml, for the following
//document/OLD/ADDRESS1
//document/OLD/ADDRESS2
I'm treating the suffix to ADDRESS as the parameter linenum.
How can I get the following to work:
<xsl:template name="populateFields" >
<xsl
... etc ...
<xsl:value-of select="//document/OLD/ADDRESS{$linenum}"/>
...etc...
<input type="text" name="corres1" size="45" maxlength="35" value="{//document/OLD/ADDRESS}{$linenum}"/>
... etc...
</xsl:template>
I want //document/OLD/ADDRESS1 evaluated in both instances.
Thanks for your help.