next up previous
Next: SMIL ON Up: SMIL Events Previous: begin events

The switch Tag

The syntax for the switch tag is:

<switch>
 <!-- child1 testAttributes1 -->
 <!-- child2 testAttributes2 -->
 <!-- child3 testAttributes3 -->
</switch>

The rule is:

For example you may wish to provide presentations in english or welsh:

 <body>
  <switch>

   <!-- English only -->
   <par system-language="en">
       <img src="cardiff.gif" region="cardiff"/>
       < audio src ="english.au" />
   </par>

  <!-- Welsh only -->
   <par system-language="cy">
       <img src="caerdydd.gif" region="cardiff"/>
       <audio src ="cymraeg.au" />
   </par>

somewhere in code you will (or it will be set) set the system-language



Dave Marshall
10/4/2001