[xml] validation errors with non-ASCII element names



Hello Daniel, hello all,

the "xmllint" of the libxml2-2.6.2 distribution fails to
validate (an actually valid) test document if

- an element name contains non-ASCII characters
  (Umlauts)
- an attribute-declaration of that element contains
  some whitespace (CR/LF and TAB)

The document:
============================================================
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE testä SYSTEM "test.dtd">
<testä foo="bar">Test</testä>
============================================================


The DTD:
============================================================
<!ELEMENT testä ANY>
<!ATTLIST testä
        foo CDATA #IMPLIED

============================================================

Testresult:
============================================================
~>xmllint --version
xmllint: using libxml version 20602
   compiled with: DTDValid HTML XPath XPointer XInclude
 Unicode Regexps Automata Schemas

~>xmllint --valid test.xml
test.xml:3: element test?ñ: validity error : No declaration for
 attribute foo of element test?ñ
<test?ñ foo="bar">Test</test?ñ>
                 ^
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE testõ SYSTEM "test.dtd">
<testõ foo="bar">Test</testõ>
============================================================


Well, i know that's a quite exotic szenario, but i guess
a possible bug in the validation routines could also cause 
other trouble.
I'm sorry that i havn't the time (by now) to debug into
libxml2 see what causes that behaviour, but the validation
process is rather complex... =]


Mit freundlichen Gruessen - Kind regards
Markus Keim



________________________Addressed by:________________________
 ORDAT GmbH & Co. KG  -  Serversystems / eCom 
 Dipl.-Inf. (FH) Markus Keim   Fon: +49 (641) 7941-0
 Rathenaustr. 1                Fax: +49 (641) 7941-132
 35394 Gießen                  mailto:markus_keim ordat com
 See:                          http://www.ordat.com
_____________________________________________________________
I love deadlines. I like the whooshing sound they make as
they fly by.  -- Douglas Adams



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]