[relaxng-user] Modules, start patterns, driver files, trang - sanity check

Bruce D'Arcus bdarcus at fastmail.fm
Mon Feb 23 08:37:37 ICT 2004


On Feb 23, 2004, at 8:29 AM, Sean McGrath wrote:

> I'm soliciting advise on how best to implement Relax modules that are 
> both usable "standalone" and usable as modules in larger modules and 
> larger standalone schemas.
>
> My first thought was to give each module its own start pattern.

Sean,

I got some help on the list awhile ago trying to do something like 
this.  Here's my example.  I combine two standalone schema into a 
third, which is defined like so:

--------------------------------------
include "biblio-notes.rnc"

include "mods-3-0.rnc" {
    extension-content = ( xnoteset | xnote )
}
--------------------------------------

The first start pattern is defined like this:

start |= ( xnoteset | xnote )

And the second like:

start |= ModsSchema

Am in a hurry, and am not much of expert either, but I hope this helps. 
  It works well for me.

Bruce



More information about the relaxng-user mailing list