This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: AW: Passing XML in parameter for HREF in <xsl:attribute>
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: AW: [xsl] Passing XML in parameter for HREF in <xsl:attribute>
- From: Francis Norton <francis at redrice dot com>
- Date: Thu, 29 Mar 2001 12:26:55 +0100
- References: <000001c0b83c$b5125540$32aca8c0@taurus>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Marcus Klinge wrote:
>
> You might want to try the following:
>
> <a>
> <xsl:attribute name="href">
> myservlet?request=<xsl:value-of select="REQUEST/@id"/>
> <xsl:value-of select="REQUEST/COMMAND/@id"/>
> </xsl:attribute>
> LINKTEXT
> </a>
>
Indeed. And once you're comfortable with this you might want to try the
same thing using Attribute Value Templates (or AVTs) [1] for shorter,
"sweeter" syntax:
<a
href="myservlet?request={REQUEST/@id}&command={REQUEST/COMMAND/@id}">LINKTEXT</a>
> Oh..and hello to everyoneone on the list, I am new here.
>
and welcome - you won't be new for long!
Francis.
[1] http://www.w3.org/TR/xslt.html#attribute-value-templates
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list