Scott Daley wrote:
> 
> I want to define a schema (rather than DTD) that includes or is a
> customisation of Docbook.  It have referenced oasis-open.org and found
> schema definitions that are equivalent to DTD.  The schema's do not
> appear to be as easily customisable as the DTD's.
> With DTD, removing an element is accomplished by redefining the class
> and changing the entity module definition to IGNORE.  I don't see how to
> achieve this with the schema's.  Schema's appear to use substitution
> group as the mechanism for inclusion in a 'class'.  Elements definitions
> are used to define association to substitution group.  I don't see how
> to change these 'associations' to substitution group.  'redefine' and
> 'restriction/extension' work on complex types, not elements.

I'm sorry but it is very hard to help you: we really know nothing at all
about the W3C XML Schema version of the DocBook grammar.

We agree with Jirka Kosek when he says "I would recommend you to base
your customization on RELAX NG schema for DocBook V5.".

I would even *strongly* recommend not to do anything with the W3C XML
Schema version of the DocBook grammar, as I don't see any future for it.

---
PS: Learning RELAX NG is very easy compared to learning W3C XML Schema:
much less concepts, much more powerful. (Similar to Java[tm] versus C++,
in case you are a programmer.)

Personally, I've read (twice!) the "RELAX NG" book by Eric van der Vlist
to learn this technology. See http://books.xmlschemata.org/relaxng/

Reply via email to