Hi,
What do you mean by "getting attibute"?
If you want the myattr value you can use
<xsl:template match="tag">
<xsl:value-of select="@myattr"/>
</xs;:template>
If you want the attribute itself then you can use xsl:copy-of to copy
that to some element you create in the output, something like:
<xsl:template match="tag">
<newTag><xsl:copy-of select="@myattr"/></newTag>
</xs;:template>
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Oobi Van Doobi wrote:
Could someone please tell how I cam get an attribute with XSLT?
for example
<tag myattr="somevalue"/>
thank's