[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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: Mike Brown <mike@xxxxxxxx> Date: Thu, 17 Aug 2000 12:38:50 -0600 (MDT) |
Steve Carton wrote: > 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> > > 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? <xsl:if test="blabblahblah"> <xsl:text disable-output-escaping="yes"><html fragments></xsl:text> <xsl:apply-templates/> <xsl:text disable-output-escaping="yes"><more html fragments</xsl:text> </xsl:if> Most likely there *is* a way to do it right, though, and you'll just keep having to do ugly workarounds like this if you don't change your approach to generating HTML from a linear, tag-based approach to a hierarchical, element-based approach. - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://www.skew.org/xml/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Is there a way to translate ent, Chris Bayes | Thread | Re: Is there a way to translate ent, Steve Carton |
Re: xml newsfeed., Mike Brown | Date | RE: multiple sorting, David_Marston |
Month |