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

special character encoding, two problems

Subject: special character encoding, two problems
From: "Jonina Dames jdames@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Oct 2014 17:56:32 -0000
 special character encoding
Hi everyone,

Problem 1:
I'm having trouble figuring out why my special characters are converting 
from numeric-hex unicode to numeric-decimal unicode, e.g. from &#x00A0; 
in my input XML to &#160; in my output XML. My customer requires 
numeric-hex unicode. I suspect I'm missing something really obvious, but 
nothing that I've found via google has helped me solve the problem.

This is the xsl:output line I'm using:
         <xsl:output method="xml" encoding="us-ascii" 
omit-xml-declaration="yes" indent="yes"/>

Is there something else I should use for the encoding attribute value? 
Or am I missing something somewhere else?

Problem 2:
I'm trying to use a stylesheet with a character map so I can convert 
accented letters to their plain ascii equivalents in a surname element 
of my output XML to create indexing values. I'm new to XSLT 2.0 and I'm 
having trouble figuring out the syntax so my mappings will work 
correctly. Is there a simpler way to convert numeric unicode entities of 
accented letters to plain ascii characters, or is this my best bet?

Thanks!
Joni

-- 
Jonina Dames
Customer Support Specialist
Inera Inc.
+1 617 932 1932
eXtyles on Twitter <https://twitter.com/extyles>
jdames@xxxxxxxxx

-----------------------------------------------------------------
This email message and any attachments are confidential. If you are not 
the intended recipient, please immediately reply to the sender or call 
617-932-1932 and delete the message from your email system. Thank you.
-------------------------------------------------------------------

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.