Next in thread → Next in month →

Re: [relax-ng] annotation for <choice> in the compact syntax

From
James Clark <>
Date
2002-08-08T07:31:05+00:00
ID
006c01c23ead$61a0fd00$
Thread
Re: [relax-ng] annotation for <choice> in the compact syntax
> In the compact syntax, is it possible to write
>
> <choice relaxer:implements="foo">
>   ...pattern1...
>   ...pattern2...
> </choice>
>
> ?

Just do:

  [relaxer:implements="foo"](...pattern1... | ...pattern2...)

The exact rules for this are in the spec.  This is one of the things that
contributes to the complexity of Appendix A.

James
Next in thread → Next in month →