[xml] Correct behaviour of RelaxNG interleave



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!
I would like to ask, what is the correct behaviour of RelaxNG
interleave? Suppose we have the following example:

blueA = element blueA { empty }
blueB = element blueB { empty }
redA  = element redA { empty }
redB  = element redB { empty }

blue = blueA? & blueB?
red  = redA? & redB?

profile_current = blue & red
start = element profile {
   profile_current
}

Then is the following XML valid?

<profile>
  <blueA/><redA/><blueB/><redB/>
</profile>

Or only these should be accepted?

<profile>
  <blueB/><blueA/><redA/><redB/>
</profile>

<profile>
  <redA/><redB/><blueB/><blueA/>
</profile>

Simply put: am I able to interlave both red and blue tags mutually or I
can only interleave blue tags followed with interleaved red ones and
vice-versa?

- --
Best Regards / S pozdravom,

Pavol RUSNAK                                       SUSE LINUX, s.r.o
Package Maintainer                                Lihovarska 1060/12
PGP 0xA6917144                                     19000 Praha 9, CR
prusnak[at]suse.cz                                http://www.suse.cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFt2XeASE5C6aRcUQRAq1OAKCdCtFbCs7qZf4BEoan0ux4/6UlDgCfW7Ic
NzaVxNgI6WGmrAkId5a2Wyw=
=Uvru
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]