xref: /aosp_15_r20/external/libxml2/test/SVG/switch.xml (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker<?xml version="1.0" standalone="yes"?>
2*7c568831SAndroid Build Coastguard Worker<smil>
3*7c568831SAndroid Build Coastguard Worker  <body>
4*7c568831SAndroid Build Coastguard Worker    <!-- The SMIL <switch> element will process the
5*7c568831SAndroid Build Coastguard Worker         first child element which tests true and skip
6*7c568831SAndroid Build Coastguard Worker         past all others. -->
7*7c568831SAndroid Build Coastguard Worker    <switch>
8*7c568831SAndroid Build Coastguard Worker
9*7c568831SAndroid Build Coastguard Worker      <!-- The system-required attribute tests to see if
10*7c568831SAndroid Build Coastguard Worker           the user agent supports SVG. If true, then
11*7c568831SAndroid Build Coastguard Worker           render the file drawing.svg. -->
12*7c568831SAndroid Build Coastguard Worker      <ref system-required="http://www.w3.org/Graphics/SVG/svg-19990412.dtd"
13*7c568831SAndroid Build Coastguard Worker           type="image/svg" src="drawing.svg" />
14*7c568831SAndroid Build Coastguard Worker
15*7c568831SAndroid Build Coastguard Worker      <!-- Else, render the alternate image. -->
16*7c568831SAndroid Build Coastguard Worker      <img src="alternate_image.jpg" />
17*7c568831SAndroid Build Coastguard Worker    </switch>
18*7c568831SAndroid Build Coastguard Worker  </body>
19*7c568831SAndroid Build Coastguard Worker</smil>
20*7c568831SAndroid Build Coastguard Worker
21*7c568831SAndroid Build Coastguard Worker
22