Re: [relax-ng] A mechanism for handling inclusion/exclusion

From
MURATA Makoto (FAMILY Given) <>
Date
2003-10-13T06:26:47+00:00
ID
Thread
Re: [relax-ng] A mechanism for handling inclusion/exclusion
On 13 Oct 2003 10:34:28 +0700
James Clark <> wrote:

> I think it's a little confusing to have context be handled as a new kind
> of pattern.  Would it be possible instead to handle it in the
> name-class?  Your example might be written instead as:
> 
> a = element a - a//a { mixed { (em|span)* } }
> span = element span - span//span { mixed { (a|em)* } }
> em = element em - em//em { mixed { (span|a)* } }

I think that this approach is simpler and probably good enough 
although my original is more powerful.

Norm, how do you feel?  This is your area.

Cheers,

-- 
MURATA Makoto (FAMILY Given) <>