Re: WG: [xslt] decimal char problem - possible Solution
- From: Marco Stipek <stipek triplex de>
- To: xslt gnome org
- Subject: Re: WG: [xslt] decimal char problem - possible Solution
- Date: Thu, 13 Sep 2001 15:10:19 +0200
Proposal for sollution:
As far as I know the standard allows a decimal encoding.
So I think the feature "choosing encoding type" could be added.
Maybe in the common way things are done in libxml/libxslt with a
global var int decimalencode (TRUE|FALSE).
encoding.c:2267 and potentially in entities.c(711)
if ( decimalencode == 1)
{
sprintf((char *) charref, "&#x%X;", cur);
}
else
{
sprintf((char *) charref, "&#%d;", cur);
}
OF> -----Ursprüngliche Nachricht-----
OF> Von: xslt-admin@gnome.org [mailto:xslt-admin@gnome.org] Im Auftrag von
OF> Oliver Feige
OF> Gesendet: Donnerstag, 13. September 2001 14:43
OF> An: xslt@gnome.org
OF> Betreff: Re: [xslt] decimal char problem
OF> On Don, 2001-09-13 at 12:02, Daniel Veillard wrote:
>> > Is there any change to get the result from libxslt with decimal
OF> Chars
>> > instead hexadecimal???
>>
>> Well, I suppose you asked for HTML output. Then the only way to
>> fix it is in the libxml2 code to switch to decimal charrefs in the
>> serialization code.
OF> Ok, but isn't it easier to introduce a parameter which does the
OF> switch if needed? Unfortunately i don't know if decimal or hexadecimal
OF> is prescribed in html.If we patch this function generally, there's only
OF> a decimal encoding in the xml output.
>>
>> Can you provide a test and stylesheet exhibiting the error, because
>> for HTML output the processor output the UTF8 value:
OF> Unfortunately I have to admit, that i didn't understand this
OF> sentence... please find attached two files which do the transformation.
>>
>> If you generate XML and feed Netscape with it, I expect far more
OF> things
>> to break actually !
OF> We generate html and don't have any problems with netscape except the
OF> encoding.
OF> Oliver Feige
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]