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

David Carlisle davidc at nag.co.uk
Tue Sep 30 14:01:58 ICT 2003


I had a DTD 

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

that I wanted to convert to relax ng, trang produced

    x = element x { attlist.x, any }
    attlist.x &= attribute id { xsd:ID }?
    start = x
    any =
      (element * {
         attribute * { text }*,
         any
       }
       | text)*


which seems plausible, but after converting to rng format and trying
with any instance document, say

    <x/>

to be definite, I get

    $ jing id.rng id.xml
    z:\relaxng\id.rng:22: error: conflicting ID-types for attribute "id" of element "x"


Removing the  attribute * clause from the any pattern allows the file to
validate, but I do want to allow any element with any attribute.

Am I confused or is Jing?

Thanks for any advice,

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