[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [relax-ng-comment] Element Content Dependent on Attribute *Value*?(fwd)
> Is it possible to make element content dependent on the attribute value?
Yes. There's nothing special for this; you just write a pattern to make it
so. For example,
<choice>
<group>
<attribute name="algorithm">
<value type="anyURI">http://whatever</value>
</attribute>
pattern for element content for value http://whatever
</group>
<group>
<attribute name="algorithm">
<value type="anyURI">http://somethingelse</value>
</attribute>
pattern element content for value http://somethingelse
</group>
...
</choice>
James
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC