On Sep 11, 2006, at 12:10 AM, Jean-Baptiste Quenot (JIRA) wrote:
[
http://issues.apache.org/jira/browse/COCOON-1549?
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/[EMAIL PROTECTED]'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 :-(.
cheers,
—ml—