RE: Is there a way to translate entities into their character equivalents?

Subject: RE: Is there a way to translate entities into their character equivalents?
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Thu, 17 Aug 2000 18:55:59 +0100
>I'd like to cheat in my style sheet and do something like this:
>
><xsl:if test="blahblahblah">&lt;a href="go away"&gt;</xsl:if>
><xsl:apply-templates/>
>&lt;/a&gt;
>
>My real world case is much more complex, but is there a way to 
>have the HTML generated for this contain the <> symbols instead of 
>the entities?

why not
<xsl:if test="blahblahblah">
	<a>
		<xsl:attribute name="href">go away</xsl:attribute>
		<xsl:apply-templates />
	</a>
</xsl:if>
<xsl:if test="not(blahblahblah)">
	<xsl:apply-templates />
</xsl:if>
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread