Hi,

Le mardi 04 avril 2006 à 11:03 +0300, Henri Sivonen a écrit :
> On Apr 4, 2006, at 10:42, Henri Sivonen wrote:
> 
> > If ID/IDREF checking is enabled, Jing does not allow me to do this
> >    attribute form {
> >      "" | xsd:ID
> >    }
> 
> Doh. I meant
>     attribute form {
>       "" | xsd:IDREFS
>     }

This is forbidden per the first bullet point of the spec
(http://relaxng.org/compatibility-20011203.html#id):

      * "its parent is an attribute element"

In your case, the parent element of the "data" pattern would be a
"choice"...

ID/IDREF/IDREFS have been introduced in RNG as a "DTD Compatibility"
feature. They try to mimic DTDs and have pretty much all the
restrictions of DTDs (in other word, if you want to use them to do
something a DTD can't do you're very likely out of luck!).

See
http://books.xmlschemata.org/relaxng/relax-CHP-8-SECT-3.html#relax-CHP-8-SECT-3.2
 for more details.

Hope this helps.

Eric
-- 
GPG-PGP: 2A528005
Curious about Relax NG? Read my book online.
                                   http://books.xmlschemata.org/relaxng/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to