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

Re: Identity Transform losing special characters

Subject: Re: Identity Transform losing special characters
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Feb 2009 10:53:29 +0000
Re:  Identity Transform losing special characters
On Fri, Feb 20 2009 06:43:58 +0000, jesper.tverskov@xxxxxxxxx wrote:
>> My identity transform is losing the &#160;.
>
> The identity transformation always replaces character entities with

It happens in the XML parsing, even before the XSLT processor gets a
look at it, and happens irrespective of the stylesheet.

> what they represent. That is the non breaking space is still there but
> no longer as a character reference but as a non breaking space.

If you are using XSLT 2.0, you could "put back" specific numeric
character references using xsl:character-map or, as was pointed out
elsewhere, you could set the xsl:output encoding to "US-ASCII" so that
all non-ASCII characters are serialised as numeric character references.

Regards,


Tony Graham                         Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

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.