![]() |
|
|
|
#1 |
|
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 George Bina |
|
|
|
|
#2 |
|
Posts: n/a
|
Could someone please tell how I cam get an attribute with XSLT?
for example <tag myattr="somevalue"/> thank's |
|
|
|
#3 |
|
Posts: n/a
|
The attribute:: axis (attribute::myattr), and/or its shorthand
representation @ (@myattr). -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry |
|
|
|
#4 |
|
Posts: n/a
|
"Oobi Van Doobi" <> wrote in message news:qdMQg.17486$. .. > Could someone please tell how I cam get an attribute with XSLT? > for example > <tag myattr="somevalue"/> The best recommendation is that you study XPath -- this is something very fundamental. Cheers, Dimitre Novatchev |
|