[relaxng-user] combining schemas

John Cowan cowan at mercury.ccil.org
Tue Nov 25 12:02:49 ICT 2003


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_        jcowan at reutershealth.com


More information about the relaxng-user mailing list