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

The switch Tag

The syntax for the switch tag is:

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

The rule is:

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


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

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

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

Dave Marshall