[relaxng-user] trang and xsd-friendly schemas

Sebastian Rahtz sebastian.rahtz at computing-services.oxford.ac.uk
Mon Sep 13 14:34:28 ICT 2004


David Carlisle wrote:

>  James' idea is elegant, but I don't think it solves the problem of 
>  interleave, because
>  the outer schema will be more restrictive. ie if it says
>    a = x, y, z
>   whereas the inner one says 
>    a = x  & y & z
>
>Yes but you could make your outer one something less restrictive and
>xsd/dtd-friendly such as (x|y|z)* 
>
friendly, but straying away from the business rule of "x, y and z must 
be present".
if the DTD/XSD is being used to assist authoring, its not very nice.

sometimes I wonder what the point of interleave is. if you want x, y and z,
but don't care about the order, why not specify an order?

>or even something equivalent and
>xsd/dtd-friendly such as (x,((y,z?)|(z,y?))|y,((x,z?)|(z,x?))... etc
>  
>
thats not technically manageable over a certain number of elements,
surely?

Sebastian



More information about the relaxng-user mailing list