In message <[log in to unmask]>, John
E. Simpson <[log in to unmask]> writes
>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.
Also check out the built-in mapping of special characters to entity
references within the xsl:output HTML method, "at the discretion of the
XSLT processor" (Kay, p.258). This may deal with your requirements if,
as suggested above, your special characters are fairly common ones.
SGML/XML and Museum Information Consultancy
[log in to unmask]