Re: Modules, start patterns, driver files, trang - sanity check

"Bruce D'Arcus" <[email protected]> Mon, 23 Feb 2004 08:37:37 -0500
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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