[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] ¶meter= in XML to HTML transformation
Subject: Re: [xsl] ¶meter= in XML to HTML transformation
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 31 Jan 2007 14:58:23 +0000
|
--On 31 January 2007 21:24 +0800 stephan@xxxxxxxxxx wrote:
<xsl:element name="a">
<xsl:attribute name="href">
http://myserver/action.do?action=Approve&ID=<xsl:value-of select="."
/>
</xsl:attribute>
Approve
</xsl:element>
Apart from the '&' issue that others have explained, you could use an
attribute value template here.
<a href="http://myserver/action.do?action=Approve&ID={.}">Approve</a>
I always find literal result elements easier to understand and use them
whenever the element and attribute names are constant.
--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK
|