Subject: Re: [xsl] unicode numeric character references in xml output From: Eliot Kimber <ekimber@xxxxxxxxxxxx> Date: Fri, 30 May 2008 14:49:01 -0500 |
On 5/30/08 12:28 PM, "a k laue" <quiotl@xxxxxxxxx> wrote: > Hello, > > I'm transforming XML to XML, and I need to pass > through the unicode numeric character references (hex) > from the source to the output. That is, I need > "’" in the input to appear as "’" in the > output. I'm using XSLT 2.0 and the Saxon 9B processor. Then you need to look at this page in the Saxon docs: http://www.saxonica.com/documentation/extensions/output-extras/character-rep resentation.html Mike has added the ability to specify that you want hex values for numeric character references. You can't directly control how characters are serialized with XSLT since it shouldn't matter how characters are represented (I assume you're trying to satisfy either some tool that does care or implement some policy that mandates the use of hex values for numeric character references). Cheers, Eliot -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] unicode numeric character ref, a k laue | Thread | RE: [xsl] unicode numeric character, Michael Kay |
Re: [xsl] A belated Happy Birthday, Wendell Piez | Date | RE: [xsl] unicode numeric character, Michael Kay |
Month |