[relaxng-user] relaxNG schema for W3C schema
CAUBEL, Hugues
hugues.caubel at airbus.com
Mon Oct 11 16:38:55 ICT 2004
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:EB2M-MRT at asahi-net.or.jp]
> Sent: 13 September 2004 15:47
> To: CAUBEL, Hugues
> Cc: relaxng-user at relaxng.org
> Subject: Re: [relaxng-user] relaxNG schema for W3C schema
>
>
>
> On Thu, 19 Aug 2004 11:23:01 +0200
> "CAUBEL, Hugues" <hugues.caubel at airbus.com> 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) <EB2M-MRT at asahi-net.or.jp>
>
>
>
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.
More information about the relaxng-user
mailing list