Re: Teaching Relax NG

John Cowan <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
James Clark scripsit:

> - always have an implicit top-level grammar

I agree, except for pedagogical examples.

> - no nested element patterns; move nested element patterns into separate 
> definitions

I don't mind nested elements if they are "attribute-like"; simple
content models, not significantly reused.

> - any closing ( on the same line as the opening ); if this makes the 
> line too long or the expression hard to read, then factor part of the 
> expression out into another definition

I don't care much about this point.

> - closing } either on the same line as the opening { or on a line by 
> itself aligned with the start of the keyword before the opening {

The "One True Brace Style" set by the K&R C book.

-- 
Go, and never darken my towels again!           John Cowan
        --Rufus T. Firefly                      www.ccil.org/~cowan
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.