RE: relaxNG schema for W3C schema
"CAUBEL, Hugues" <[email protected]> Mon, 11 Oct 2004 16:38:55 +0200
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <8D6581C22F494340878EF8F6A0EBABB383089E@FR0-MAILMB10.res.airbus.corp> |
Sorry for this late reply, I just want to tell you your solution works. thanks for your help hugues > -----Original Message----- > From: MURATA Makoto (FAMILY Given) [mailto:[email protected]] > Sent: 13 September 2004 15:47 > To: CAUBEL, Hugues > Cc: [email protected] > Subject: Re: [relaxng-user] relaxNG schema for W3C schema > > > > On Thu, 19 Aug 2004 11:23:01 +0200 > "CAUBEL, Hugues" <[email protected]> wrote: > > > xmlschema.rng:718:18: error: conflicting ID-types for > attribute "id" of element > >"include" from namespace " http://www.w3.org/2001/XMLSchema" > > This error happens when (1) some attribute declaration has a > wildcard matching > absolutely any namespace and (2) you have an ID attribute > somewhere else in your schema. > > There are two solutions. One is to make the wildcard match > all namespaces EXCEPT > the namespace of the element declaration having that ID > attribute. The other is > to convert the ID attribute to a string attribute. > > In your case, I would rewrite <element><anyName/>...</element> with > <element><anyName><except><nsName > ns="http://www.w3.org/2001/XMLSchema"/> > </except></anyName>. > > A fundamendal reasons is as follows. In DTD, an application > program can determine whether an attribute is ID by examining the attribute name > and the parent element name. > The DTD Compatibility specification of RELAX NG is intended > to mimic DTDs and ensures this simplicity. > > Hope this helps. > > Cheers, > -- > MURATA Makoto (FAMILY Given) <[email protected]> > > > This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises.