Easiest way is an attribute value template (AVT):
<dst value="{@vv}"/>"><xsl:value-of "."></dst>
HTH!
Dion
-----Original Message-----
From: Rolf Schumacher [mailto:rolf.schumacher@xxxxxxxxxx]
Sent: Friday, March 07, 2003 3:32 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
I missed something - must be easy - but I cannot find how to achieve it:
how to get an attribute value into an attribute value?
source:
<ns:x vv="yy">text</ns:x>
desired destination
<dst value="yy">text</dst>
transformation
<xsl:template match="ns:x">
<dst value="???????"/>"><xsl:value-of "."></dst>
</xsl:template>
What has to be typed instead of ??????? in order to refer to the value
of the attribute vv of node ns:x?
Thanks in advance.
Rolf
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|
Dion Houston - Fri, 7 Mar 2003 18:42:39 -0500 (EST) <=
Martinez, Brian - Sat, 8 Mar 2003 13:58:56 -0500 (EST)
|
|