This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Extracting hypertext attribut value of an xsl document
- To: XML-L at LISTSERV dot HEANET dot IE, xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Extracting hypertext attribut value of an xsl document
- From: "frank Stein" <freeposte at hotmail dot com>
- Date: Mon, 29 Jan 2001 18:00:28
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello,
Please could you give me a hand on this one ?
I would like to extract out the attribute value of an hypertext tag in order
to affect it to on an XSL variable.
Example:
<xsl:template match="RootLevel">
<a href="javascript:void(0)">
<xsl:attribute name="Name">
<xsl:value-of select="my_name"/>
</xsl:attribute>
<xsl:variable name="my_var">
<xsl:value-of select="(here goes the hypertext Name attribute value)"/>
</xsl:variable>
</a>
<xsl:apply-templates select="Level[@Name=$my_var]"/>
</xsl:template>
How do you "call" the attribut "Name" containing "my_var" and then how
should the value "my_var" be extracted ?
Thank-You.
Ovide.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list