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]

Re: AW: Passing XML in parameter for HREF in <xsl:attribute>


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}&amp;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


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