Re: [xslt] Output not going to the end ?
- From: Raphael Hertzog <rhertzog hrnet fr>
- To: xslt gnome org
- Subject: Re: [xslt] Output not going to the end ?
- Date: Tue, 3 Jul 2001 01:55:48 +0200
Le Mon, Jul 02, 2001 at 06:23:26AM -0400, Daniel Veillard écrivait:
> Without a complete set of input and XSLT exhibiting the problem
> with xsltproc we are just left with some guesswork. Sorry, doesn't
> work in practice.
You're lucky, I just made a minimalistic testcase after having
localized the problem.
Strangely the character '©' is causing problem when it's included
in a XML file via XInclude. Even if it's a perfectly legal ISO-8859-1
entity.
I get this :
$ xsltproc --xinclude test.xsl test.xml >/dev/null
output conversion failed due to conv error
Bytes: 0xA9 0x0A 0x0A 0x0A
xmlOutputBufferWrite: encoder error
The files are attached. I can't look any further. It's up to you now ;-)
In the meantime, I'll avoid © in the included files.
The problem seems to be that when inluding a file with XInclude it
makes an assumption about the encoding (it ignores the encoding
attribute ?). Looks like the issue is known (excerpt from xinclude.c in
xmlXIncludeLoadTxt) :
/*
* Load it.
* Issue 62: how to detect the encoding
*/
[...]
/*
* TODO: if the encoding issue is solved, scan UTF8 chars instead
*/
Cheers,
--
Raphaël Hertzog -+- http://strasbourg.linuxfr.org/~raphael/
Le bouche à oreille du Net : http://www.beetell.com
Naviguez sans se fatiguer à chercher : http://www.deenoo.com
Formation Linux et logiciel libre : http://www.logidee.com
<?xml version="1.0" encoding="ISO-8859-1" ?>
<vide>
<text>
Inline : ® ® ®
Included :
<xi:include encoding="ISO-8859-1" parse="text" href="texte" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</text>
</vide>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--<xsl:output encoding="ISO-8859-1" method="text"/>-->
</xsl:stylesheet>
©
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]