[xsl] & in attribute value template

Subject: [xsl] & in attribute value template
From: Guy McArthur <guym@xxxxxxxxxxxxxxx>
Date: Fri, 18 Oct 2002 23:29:04 -0700 (MST)
Let's say I create an element like this:

<a href="{@href}">...</a>

And the value of href is something like "http://host?q=a&amp;u=v";.

Well, the actual output is <a href="http://host?q=a&u=v";>...</a> which 
does not validate.

Does it have to be something like this?

<xsl:element name="a"><xsl:attribute name="href"><xsl:value-of 
select="@href" disable-output-escaping="yes"/></xsl:attribute></xsl:element>

--
Guy McArthur * email{guym@xxxxxxxxxxxxxxx} 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread