<?xml version="1.0"?>
<?xml-stylesheet href="xbl1_files/xbl1-bindings.css" type="text/css"?>
<doc>
<!-- 
WARNING: Firefox 1.5 only, XBL1 and native SVG at work (see stylesheet mentioned above, and bindingsheet mentioned there)

explanation:
This data you're now looking at is nice and clean, but to enjoy all the goodness a standard like SVG brings,
 a valid SVGDocument resulting in the same image would be useful too

Because Mozilla to my surprise doesn't offer some sort of special snapshot() functionality i decided to try and create it.

When you use the DOM inspector extension, you see in the anonymous nodes what my bindings create:
Next to chuncks of SVG, there's also some other stuff from a http://some.example.com namespace
This extra information is only to be able to know what goes where in combining all the SVG chunks into one SVGDocument instance.

When you create a bookmark pointing to "javascript:viewShadowSource();" that basically then is a button that calls 
the function that starts the actual creating of the SVGDocument and shows it in a new window, hopefully resulting in the same image.

When in that new window you call "view GENERATED source" (offered by the webdeveloper extension) you can see the actual SVG source
(though at the moment it's still some broken mix of HTML and SVG, and stylesheet stuff is ignored)
This should of course later change to plain old "view source", cause not everybody is blessed with that extension.


If you're thinking "dude, he could have used XSLT much easier" than i agree up till the moment i make this dynamic:
work in the visualisation, thereby making DOM calls on the data, that in return change the representation

Of course telling me about bugs is very, very welcome.
Send it to the "svg" account at this server

Thanks, Ruud
-->
	<circuit>
        <chip nr="0" xpos="10" ypos="80" xsize="10" ysize="10">
            <pin nr="0" xpos="80" ypos="30"/>
            <pin nr="1" xpos="20" ypos="30"/>
        </chip>
        <chip nr="1" xpos="45" ypos="73" xsize="12" ysize="8">
            <pin nr="0" xpos="20" ypos="75"/>
        </chip>
        <chip nr="2" xpos="20" ypos="30" xsize="20" ysize="8">
            <pin nr="0" xpos="20" ypos="75"/>
        </chip>
        <wire from="0.0" to="1.0"/>
        <wire from="0.1" to="2.0"/>
    </circuit>
</doc>

