[relaxng-user] jing: error: conflicting ID-types

David Carlisle davidc at nag.co.uk
Tue Sep 30 14:48:16 ICT 2003


> If you desire 'any attribute on element x', then you should probably
> remove line 2, and delete 'attlist.x,' from line 1.

No I wanted control over the attributes, but to allow any element.
Which was the intent of the original DTD

    <!ELEMENT x ANY>
    <!ATTLIST x id ID #IMPLIED>

However Eric has pointed out that while the _intent_ of that DTD was to
allow anything as a child of that DTD (essentially it's an "annotation
from some foreign vocabulary wrapper) actually there would be a
restriction that any element called x that is included as a result of
that ANY had better have an id attribute of type ID, and the relax ng
version picks up that constraint as unlike xsd you can't apparently skip
a chunk of well formed xml so you have to actually declare the grammar
of the contained elments and you end you with text conflicting with
xsd:ID.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


More information about the relaxng-user mailing list