[relaxng-user] Teaching Relax NG

John Cowan cowan at mercury.ccil.org
Sun Sep 28 00:37:01 ICT 2003


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


More information about the relaxng-user mailing list