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.
For example, suppose we have the following in our XML source:
When processing for html delivery, we want to pass the entities as is:
When processing for print, however, we want to replace the entities with
strings recognized by FrameMaker's MML markup language, which uses a slash
as the "escape" character:
In other cases we might want to simply resolve the entity to:
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).
Any help will be appreciated.
([log in to unmask])