Re: [relax-ng] Mixed and compact syntax

From
James Clark <>
Date
2002-07-05T23:54:11+00:00
ID
676396767.1025938308@[192.168.0.169]
Thread
Re: [relax-ng] Mixed and compact syntax
>> No, either would be valid.  The point is that the <text/> pattern does
>> match a text node as such; rather it matches ZERO OR MORE text nodes;
>> "text" and "text*" mean the same thing.
>
> I got it, sorry. My confusion was a false assumption that a text pattern
> outside a group couldn't affect something which is "within a group" but

It's interleave that changes this. For example

 x & (y, z)

matches

 y, x, z

as well as

  x, y, z

and

   y, z, x

Also this makes

  x+ & y+

match

 x, y, x

(although it doesn't in SGML.)

Also note that in SGML (#PCDATA) is equivalent to (#PCDATA*).

James