Re: Relax NG specs

From
James Clark <>
Date
2001-05-24T04:06:26+00:00
ID
041101c0e406$8c42ab10$
Thread
Re: Relax NG specs
> But I would suggest the use of the following syntax,
>
> > function boolean allowsChildren(pattern p) {
> >   switch (p) {
> >   case <oneOrMore> p1 </oneOrMore>:
> >      return allowsChildren(p1);
> >   case <interleave> p1 p2 </interleave>:
> >   case <group> p1 p2 </group>:
> >   case <choice> p1 p2 </choice>:
>
> rather than the current M [[p]](a, c, e) syntax.

The XML source of the spec should probably use semantic markup so that
either syntax can be generated by an appropriate stylesheet.

James