W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2012

Re: Serialization options

From: Olivier Jeulin <olivier.jeulin@gmail.com>
Date: Thu, 29 Mar 2012 00:36:05 +0200
Message-ID: <4F739255.4090708@gmail.com>
To: xproc-dev@w3.org
Le 27/03/2012 22:17, Wendell Piez a écrit :
> Hi,
> I am successfully using
> <p:serialization port="final" encoding="us-ascii"/>
> to get my pipeline to serialize non-ascii characters as Unicode
> character references.
> But my client (no, I can't say why) wants them to be in hex notation
> not decimal, which is what I'm now getting. So close, and yet so far. :-(
> Does anyone have any tips to share? I'm using Calabash under oXygen.
> Saxon has an extension attribute on xsl:output for this,
> saxon:character-representation, but I wouldn't know how to invoke it
> even if it's possible.
> I've thought of writing the output from a terminal stylesheet using
> xsl:result-document, but I'd gladly do this the right way.

I would try to serialize with a XSLT, using xsl:output to tweak the
output (encoding="us-ascii" + saxon:character-representation="hex").

Replace p:serialization by p:xslt and cross your fingers...

Olivier Jeulin
Received on Wednesday, 28 March 2012 22:37:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:02 UTC