1*7c568831SAndroid Build Coastguard Worker<?xml version="1.0" standalone="yes"?> 2*7c568831SAndroid Build Coastguard Worker<svg width="4in" height="3in" 3*7c568831SAndroid Build Coastguard Worker xmlns = 'http://www.w3.org/Graphics/SVG/svg-19990412.dtd'> 4*7c568831SAndroid Build Coastguard Worker <desc>This example uses the switch element to provide a 5*7c568831SAndroid Build Coastguard Worker fallback graphical representation of an equation, if 6*7c568831SAndroid Build Coastguard Worker MathML is not supported. 7*7c568831SAndroid Build Coastguard Worker </desc> 8*7c568831SAndroid Build Coastguard Worker <!-- The <switch> element will process the first child element 9*7c568831SAndroid Build Coastguard Worker whose testing attributes evaluate to true.--> 10*7c568831SAndroid Build Coastguard Worker <switch> 11*7c568831SAndroid Build Coastguard Worker 12*7c568831SAndroid Build Coastguard Worker <!-- Process the MathML if the system-required attribute 13*7c568831SAndroid Build Coastguard Worker evaluates to true (i.e., the user agent supports MathML 14*7c568831SAndroid Build Coastguard Worker embedded within SVG). --> 15*7c568831SAndroid Build Coastguard Worker <foreignobject 16*7c568831SAndroid Build Coastguard Worker system-required="http://www.w3.org/TR/REC-MathML-19980407" 17*7c568831SAndroid Build Coastguard Worker width="100" height="50"> 18*7c568831SAndroid Build Coastguard Worker <!-- MathML content goes here --> 19*7c568831SAndroid Build Coastguard Worker </foreignobject> 20*7c568831SAndroid Build Coastguard Worker 21*7c568831SAndroid Build Coastguard Worker <!-- Else, process the following alternate SVG. 22*7c568831SAndroid Build Coastguard Worker Note that there are no testing attributes on the <g> element. 23*7c568831SAndroid Build Coastguard Worker If no testing attributes are provided, it is as if there 24*7c568831SAndroid Build Coastguard Worker were testing attributes and they evaluated to true.--> 25*7c568831SAndroid Build Coastguard Worker <g> 26*7c568831SAndroid Build Coastguard Worker <!-- Draw a red rectangle with a text string on top. --> 27*7c568831SAndroid Build Coastguard Worker <rect style="fill: red"/> 28*7c568831SAndroid Build Coastguard Worker <text>Formula goes here</text> 29*7c568831SAndroid Build Coastguard Worker </g> 30*7c568831SAndroid Build Coastguard Worker 31*7c568831SAndroid Build Coastguard Worker </switch> 32*7c568831SAndroid Build Coastguard Worker</svg> 33