[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] output encoding problem (second try)


Subject: RE: [xsl] output encoding problem (second try)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 17 Aug 2005 15:00:17 +0100

I don't know if I'm the only regular on this list who generally makes a
point of not following links, especially links that cause programs to
execute. It's partly general caution, partly that I'm always busy, and
partly in a case like this because I don't think following the link will
tell me much, since there is so much happening between the output of the
XSLT transformation and the pixels that I see in my browser window.

What's needed is to look at the input and output files of the transformation
directly (with a hex editor) to see:

(a) what the declared encoding is (what's in the XML declaration)
(b) what the actual encoding is (what hex codes are used to represent E D V)

The chances are that the two don't match.

Michael Kay
http://www.saxonica.com.

> -----Original Message-----
> From: Gabriel K [mailto:gabriel.klappenbach@xxxxxxxxxxxx]
> Sent: 17 August 2005 13:40
> To: XSL-list
> Subject: [xsl] output encoding problem (second try)
>
> Hi.
> I've been going at this problem for quite some time with no luck.
> The problem is one of encodings. My XSL-file transforms an
> XML document, and
> also reads from another one using document(). For some
> reason, these two
> never display the characters E D V in them correctly *at the
> same time*
> (that is, using a specific encoding).
>
> Below is a link to the output of the transformation. First I
> output with
> IXSLprocessor, and below that using transformNode().
>
> http://gabbah.no-ip.org/mirakel/ex.asp?ctype=KSP&cdoc=object&c
> nBookmark=ARNE
> BACKEN&cpKNP=*
>
>
> As you can see, with IXSLprocessor, the XML read with document() is
> displayed correctly, but the main XML is not (the word
> 'TrollhC$ttan' is
> from the main XML).
> With transformNode(), the main XML is displayed correctly, while the
> 'imported' one is not. (the word Kabelsk?p is from the imported)
>
> I'm trying to output everything in UTF-8. The output element
> controls the
> output encoding only when I use transformNode(), not with
> IXSLProcessor.
> If you change the encoding used in the browser, either the
> main XML or the
> imported will not look good!
> *OBSERVE* that the transformation is successful if I
> transform it in XMLSPY;
> all characters display fine. (Then the main XML has been
> saved to disk first
> and the transformed).
> So the problem is when I go via ASP!
>
> The asp:
> http://gabbah.no-ip.org/mirakel/ex.asp.txt
> the XSL:
> http://gabbah.no-ip.org/mirakel/XSL/PC/KSPex.xsl
> the main XML:
> http://gabbah.no-ip.org/mirakel/ex.asp?ctype=KSP&cdoc=object&c
> nBookmark=ARNE
> BACKEN&cpKNP=*&transform=no
> the XML imported with document():
> http://gabbah.no-ip.org/mirakel/XML/languageDependent.xml
> XML-engine:
> MSXML3
>
> Any help with this would be MUCH appreciated.. I've been
> struggling with
> this for many many days!
>
> /Gabriel


Current Thread
Keywords