xsl-list
[Top] [All Lists]

[xsl] special character encoding, two problems

2014-10-15 12:56:47
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   in my input XML to   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(_at_)inera(_dot_)com

-----------------------------------------------------------------
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.
-------------------------------------------------------------------
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>