I am calling the template PrintFullMessage as follows :
<xsl:call-template name="PrintFullMessage">
<xsl:with-param name="mIDParam" select="$mID"/>
<xsl:with-param name="mPosParam" select="$mPos2"/>
<xsl:with-param name="attributeName" select="'_Name'"/>
</xsl:call-template>
In the template definition I want to display the value of the attribute in the particular node. The following "@($attributeName)" throws an error message. Any help is appreciated.
<xsl:template name="PrintFullMessage">
<xsl
aram name="mIDParam"/>
<xsl
aram name="mPosParam"/>
<xsl
aram name="attributeName"/>
<xsl:for-each select="/DataModels/dataModelNEW/DATA_MODEL/CLASS[@_ID=$mIDParam]">
<xsl:if test="number($mPosParam) = position()">
<h3>_ID# <xsl:value-of select="$mIDParam"/> in NewDataModel: <xsl:value-of select="$attributeName"/> :: <xsl:value-of select ="@($attributeName)"/> </h3>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:call-template name="PrintFullMessage">
<xsl:with-param name="mIDParam" select="$mID"/>
<xsl:with-param name="mPosParam" select="$mPos2"/>
<xsl:with-param name="attributeName" select="'_Name'"/>
</xsl:call-template>
In the template definition I want to display the value of the attribute in the particular node. The following "@($attributeName)" throws an error message. Any help is appreciated.
<xsl:template name="PrintFullMessage">
<xsl
<xsl
<xsl
<xsl:for-each select="/DataModels/dataModelNEW/DATA_MODEL/CLASS[@_ID=$mIDParam]">
<xsl:if test="number($mPosParam) = position()">
<h3>_ID# <xsl:value-of select="$mIDParam"/> in NewDataModel: <xsl:value-of select="$attributeName"/> :: <xsl:value-of select ="@($attributeName)"/> </h3>
</xsl:if>
</xsl:for-each>
</xsl:template>