Re: combining schemas

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Organization Dyomedea (http://dyomedea.com)
Message-ID <1069778243.1106.184.camel@delleric>
On Tue, 2003-11-25 at 17:22, Bruce D'Arcus wrote:

> 
> http://www.users.muohio.edu/darcusb/files/biblio-notes.rnc
> http://www.users.muohio.edu/darcusb/files/mods3.rnc
> 

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


Hmm....

>From what I understand, you want to have a start element equal to
"ModsSchema".

The simplest solution is to remove the definition of the start pattern
in biblio-notes.rnc and just write:

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

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

If for any reason, you wanted to leave the definition of the start
pattern in biblio-notes.rnc, you could replace this by:

==============================================

include "mods.rnc" {
    extension = element extension { external "biblio-notes.rnc" }*
}
==============================================

Hope this helps.

Eric
-- 
Rendez vous a Paris pour le Forum XML.
                                    http://www.technoforum.fr/integ2003/
Upcoming XML schema languages tutorials:
 - Philadelphia -full day- ( 7/12/2003)        http://masl.to/?V28612FC5
 - Santa Clara  -half day- (15/03/2004)        http://masl.to/?J24916E96
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
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.