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

RE: character transformation.

Subject: RE: character transformation.
From: Paul Barclay <paul.barclay@xxxxxxxxxxxxxxxxxx>
Date: 13 Aug 2003 09:50:37 +0100
trade xml
> Corrupt?

I get a small square like the charset does not have the correct
character reference.

The only browser that can render it seems to be Konquror, while I am all
for this the spec is that it works on IE6 and Netscape 4 and above.

I have tried using &reg; and &trade; in my XML doc but the &trade; gets
transformed to this "corrupt" character while &reg; stays the same.

I have solved it by defining the following entities:

	<!ENTITY tm "<![CDATA[&trade;]]>">
	<!ENTITY copy "<![CDATA[&copy;]]>">
	<!ENTITY reg "<![CDATA[&reg;]]>">

I have also disabled output escaping in the XSL doc and this works
great. However these entitey are no good for using in CDATA elements. So
I have to define a new set of entities for that. As you can see it is
going to get messy.

PB

On Wed, 2003-08-13 at 09:14, Julian Reschke wrote:
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Paul Barclay
> > Sent: Wednesday, August 13, 2003 9:57 AM
> > To: XSLList
> > Subject:  character transformation.
> >
> >
> > Hello,
> >
> > I have an XSL doc that get transformed into html using an XML doc to
> > populate data elements within the XSL, nothing new here! However
> > something is converting references to &#169; and &#174; into &reg; and
> > some other symbol that is corrupt. I have not defined any entities which
> 
> Corrupt?
> 
> > will account for this transformation.
> 
> You are using the HTML output method (possibly implicitly), therefore the
> XSLT processor is allowed to use HTML entities.
> 
> > Does any body know at which stage the values &#169; etc. are being
> > changed.
> >
> > I am using xalan.jar
> 
> Julian
> 
> --
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


________________________________________________________________________

E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

________________________________________________________________________


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.