>> 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