[xml] Re: namespace xmllint error (libxml 2.5.11)
- From: Patrick Gundlach <pg levana de>
- To: xml gnome org
- Subject: [xml] Re: namespace xmllint error (libxml 2.5.11)
- Date: Mon, 06 Oct 2003 16:31:50 +0200
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]