element parameter
I would like to know if I can set left-y-axis to be a parameter that sent to the function and according to the parameter that sent, to choose which to be?
input:
<left-y-axis>
<xsl:attribute name="display">
<xsl:value-of select= "$display"/>
</xsl:attribute>
<columns>
<xsl:variable name="start" select="(position()-1)*4 + 1"/>
<xsl:for-each select = "$counter-db_columns[@class='statistic'][position() >= $start and position() < $start+4]">
<column showNAIfNullValues="true" showZeroIfZeroValues="true" >
<xsl:call-template name="general-attribute-parameters">
<xsl:with-param name="key" select="@dbcolumn"/>
<xsl:with-param name="display" select="concat($tech_id, '-', @dbcolumn)"/>
</xsl:call-template>
</column>
</xsl:for-each>
</columns>
</left-y-axis>
output:
left-y-axis to recieve as a parameter and to be left-y-axis1 or left-y-axis2 (depend on the parameter that I will send from the method)
|