Thanks Jens it works, good tip :-) - however, two questions from a bloody newby :-o
1.) The chart updates only (i.e. only reads-in a modified xml data source) if I clear the portal cache or close and restart Cocoon. Simple page refresh and logoff/-on doesn't help !!?? What did I forget ? 2.) I am not sure what generator to use in the coplet. It still works with the xml data file here but I guess this is not necessary because the handling is already done in the respective pipeline. So what to put in here ? Kind regards, Holger Below is what I have done (using 2.1 dev): ... <map:pipeline> <map:match pattern="histochart.jpeg"> <map:generate src="http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xml"/> <map:transform src="http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xsl"/> <map:serialize type="svg2jpeg"/> </map:match> <!-- This is the Cocoon Demo Portal Pipeline --> <map:match pattern="sunspotdemoportal"> ... ... <!-- sunlets --> <map:match pattern="sunspotdemosunlet-svgchart.xml"> <map:generate src="http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xml"/> <map:transform src="styles/sunLet_chart.xsl"/> <map:serialize type="xml"/> </map:match> ... the sunlet_chart.xsl is pretty lean: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="*"> <table border="0" bgcolor="ffffff" width="" height="" cellpadding="1" cellspacing="1"> <img src="http://localhost/cocoon/samples/portal-fw/histochart.jpeg" /> </table> </xsl:template> </xsl:stylesheet> ***************************************************** On Wed, 19 Feb 2003, Jens Maukisch wrote: > > 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. > <<a href="http://mail.cswebmail.com/jump/http://xml.apache.org/cocoon/faq/index.html>">http://xml.apache.org/cocoon/faq/index.html></a>; > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > For additional commands, e-mail: > <[EMAIL PROTECTED]> ___________________________________________________ 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>