Andreas, Dave,
Dave Pawson wrote:
On 27/10/06, Andreas M. <[EMAIL PROTECTED]> wrote:
Hi,
I wanted to associate the RelaxNG schema I found at
http://www.oasis-open.org/committees/download.php/12571/OpenDocument-schema-v1.0-os.rng
with 'content.xml' in oXygen. It threw this two errors upon validation.
I am a RelaxNG illiterate and would like to ask, what this means. Maybe
I am using a RNG, that I shouldn't ? Is there another, valid one ?
ODF has the possibility that it can generate an instance with two ID values
the same, which is sytactically wrong for XML. A user can add an identifier
(which is used as an ID), which can be the same as another n pages earlier.
It is up to the implementor to check this. There is no requirement to do
this.
Since ODF is a file format, it does not generate IDs. Only ODF
applications can do so. It is of course an error if an application
generates the same ID for two elements.
ODF has not addressed this in the spec. The focus seems to be on the
presented content, not the XML on disk (wrong IMHO).
That's indirectly addressed in the spec. IDs have the W3C XSD datatype
ID, and it requires uniqueness. There is no need to rephrase that in the
specification.
Jing seems to think the schema is valid, and I don't know of any
better validator. I think Oxygen uses Jing too.
I don't know Oxygen, but Jing by default checks IDs against the RNG DTD
Compatibility rules. This has to be switched of by the "-i" switch.
Maybe that's similar for Oxygen,
Michael
--
Michael Brauer, Technical Architect Software Engineering
StarOffice/OpenOffice.org
Sun Microsystems GmbH Nagelsweg 55
D-20097 Hamburg, Germany [EMAIL PROTECTED]
http://sun.com/staroffice +49 40 23646 500
http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]