Re: [xslt] output hex char entities instead of decimal?
- From: Michael Smith <smith xml-doc org>
- To: xslt gnome org
- Subject: Re: [xslt] output hex char entities instead of decimal?
- Date: Wed, 28 Jan 2004 19:23:17 +0900
Daniel Veillard <veillard@redhat.com> writes:
> On Wed, Jan 28, 2004 at 04:48:06PM +0900, Michael Smith wrote:
> > Is there a way to cause xsltproc to output hexadecimal character
> > entities instead of decimal ones?
>
> Hum, no, this is hardcoded in libxml2. What's the rationale ?
>
> Daniel
Well, it's pretty much an edge case: I need to generate output for a
non-XML tool that processes unicode characters based on their code-point
values, but requires the code points to be in hex, not decimal.
--Mike
P.S. More context, if you care -
I've made an XML file that maps unicode characters to groff escape
sequences, and XLST stylesheet that uses that character map to generate
roff output in which roff sequences are substituted for their
corresponding unicode characters. (I'm planning to add the stylesheet to
man-page part of the DocBook stylesheets distro.)
The unicode characters are specified in hex in the XML source document,
and, for compatibility with another tool (utf8trans(1) in Steve Chengs'
docbook2X package), I want to generate a plain-text version. Format of
that is just:
a5 ¥(Ye
Where the 'a5' is the unicode code point (Yen symbol), and the '¥(Ye'
the corresponding roff sequence.
Problem is that utf8trans requires the code point to be specified in hex.
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]