RE: differentiation between text() and entities???

Subject: RE: differentiation between text() and entities???
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 14 Jun 2000 16:16:10 +0100
> Either way, your choice of encoding for the output will
> affect what happens to any #169 characters that are destined to be
> inserted in the output stream.

It may affect it, but on the other hand it may not. As far as the spec is
concerned, XSLT processors are free to choose any representation that is
consistent with the encoding.

In Saxon, for method="html", the highly pragmatic rules for output of
non-ASCII characters are:

for characters in the range 160-255, use an entity reference, e.g.
for other non-ASCII characters, use the native character if supported by the
selected encoding, otherwise use a numeric character reference.

There's nothing in the spec to say it has to be this way, the rules have
simply evolved to minimize the number of user complaints.

Mike Kay

 XSL-List info and archive:

Current Thread