On jeu, 2005-07-28 at 07:59 +0300, Aaron wrote:
> Hi all,
>
> I can't figure out how to look up the following (or how to do it, for
> that matter)
>
> I have an element with an attribute mode, by choosing lets say repeat
> mode they will need to fill in an additional attribute which is
> related to that mode meaning the repeat type attribute. I need to
> create a link between the two attributes so that choosing a mode
> attribute will require another attribute.
.../...
> So how do I have the choosing of one attribute require another
> attribute?
That's what we call co-occurrence constraints.
Basically, you provide different alternatives in a choice pattern, and
in each of them you fix a value (or a set of values) for your "mode"
attribute.
See: http://books.xmlschemata.org/relaxng/relax-CHP-7-SECT-2.html
Eric
--
Read me on Advogato.
http://advogato.org/person/vdv/
------------------------------------------------------------------------
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
------------------------------------------------------------------------
YAHOO! GROUPS LINKS
- Visit your group "rng-users" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
