OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Transforming ™ to ™

[ Lists Home | Date Index | Thread Index ]

Thanks Michael ... the output encoding="us-ascii" does the trick :-)

Sanjay

On 7/18/06, Michael Kay < mike@saxonica.com> wrote:
 > I am new to this list.  
 
Welcome aboard, and if you can understand Len Bullard, you're doing better than most of us.
 
I have an xml which I transforming to an html. I want the trademark symbol in the output html. More specifically, I need &trade; in the final html.  
 
 > Now, I see that if I put &amp; in the xml, I get &amp; in the output html. However, if I put &#x2122; or if I define a entity, the output in html is . So this html gets displayed differently on different browsers.  
 
> Only if your browser or server is misconfigured. &#x2122; means the Unicode character x2122 and it should display the same way whether you use a named entity reference, a numeric character reference, or the literal Unicode character itself.
 
 I need &trade; or &#x2122; in the final html so that the browsers read it correctly.

I tried creating entity defination as <!ENTITY trade "&#x0026;#x2122;"> but that gives the same output.
Also, I cannot use <xsl:text disable-output-escaping="yes"> kind of hack.

How do you people put special characters like these in xml?

 If you can't fix the underlying configuration problems that cause the character to be displayed incorrectly, try using <xsl:output encoding="us-ascii"/>.
 
Michael Kay





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS