Everything familar with MSXML3 and transformations know about a "feature" of the
: it cannot output something without escaping. And the story goes on for .NET. If you have to produce html with xml transform you have a big problem: you get a correcly url formatted link within the xml source that you have to write to an <A>element as the href attribute. How about "&" signs in the url? They are escaped with "&" which result in wrong formatted url's. The normal way you can use to write element content to html output without escaping:
<xsl:value-of select="urlElement" disable-output-escaping="yes"></xsl:value-of>
Now the non-working version to write a valid <A> element:
<A><xsl:attribute name="href"><xsl:value-of select="urlElement" disable-output-escaping="yes"/></xsl:attribute>Link</A>
And here is the code to work around (name it a hack):
<xsl:text disable-output-escaping="yes"><a href='</xsl:text><xsl:value-of disable-output-escaping='yes' select=url'/><xsl:text>'></xsl:text>Link Text<xsl:text disable-output-escaping='yes'></a></xsl:text>