[relaxng-user] trang and xsd-friendly schemas
Bruce D'Arcus
bdarcus at fastmail.fm
Mon Sep 13 10:02:24 ICT 2004
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
More information about the relaxng-user
mailing list