Re: combining schemas

John Cowan <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
Bruce D'Arcus scripsit:

> include "biblio-notes.rnc" { start = ModsSchema }
> 
> include "mods.rnc" {
>    extension = element extension { biblio-notes }*
> }

Well, to begin with you are trying to override a rule named "extension",
but there is no such rule in mods.rnc, so you have to refactor it so
you have such a rule.  While you're at it, how about removing all
that "notAllowed | foo" cruft in favor of just "foo"?

Your other problem is fundamental: you are importing the definition of
start from two different places, and you can't override both of them at
the same time.  This is a deficiency in RNG: the obvious workaround is
to remove the start definition from biblio-notes.rnc.

(Committee members, perhaps there needs to be a way to delete a rule at
include time?)

> * Original schema is at 
> http://www.loc.gov/standards/mods/v3/mods-3-0-draft-oct-9.xsd

This gets a 404.

-- 
All Norstrilians knew what laughter was:        John Cowan
it was "pleasurable corrigible malfunction".    http://www.reutershealth.com
        --Cordwainer Smith, _Norstrilia_        [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.