Martin Klang | 30 Jan 2006 18:40

Re: O:XML and firefox 1.5 SVG

Hey,

sorry for the delay in replying -

I tried using one of the shorter examples (Style 1) as a base and did  
this:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<o:program xmlns:o="http://www.o-xml.org/lang/" content-type="text/xml">
<html:html xmlns:html="http://www.w3.org/1999/xhtml">
   <html:head>
     <html:script type="text/javascript">
       function change_style(style_string)
       {
       document.getElementById("circ100").setAttribute("style",  
style_string);
       }
     </html:script>
   </html:head>
   <html:body>
     <html:button onclick="change_style('fill:red;');">red</html:button>
     <html:button onclick="change_style('fill:blue;');">blue</ 
html:button>
     <svg:svg xmlns:svg="http://www.w3.org/2000/svg" height="200">
       <o:for-each in="60 100 140 180">
         <svg:circle cx="{.}" cy="100" r="1cm" id="circ{.}"  
style="fill:red;"/>
       </o:for-each>
(Continue reading)


Gmane