Michael Brauer - Sun Germany - ham02 - Hamburg wrote:
> I would be glad if my analysis of the issue is incorrect, but right now,
> I don't see any other solution than avoiding any reference to the RNG
> DTD Compatibility specification, and to provide the advice to use RNG
> with the "-i" switch.
Hi Michael,
there is another solution. You can explicitly remove elements in
namespaces defined by ODF from any pattern. Anyway, I suppose that
intent was not allow anything in places where "any" is used now, but
only anything which is not defined in ODF.
So it is possible to change definition of any to something like:
We have been successfully using this approach in extended DocBook and
XHTML schemas in Relaxed validator. I do not have the latest ODF schemas
at hand so I haven't chance to test whether this approach clashes with
anything else in schema.
But, anyway extensibility in elements like office:meta and draw:object
could be much more elegantly described by using NVDL and effectively
stripping such extension elements from document before sending to
validation against RELAX NG schema.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------