Hi,

Le mardi 11 mars 2008 à 12:50 -0400, Brad Langhorst a écrit :
> On Tue, 2008-03-11 at 12:23 -0400, G. Ken Holman wrote:
> > At 2008-03-11 10:39 -0400, John Cowan wrote:
> > >David Tolpin scripsit:
> > > > Hi,
> > > >
> > > > > Is there any tool that will "compile" a composite rng by merging
> > in the
> > > > > external refs?
> > > > >
> > > >
> > > > http://ftp.davidashen.net/incelim/
> > >
> > >Coolness. This should of course be linked from relaxng.org, but...
> > 
> > ... but has been added to http://www.relax-ng.org
> 
> 
> Ach... it seems to work pretty well, but doesn't solve my trouble since
> trang can't handle embedded grammars.

In that case, you should be able to adapt the XSLT transformation I
wrote to show how the RNG simplification works [1].

Each step of the simplification process as described in the ISO spec [2]
is implemented as a mode. These steps do sometimes depend on the
previous ones and I wouldn't recommend removing a step if you don't
remove the following ones. The suppressions of embedded grammars being
step 7.19, you should be fine if you adapt the transformation to exit
after this one (the result will be more readable than if you perform the
whole simplification). 

[1] http://downloads.xmlschemata.org/relax-ng/utilities/simplification.xsl
[2] http://www.y12.doe.gov/sgml/sc34/document/0362_files/relaxng-is.pdf

Hope this helps.

Eric

-- 
GPG-PGP: 2A528005
Did you know it? Python has now a Relax NG (partial) implementation.
                                          http://advogato.org/proj/xvif/
------------------------------------------------------------------------
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
------------------------------------------------------------------------

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to