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

Retaining Unicode Notations

Subject: Retaining Unicode Notations
From: "Bijo Alex Thomas" <bijoalex@xxxxxxxxxx>
Date: Sat, 19 Nov 2005 17:13:46 +0530
x0009
I am trying to transform an XML file containing some unicode notations to
another  XML using Xalan 2.5.2.

During the transformation, all the unicode notations I use in the source XML
is getting converted to corresponding characters. Is there any way I can
disable this behavior? I want the output XML to retain the original unicode
notations.

The XSL I use is say,
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

 <xsl:output method="xml"/>

 <xsl:template match="root">
  <xsl:element name="newRoot">
   <xsl:apply-templates/>
  </xsl:element>
 </xsl:template>

</xsl:stylesheet>
-----------------------------------

On transforming the XML

-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<root>&#x00A0;&#x0020;&#x0009;&#x2010;&#x00E1;</root>
-----------------------------------

using the above XSL, I am getting an output

-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<newRoot>   -a</newRoot>
-----------------------------------

I need an output like

-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<newRoot>&#x00A0;&#x0020;&#x0009;&#x2010;&#x00E1;</newRoot>
-----------------------------------

Regards,
Bijo

_________________________________
Bijo Alex Thomas
DSRC, 6, Smith Road, Chennai - 2
Mail: bijoalex@xxxxxxxxxx
Website: http://dsrc.com

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.