cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist>
Subject Re: [jira] Commented: (COCOON-1549) [PATCH] Batik Rhino support incompatible with Cocoon's
Date Mon, 11 Sep 2006 20:18:32 GMT

On Sep 11, 2006, at 12:10 AM, Jean-Baptiste Quenot (JIRA) wrote:

>     [  
> page=comments#action_12433785 ]
> Jean-Baptiste Quenot commented on COCOON-1549:
> ----------------------------------------------
> Then you will also need this xpatch to allow executing <body  
> onload="computebbox()">:
> <xml xpath="/sitemap/components/serializers"
> remove="/sitemap/components/serializers/serializer[@name='svg2png']">
>         <map:serializer logger="sitemap.serializer.svg2png"  
> mime-type="image/png" name="svg2png"  
> src="org.apache.cocoon.serialization.SVGSerializer">
>                 <parameter name="execute_onload" type="boolean"  
> value="true"/>
>         </map:serializer>
> </xml>

Oo, that's important to know!  I would never have figured out that I  
needed execute_onload.

I've found your suggestion to get everything up in Squiggle first to be  
very helpful... however I haven't managed to figure out what Javscript  
to write.  Have you done the getBBox() trick using text flowed with  
<svg:flowRoot>?  If so, would you mind posting your onload handler?  I  
know how to get the bounding box of an element, and I know how to set  
an attribute on an element, but I can't seem to figure out which  
elements :-(.


View raw message