[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: &parameter= in XML to HTML transformation

Subject: Re: &parameter= in XML to HTML transformation
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 31 Jan 2007 14:58:23 +0000
Re:  &parameter= in XML to HTML transformation
--On 31 January 2007 21:24 +0800 stephan@xxxxxxxxxx wrote:

<xsl:element name="a">
        <xsl:attribute name="href">
 http://myserver/action.do?action=Approve&amp;ID=<xsl:value-of select="."
/>
        </xsl:attribute>
        Approve
</xsl:element>

Apart from the '&amp;' issue that others have explained, you could use an attribute value template here.


<a href="http://myserver/action.do?action=Approve&amp;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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.