OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng-comment message

[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