1.

Explain How To Retrieve Value Of An Attribute For An Element Using Xslt?

Answer»

which can copy an ATTRIBUTE from an ELEMENT like below:

<xsl:template MATCH="/employees/employee">
VALUE of attribute Id is :
<xsl:value-of select="@id"></xsl:value-of>
</xsl:template>

which can copy an attribute from an element like below:

<xsl:template match="/employees/employee">
Value of attribute Id is :
<xsl:value-of select="@id"></xsl:value-of>
</xsl:template>



Discussion

No Comment Found