[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Problems validating a very simple xml file
$ cat meta.xml
<?xml version="1.0" encoding="UTF-8"?>
<office:document-meta xmlns:office="urn:oasis:names:tc:openoffice:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:openoffice:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" >
<office:meta>
<meta:generator>KOffice 1.3post</meta:generator>
</office:meta>
</office:document-meta>
$ oasislint meta.xml
/k/meta.xml:4:34: error: text not allowed here
where oasislint is a script that does the following
/usr/java/j2re1.4.2_04/bin/java -jar $HOME/src/jing/bin/jing.jar -i /k/oo/office-schema-1.0-cd-1.rng $*
Text is allowed inside <meta:generator>, isn't it? Or do I read this wrongly?
<define name="office-meta-data" combine="choice">
<element name="meta:generator">
<ref name="string"/>
</element>
</define>
"string" refers to <data type="string"/>, which I assume is a standard RelaxNG type...
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]