← Prev in month ← Prev in thread

Transforming ™ to ™

From
Sanjay Goel <>
To
Date
2006-07-18T13:58:03Z
ID
<>
Thread
Transforming &trade; to &trade;
Hi,
I am new to this list. 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. 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?

Thanks
Sanjay

← Prev in month ← Prev in thread