You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by hg...@cswebmail.com on 2003/02/19 13:04:32 UTC
xml 2 svg in coplet
Hi all,
I would like to integrate a small svg barchart (that
gets actual business data from an xml file) into a
portal coplet.
I was thinking of a coplet pipeline like this:
get the xml data ('generate'), build the svg graph
('transform' with xsl, or build with js: 'action' ? ),
then transform and serialise into an xhtml table with
the svg embedded to meet a required coplet structure.
Any ideas are greatly appreciated.
Holger
___________________________________________________
The ALL NEW CS2000 from CompuServe
Better! Faster! More Powerful!
250 FREE hours! Sign-on Now!
http://www.compuserve.com/trycsrv/cs2000/webmail/
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: xml 2 svg in coplet
Posted by Jens Maukisch <co...@maukisch.net>.
Hi,
> get the xml data ('generate'), build the svg graph
> ('transform' with xsl, or build with js: 'action' ? ),
> then transform and serialise into an xhtml table with
> the svg embedded to meet a required coplet structure.
what about simple xhtml-image-tag pointing to the map:match
which is creating your jpeg (based on a svg) ?
something like this:
in the coplet:
<img src="/mychart.jpg"/>
in the sitemap:
<map:match pattern="graphics/*">
<map:generate src="yourdata.xml"/>
<map:transform src="data2svg.xsl"/>
<map:serialize type="svg2jpeg"/>
</map:match>
--
* best regards
* Jens Maukisch
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>