← Prev in month ← Prev in thread

[relax-ng] Limitation in the compact syntax

From
John Cowan <>
Date
2002-06-07T13:32:44+00:00
ID
Thread
[relax-ng] Limitation in the compact syntax
While trying to translate Makoto's ooRelaxNG examples into the
compact syntax, I bumped up against a problem: once inside an
annotation, you can only use annotation syntax.  This doesn't work
well for things like ooRelaxNG, where the os:class element can contain
snippets of RELAX NG.

I propose therefore an extension to the compact syntax.  For:

annotationElement ::= 
	name "[" annotationAttribute* (annotationElement | literal)* "]"

read:

annotationElement ::= 
	name "[" annotationAttribute*
			(annotationElement | literal | "{" pattern* "}")* "]"

This would permit embedded compact syntax within {} brackets.

-- 
John Cowan <>     http://www.reutershealth.com
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, _LOTR:FOTR_
← Prev in month ← Prev in thread