[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] special character encoding, two problems

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

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?


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

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