At 09:23 PM 2/18/2003 +0800, Guy Worthington wrote:

Hans, you make life hard.  I've been playing around with this, this
afternoon, it's like magic.  But now I've got to rethink how I
format XML to exploit the pretty-printing capability, especially how I
should group elements.
Say that you use relax ng, have the following def's in, say, eximple.rng:

<?xml version="1.0" ?>

<?context-block begin grammar ?>

<grammar xmlns="http://relaxng.org/ns/structure/1.0";>

<?context-block end grammar ?>

<?context-block begin framework ?>

<start>
  <choice>
    <ref name="request"/>
    <ref name="reply"/>
  </choice>
</start>

<?context-block end framework ?>

.....

<?context-block begin grammar ?>

</grammar>

<?context-block end grammar ?>

then you can say:

\definefilesynonym [eximple] [eximple.rng]

and later on pick up the components:

\showRNGcomponent[eximple][framework]

saves you some work and make documentation in a separate file easier

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                       information: http://www.pragma-ade.com/roadmap.pdf
                    documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to