Package: xmldiff-xmlrev
Version: 0.6.6-1
Severity: normal
Hello,
The program description says this problem will compare XML files.
However, namespaces are a standard part of XML files, and xmlrev seems to
complain loudly if it sees an valid XML file with ':' in the name of an
element.
For example:
--- cut ---
[636] [snoopy:bam] /tmp >cat test.dtd
<!ELEMENT t:test (t:subelement)>
<!ATTLIST t:test
xmlns:t CDATA #FIXED "http://test/test"
>
<!ELEMENT t:subelement EMPTY>
[637] [snoopy:bam] /tmp >cat test.xml
<!DOCTYPE t:test SYSTEM "test.dtd">
<t:test xmlns:t="http://test/test">
<t:subelement/>
</t:test>
[638] [snoopy:bam] /tmp >xmllint --valid test.xml
<?xml version="1.0"?>
<!DOCTYPE t:test SYSTEM "test.dtd">
<t:test xmlns:t="http://test/test">
<t:subelement/>
</t:test>
[639] [snoopy:bam] /tmp >xmlrev --diff test.xml test.xml
sgmlnorm:test.xml:1:11:E: character ":" invalid: only delimiter ">", delimiter
"[", "PUBLIC", "SYSTEM" and parameter separators allowed
sgmlnorm:test.xml:1:11:E: cannot continue because of previous errors
Unknown option --sgml
sgmlnorm:test.xml:1:11:E: character ":" invalid: only delimiter ">", delimiter
"[", "PUBLIC", "SYSTEM" and parameter separators allowed
sgmlnorm:test.xml:1:11:E: cannot continue because of previous errors
Unknown option --sgml
sgmlnorm:test.xml:1:11:E: character ":" invalid: only delimiter ">", delimiter
"[", "PUBLIC", "SYSTEM" and parameter separators allowed
sgmlnorm:test.xml:1:11:E: cannot continue because of previous errors
Unknown option --sgml
sgmlnorm:test.xml:1:11:E: character ":" invalid: only delimiter ">", delimiter
"[", "PUBLIC", "SYSTEM" and parameter separators allowed
sgmlnorm:test.xml:1:11:E: cannot continue because of previous errors
Unknown option --sgml
/tmp/xmlrev.dest.3A1ErK:1:0: syntax error
--- cut ---
It looks like it might be treating it as a SGML file because of the
DOCTYPE declaration (I believe this is a valid XML DOCTYPE declaration),
however, this problem occurs even if I comment it out:
--- cut ---
[642] [snoopy:bam] /tmp >cat test.xml
<!-- <!DOCTYPE t:test SYSTEM "test.dtd"> -->
<t:test xmlns:t="http://test/test">
<t:subelement/>
</t:test>
[643] [snoopy:bam] /tmp >xmllint test.xml
<?xml version="1.0"?>
<!-- <!DOCTYPE t:test SYSTEM "test.dtd"> -->
<t:test xmlns:t="http://test/test">
<t:subelement/>
</t:test>
[644] [snoopy:bam] /tmp >xmlrev --diff test.xml test.xml
sgmlnorm:test.xml:3:0:E: no document type declaration; will parse without
validation
sgmlnorm:test.xml:3:2:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:4:4:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:5:3:E: character ":" not allowed in end tag
sgmlnorm:test.xml:5:10:E: end tag for "T" omitted, but its declaration does not
permit this
sgmlnorm:test.xml:3:0: start tag was here
Unknown option --sgml
sgmlnorm:test.xml:3:0:E: no document type declaration; will parse without
validation
sgmlnorm:test.xml:3:2:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:4:4:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:5:3:E: character ":" not allowed in end tag
sgmlnorm:test.xml:5:10:E: end tag for "T" omitted, but its declaration does not
permit this
sgmlnorm:test.xml:3:0: start tag was here
Unknown option --sgml
sgmlnorm:test.xml:3:0:E: no document type declaration; will parse without
validation
sgmlnorm:test.xml:3:2:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:4:4:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:5:3:E: character ":" not allowed in end tag
sgmlnorm:test.xml:5:10:E: end tag for "T" omitted, but its declaration does not
permit this
sgmlnorm:test.xml:3:0: start tag was here
Unknown option --sgml
sgmlnorm:test.xml:3:0:E: no document type declaration; will parse without
validation
sgmlnorm:test.xml:3:2:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:4:4:E: character ":" not allowed in attribute specification
list
sgmlnorm:test.xml:5:3:E: character ":" not allowed in end tag
sgmlnorm:test.xml:5:10:E: end tag for "T" omitted, but its declaration does not
permit this
sgmlnorm:test.xml:3:0: start tag was here
Unknown option --sgml
/tmp/xmlrev.dest.OW2zlw:1:0: syntax error
--- cut ---
If I completely delete the DOCTYPE declaration, it works:
--- cut ---
[646] [snoopy:bam] /tmp >cat test.xml
<t:test xmlns:t="http://test/test">
<t:subelement/>
</t:test>
[647] [snoopy:bam] /tmp >xmllint test.xml
<?xml version="1.0"?>
<t:test xmlns:t="http://test/test">
<t:subelement/>
</t:test>
[648] [snoopy:bam] /tmp >xmlrev --diff test.xml test.xml
<?xml version="1.0"?>
<xupdate:modifications version="1.0"
xmlns:xupdate="http://www.xmldb.org/xupdate">
--- cut ---
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Versions of packages xmldiff-xmlrev depends on:
ii libxml2-utils 2.6.16-7 XML utilities
ii python2.3-xmldiff 0.6.6-1 Tree 2 tree correction between xml
ii sp 1.3.4-1.2.1-43 James Clark's SGML parsing tools
ii xmldiff 0.6.6-1 Tree 2 tree correction between xml
ii xsltproc 1.1.12-8 XSLT command line processor
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]