Subject: RE: Is there a way to translate entities into their character equivalents?
From: Kevin Williams <Kevin.Williams@xxxxxxxxxxxxxx>
Date: Thu, 17 Aug 2000 12:33:45 -0400
|
> -----Original Message-----
> From: Steve Carton [mailto:scarton@xxxxxxxxxxxxxxxxxxxx]
>
> I'd like to cheat in my style sheet and do something like this:
>
> <xsl:if test="blahblahblah"><a href="go away"></xsl:if>
> <xsl:apply-templates/>
> </a>Steve,
Why on earth would you do this? Why not
<xsl:if test="blahblahblah">
<xsl:element name="a">
<xsl:attribute name="href">go away</xsl:attribute>
</xsl:element>
</xsl:if>
- Kevin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|