[xml] namespace xmllint error (libxml 2.5.11)

Dear libxml/xmllint users,

I have a simple xml file:

pg$ cat foo.xml
<?xml version="1.0"?>

<cd:simple xmlns:cd="http://levana.de/foons"; name="fooname">

<cd:foo />

and a simple dtd:

pg$ cat simple.dtd
<!ELEMENT simple    (foo)+    >
<!ATTLIST simple 
          name        CDATA          #REQUIRED     >

<!ELEMENT foo   EMPTY     >

but validating with xmllint gives me an error:

pg$ /opt/libxml2/2.5.11/bin/xmllint --noout --dtdvalid simple.dtd foo.xml
foo.xml:3: Element simple content does not follow the DTD
Expecting (foo)+, got (cd:foo )
Document foo.xml does not validate against simple.dtd

Doing the same thing with libxml2 version 2.4.7 (linux) works fine.

I am using MacOS X 10.2.6. Same error happened libxml2 2.5.4
installed via "fink", a package manager for OS X. I could not find
anything in the archive/google.

What am I doing wrong?

You are your own rainbow!

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