xsl-list
[Top] [All Lists]

Re: [xsl] Identity Transform losing special characters

2009-02-20 05:53:51
On Fri, Feb 20 2009 06:43:58 +0000, jesper(_dot_)tverskov(_at_)gmail(_dot_)com 
wrote:
My identity transform is losing the  .

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(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--