[xml] Re: namespace xmllint error (libxml 2.5.11)



Hi again,

 XML syntax only at the moment. I may add support for the compact syntax
later,

I did some tests, and I am confused. Sorry for my ignorance. Could
anybody point out what I am doing wrong?

interface.rng:
--------------------------------------------------
 version="1.0" encoding="UTF-8"?>

<element name="interface" 
         xmlns="http://relaxng.org/ns/structure/1.0";
         ns="http://www.pragma-ade.com/commands";>
  <zeroOrMore>
    <element name="command">
      <attribute name="name" />
    </element>
  </zeroOrMore>
</element>
--------------------------------------------------

simple.xml
--------------------------------------------------
<?xml version="1.0"?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands"; name="context">

<cd:command name="installlanguage">
</cd:command>

</cd:interface>
--------------------------------------------------

xmllint:
--------------------------------------------------
xmllint --noout --relaxng interface.rng simple.xml
RNG validity error: file simple.xml line 3 element interface
Invalid attribute name for element interface
simple.xml fails to validate
--------------------------------------------------



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