[relaxng-user] Strange difference between mixed and interleave

Jirka Kosek jirka at kosek.cz
Tue Mar 1 14:10:01 ICT 2005


Pawson, David wrote:
> I think you need
> <interleave> for the any order, and
> <mixed>  for the text/elements.
> 
> I.e. you need both. mixed specifies order.
> 
> I think:-)

Yes. So <mixed> X </mixed> is shorthand for
<interleave> <group>X</group> <text/> </interleave>. Which is not 
completely clear from specification if you read it with programmer eyes 
not computer scientists eyes.

>   See page 57 chapter 6 of 'the book'

I think that problem is at the bottom of page 53 where there Eric is 
comparing mixed to interleave on example with one child element in mixed 
content where there is no distinction between mixed and interleave. But 
in the real world (DocBook, XHTML) mixed content models contain many 
elements.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka at kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3158 bytes
Desc: S/MIME Cryptographic Signature
Url : http://relaxng.org/pipermail/relaxng-user/attachments/20050301/620f9ae6/smime-0001.bin


More information about the relaxng-user mailing list