[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to output trademark character in standards-co

Subject: RE: How to output trademark character in standards-complian t mode
From: Maria Amuchastegui <mamuchastegui@xxxxxxxxxxx>
Date: Tue, 12 Apr 2005 18:31:48 -0400
trademark c
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"
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:  How to output trademark character in standards-compliant
mode



> 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?

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.