/ libxml2 / test / SVG / script.xml
script.xml
 1  <?xml version="1.0" standalone="no"?>
 2  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" 
 3    "http://www.w3.org/Graphics/SVG/svg-19990412.dtd">
 4  <svg width="4in" height="3in">
 5    <defs>
 6      <script><![CDATA[
 7        /* Beep on mouseclick */
 8        MouseClickHandler() { beep(); }
 9       ]]>
10      </script>
11    </defs>
12    <circle onclick="MouseClickHandler()" r="85"/>
13  </svg>