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.


<define name="measure">

  <element name="measure">
    <ref name="common" />
       <optional>
      <zeroOrMore>
        <attribute name="mode">
        <choice>
<zeroOrMore><value>partial</value>
<value>chord</value>
<value>figuredbass</value>
<value>transpose</value>
<value>repeat</value>
        </choice>
      </zeroOrMore>
        </optional>
   
    <optional>
      <attribute name="repeattype">
      <choice><value>repeatbegin</value><value>repeatend</value><value>firstendingbegin</value><value>firstendingend</value><value>secondendingbegin</value><value>secondendingend</value></choice>
  <attribute name="chordtype"><choice>
      <value>lilypond</value>
      <value>musicxml</value>
      <value>wedel</value>
      <value>jazz</value></choice></attribute>     
    
So how do I have the choosing of one attribute require another attribute?

Thanks
Aaron
     


YAHOO! GROUPS LINKS




Reply via email to