xsl-list
[Top] [All Lists]

& in attribute value template

2002-10-18 23:29:04
Let's say I create an element like this:

<a href="{(_at_)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(_at_)guymcarthur(_dot_)com} 


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



<Prev in Thread] Current Thread [Next in Thread>