Re: jing: error: conflicting ID-types

David Carlisle <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
> 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
________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.