Blogger :
Ajaxian Blog
All posts :
All posts by Ajaxian Blog
Category :
XML
Blogged date : 2006 Aug 31
Terrt Laurenzo has posted on Embedded SVG from his experience starting with the SVG example from Mozilla, and adapting Protowidget so that it could attach widgets to some SVG elements.
XML:
-
-
-
version="1.1" width="500" height="500"
-
baseProfile="full">
-
fill-opacity="0.7" stroke="black" stroke-width="0.1cm">
-
cx="6cm" cy="2cm" r="100" fill="red"
-
transform="translate(0,50)"
-
pw:type=’Svg.SvgWidget’
-
pw:element.r=’#{`Jitter1`}’/>
-
cx="6cm" cy="2cm" r="100" fill="blue"
-
transform="translate(70,150)"
-
pw:type=’Svg.SvgWidget’
-
pw:element.r=’#{`Jitter2`}’/>
-
cx="6cm" cy="2cm" r="100" fill="green"
-
transform="translate(-70,150)"
-
pw:type=’Svg.SvgWidget’
-
pw:element.r=’#{`Jitter3`}’/>
-
>
-
>
-
You can check out the test on an SVG enabled browser