summaryrefslogtreecommitdiff
path: root/test/SVG/switch.xml
diff options
context:
space:
mode:
Diffstat (limited to 'test/SVG/switch.xml')
-rwxr-xr-xtest/SVG/switch.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/SVG/switch.xml b/test/SVG/switch.xml
new file mode 100755
index 0000000..18955c9
--- /dev/null
+++ b/test/SVG/switch.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" standalone="yes"?>
+<smil>
+ <body>
+ <!-- The SMIL <switch> element will process the
+ first child element which tests true and skip
+ past all others. -->
+ <switch>
+
+ <!-- The system-required attribute tests to see if
+ the user agent supports SVG. If true, then
+ render the file drawing.svg. -->
+ <ref system-required="http://www.w3.org/Graphics/SVG/svg-19990412.dtd"
+ type="image/svg" src="drawing.svg" />
+
+ <!-- Else, render the alternate image. -->
+ <img src="alternate_image.jpg" />
+ </switch>
+ </body>
+</smil>
+
+