[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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  . > > 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|