This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


I can --- but the logic in the live script is much more complex, mostly
because of the need to match start and end tags that, in HTML, can be
forgiven.  It would be ever so much simpler to build the logic the way I'm
describing.
-----Original Message-----
From: Kevin Williams <Kevin.Williams@ultraprise.com>
To: 'xsl-list@mulberrytech.com' <xsl-list@mulberrytech.com>
Date: Thursday, August 17, 2000 2:10 PM
Subject: RE: Is there a way to translate entities into their character
equivalents?


>> -----Original Message-----
>> From: Steve Carton [mailto:scarton@retrievalsystems.com]
>>
>> 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;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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]