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 ™ 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" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/> Maria -----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 mode > I realize that ™ 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 ™ as well > as decimal notation ™ 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? David ________________________________________________________________________ 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: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to output trademark c, Maria Amuchastegui | Thread | [xsl] XSLT 2.0 Grouping in XSLT 1.0, Daniel O'Donnell |
Re: [xsl] How to output trademark c, David Carlisle | Date | Re: [xsl] how to translate XML with, Alex Milowski |
Month |