OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [office] jing validation errors

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:

  <define name="any">
          <nsName ns="urn:oasis:names:tc:opendocument:xmlns:office:1.0"/>
          <nsName ns="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"/>
          <nsName ns="urn:oasis:names:tc:opendocument:xmlns:text:1.0"/>
          <nsName ns="http://www.w3.org/1998/Math/MathML"/>
          <!-- ... and analogically for namespaces used by ODF -->
          <ref name="any"/>

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 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

OpenPGP digital signature

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]