<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" height="100%" width="100%"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" >
<script type="application/javascript;version=1.7" xlink:href="./curl.js" />
<!-- ... -->
// file name: "myApp/svg.js" -- should be the same as the id in the define, below:
define(/*=='myApp/svg',==*/ ['curl/_privileged'], function (priv) {
"use strict";
// override loadScript to work in SVG docs
priv['core'].loadScript = function (def, success, failure) {
el.onload = el.onreadystatechange = process;
el.onerror = fail;
el.type = def.mimetype || 'text/javascript';
el.charset = 'utf-8';
el.async = !def.order;