This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Extracting hypertext attribut value of an xsl document


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]