cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarry Liu <>
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"?>
       <p> step1 </p>
       <object type="image/svg+xml" data="math1.svg" width="420"
height="50" ></object>
       <p> end to step 1 <p>  
       <p> step2 </p>
       <object type="image/svg+xml" data="math2.svg" width="420"
height="50" ></object>

<!-- sitemap.xmap -->

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message