cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarry Liu <javast...@gmail.com>
Subject Re: Dynamic SVG bar graph
Date Wed, 27 Jul 2005 15:48:17 GMT
Derek and every one,

Thanks for your kind help. 
Finally, I got it by using <object type="image/svg+xml"
data="tmpsvg.svg"  width="420" height="50" ></object>, which links the
SVG source to my html file.
Here is my sample code:

<!-- sample.xml -->

<?xml version="1.0"?>
<sample> 
   <step1>
       <p> step1 </p>
       <object type="image/svg+xml" data="math1.svg" width="420"
height="50" ></object>
       <p> end to step 1 <p>  
  </step1>
  <step2>
       <p> step2 </p>
       <object type="image/svg+xml" data="math2.svg" width="420"
height="50" ></object>
  </step2>
</sample>



<!-- sitemap.xmap -->

<map:match pattern="">
    <map:generate src="page/sample.xml"/>               
    <map:serialize type="xhtml"/>
</map:match>   
<map:match pattern="*.svg">
       <map:generate src="page/{1}.svg" />          
       <map:serialize type="svgxml"/>
 </map:match>


Jarry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message