Re: trang and xsd-friendly schemas

"Bruce D'Arcus" <[email protected]> Mon, 13 Sep 2004 10:02:24 -0400
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
On Sep 13, 2004, at 9:57 AM, Sebastian Rahtz wrote:

>> In my case I both require the elements, but can't specify the order 
>> (if you have to represent publisher and place, which goes first 
>> depends on the style).  So ( A | B )* runs the risk of repeating 
>> elements that shouldn't be repeated.
>
> who goes first surely depends on the rendering application? surely the 
> order
> in the source of  <publisher> and <place> should not dictate rendering?

Yes, it should; the whole point is to "dictate rendering."  All the 
instances here just provide a template for the processing application.  
If it has ...

	<place/>
	<publisher before=":"/>

... it just says process the place first, and then the publisher (and 
put a colon before the latter).

Of course, I still need to figure out how to *do* this with XSLT, but 
that's another matter.

Bruce