Re: [xslt] Bug: standalone attribute not recognized in XML declaration
- From: Michael Ludwig <mlu as-guides com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Bug: standalone attribute not recognized in XML declaration
- Date: Tue, 25 Aug 2009 18:00:23 +0200
Alexander Pohoyda schrieb:
This perfectly correct XML file (according to xmllint):
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!DOCTYPE a PUBLIC "-//A//EN" "">
<a />
Cannot be processed by xsltproc with this oputput:
a.xml:1: parser error : parsing XML declaration: '?>' expected
standalone="yes"?>
^
I don't know whether or not this is a bug, but I can confirm that there
is an error with the current version of LibXML2 and LibXSLT.
milu colinux:~ > xsltproc --version
Using libxml 20703, libxslt 10124 and libexslt 813
xsltproc was compiled against libxml 20703, libxslt 10124 and libexslt 813
libxslt 10124 was compiled against libxml 20703
libexslt 813 was compiled against libxml 20703
milu colinux:~ > xsltproc Werkstatt/xsl/identity.xsl /tmp/a.xml
/tmp/a.xml:1: parser error : parsing XML declaration: '?>' expected
standalone="yes"?>
^
/tmp/a.xml:2: parser error : Content error in the external subset
<!DOCTYPE a PUBLIC "-//A//EN" "">
^
/tmp/a.xml:2: parser error : Content error in the external subset
<!DOCTYPE a PUBLIC "-//A//EN" "">
^
unable to parse /tmp/a.xml
If I remove the DOCTYPE line, no error happens.
Same here.
--
Michael Ludwig
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]