RE: [xsl] How to output trademark character in standards-complian t mode

Subject: RE: [xsl] How to output trademark character in standards-complian t mode
From: Maria Amuchastegui <mamuchastegui@xxxxxxxxxxx>
Date: Tue, 12 Apr 2005 18:31:48 -0400
MSXML4 would not allow me to use &#153; It was outputting a question mark
and an underscore for the other two notations.

I just realized that the actual output was encoded as UTF-16. Once I added
encoding="ISO-8859-1" to xsl:output, it worked.

<xsl:output encoding="ISO-8859-1" method="html" doctype-public="-//W3C//DTD
HTML 4.01 Transitional//EN"


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Tuesday, April 12, 2005 6:26 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] How to output trademark character in standards-compliant

> I realize that &#153; is undefined in ISO-8859-1 because it reserves 
> values
> 127-159 for control characters,

character references _never_ refer to the encoding of the file, they always
refer to unicode positions: that's their main function, to allow you to
access characters that are not in the encoding.

>  so I tried to encode this using hexadecimal notation &#x2122; as well 
> as decimal notation &#8482;
Either of those should have worked. Most XSL systems would output that as &
t r a d e ; in html output method, but whether or not it outputs using an
entity ref, it shhould work in your browser.
You say it didn't work, what output did msxml4 produce, and  and what did
the browser do?


This e-mail has been scanned for all viruses by Star. The service is powered
by MessageLabs. For more information on a proactive anti-virus service
working around the clock, around the globe, visit:

Current Thread