At 12:41 PM 10/23/2000 -0500, Healy, Jonathan wrote:
>I am trying to work out the details of displaying special characters
>(greater-than and less-than signs, for example) in both print and online
>documentation. This means we face the common problem of having to pass an
>entity such as "<" through an XSL stylesheet without resolving the
>entity. A more basic problem, however, is that we need to process the entity
>differently depending on which stylesheet is being applied.
>Is this possible using XSL? It seems that with an XSL stylesheet you have
>two choices: resolve the entity, or don't. I haven't found any way to
>transform an entity using a stylesheet (replace "<" with "\<", for
>example). We have similar issues with other special "characters" including
>non-breaking spaces and carriage returns (whether or not these are really
>characters, it seems useful to view them that way).
You might want to look at the <xsl:text> element's disable-output-escaping
attribute, and/or the <xsl:output> element's cdata-section-elements attribute.
Remember btw that this isn't really a problem with XSLT as such. By the
time an XSLT processor sees its content, the content has already been
parsed -- including entity expansions.
John E. Simpson | "He asked me if I knew what
http://www.flixml.org | time it was. I said, 'Yes, but
XML Q&A: http://www.xml.com | not right now.'" (Steven Wright)