Package: libxerces-c28
Version: 2.8.0-4
Severity: normal

The validation of the following file anyuri-xerces.xml fails:

<?xml version="1.0" encoding="utf-8"?>
<!-- XML file for validation with xerces; under Debian, see
     /usr/share/doc/libxml-xerces-perl/examples/validator.pl -->
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xsi:noNamespaceSchemaLocation="anyuri.xsd">
  <uri>http://localhost/foobar</uri>
  <uri>http://localhost/fooébar</uri>
  <uri>http://localhost/foo'bar</uri>
  <uri>http://localhost/foo bar</uri>
</root>

where anyuri.xsd is:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified">
  <xs:element name="root">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="uri"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="uri" type="xs:anyURI"/>
</xs:schema>

$ perl /usr/share/doc/libxml-xerces-perl/examples/validator.pl 
--file=anyuri-xerces.xml --schema
validator.pl:[anyuri-xerces.xml]:7:38:E:Datatype error: 
Type:InvalidDatatypeValueException, Message:Value 'http://localhost/fooébar' is 
NOT a valid URI .
validator.pl:[anyuri-xerces.xml]:9:38:E:Datatype error: 
Type:InvalidDatatypeValueException, Message:Value 'http://localhost/foo bar' is 
NOT a valid URI .

This bug is mentioned here, with an answer from the W3C:

  http://markmail.org/message/76qjt4myckr4dfw4

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages libxerces-c28 depends on:
ii  libc6                         2.9-23     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.1-1  GCC support library
ii  libicu40                      4.0.1-3    International Components for Unico
ii  libstdc++6                    4.4.1-1    The GNU Standard C++ Library v3

libxerces-c28 recommends no packages.

libxerces-c28 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to