Re: trang and xsd-friendly schemas
Sebastian Rahtz <[email protected]> Mon, 13 Sep 2004 14:34:28 +0100
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
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