Web Forms 2.0 has an attribute (form) that takes a list of IDs or the
empty string (to denote that the form control is not associated with
any form--not even an ancestor).
If ID/IDREF checking is enabled, Jing does not allow me to do this
attribute form {
"" | xsd:ID
}
because the alternative types have different ID type.
If I write a custom datatype that has IDREFS nature but passes the
empty string, it still won't work, because RELAX NG DTD Compatibility
requires that when an attribute has IDREFS nature, running split() on
the value must return a list of one or more tokens (and here the list
obviously has zero tokens).
(In my opinion, the restriction placed by the spec is slightly too
restrictive. The system could still work with split returning zero
tokens for ID, IDREF and IDREF if that was defined to mean that no ID
assignment nor referencing happens.)
Is there any way to have an attribute value that both has the IDREFS
nature and allows the empty string?
--
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/rng-users/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/