Re: Converting Relax-NG to Schema and DTD

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Organization Dyomedea (http://dyomedea.com)
Message-ID <1073945878.22371.145.camel@delleric>
On Mon, 2004-01-12 at 23:07, David Tolpin wrote:
> > which produces
> > 
> >      cannot handle overrides inside "include"
> > 
> > and I am not sure what James *should* do here. I wish someone would write me
> > a RelaxNG equivalent of "soelim", ie something which expanded all includes
> > and activated the overrides.
> 
> this is called rng2srng, by Kohsuke KAWAGUCHI. It is a program in Java, which uses
> Jing to simpligy RELAX NG and then dumps it as a single grammar.
> 
> If it is an option, then it is the way to go. However, it makes a grammar not human-readable.
> In fact, includes are handled; overrides are not -- which means that included should
> be not expanded, but multiplexeed with overrides applied.

Hmmm, good idea...

I have also written a XSLT transformation implementing the
simplification process:

http://downloads.xmlschemata.org/relax-ng/utilities/simplification.xsl

Each step is implemented as a XSLT mode and you can stop after 7.8 which
is the expansion of includes.

Eric

-- 
Read me on Advogato.
                                         http://advogato.org/person/vdv/
Upcoming XML schema languages tutorial:
 - Santa Clara  -half day- (15/03/2004)        http://masl.to/?J24916E96
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(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.