This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Problem with XT and encoding?
- To: xsl-list at lists dot mulberrytech dot com, Mark Kennedy <MarkK at fool dot com>, "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Problem with XT and encoding?
- From: Janning Vygen <vygen at planwerk6 dot de>
- Date: Wed, 30 May 2001 18:34:02 +0200
- Organization: Planwerk 6 /websolutions
- References: <13CDDE6A53DBD311BC3200508B6F0C4803189521@rover.foolhq.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Am Mittwoch, 30. Mai 2001 17:17 schrieb Mark Kennedy:
> Hello, all:
>
> I'm having a problem with transformations using XT when using characters
> that are outside of the standard ASCII 127, and I can't figure out why. In
> the following examples, the » is character 187 in ISO-8859-1 (Latin 1).
> That character (and seemingly any character greater than the standard 127)
> gets turned into two characters, i.e. the » gets turned into »
>
> I imagine this is some simple encoding issue, but I'm flummoxed. The only
> other XSLT engine that I have available for testing is the MSXML in IE5,
> and I don't get this result with it, though I don't really think that means
> much.
>
> I'm running the Win32 binary of XT on and NT machine.
i tried almost any parsers and finally found Saxon which deals perfectly with
encoding and all other problems i encountered with different parsers. just
put an xsl:output tag in your stylesheet
<xsl:output method="html"
encoding="ISO-8859-1"
indent="no"/>
janning
> Any suggestions are appreciated!
>
> Input XML File:
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <test>»</test>
>
> XSLT File:
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output omit-xml-declaration="yes"/>
>
> <xsl:template match="/">
> <xsl:copy-of select="test"/>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Resulting XML File:
> <test>»</test>
>
> ______________________
> Mark Kennedy
> markk@fool.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
Planwerk 6 /websolutions
Herzogstraße 86
40215 Düsseldorf
fon 0211-6015919
fax 0211-6015917
http://www.planwerk6.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list