On Friday 17 August 2001 21:35, David Eisenberg wrote:
> I'm trying to use Xalan to convert XML to an SVG DOM,
> and then pass that to the rasterizer to produce a JPG file.
>
>
> ==================================================
> If I run this code, I get a Document which, when serialized, looks
> like this:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <svg contentScriptType="text/ecmascript" width="350" zoomAndPan="magnify"
> contentStyleType="text/css" height="200" preserveAspectRatio="xMidYMid
> meet" xmlns="http://www.w3.org/2000/svg"><svg width="350" height="200"
> viewBox="0 0 350 200"><defs><path fill="none" id="wind-arrow" d="M 40 40 h
> 25" stroke="black"/></defs><g><rect x="10" y="10" fill="blue" width="30"
> height="20" stroke="none"/></g><g><circle fill="red" r="20" cy="50" cx="50"
> stroke="none"/></g></svg></svg>
>
it seems that your outermost svg element does not specify a width. Though I
am not sure that will solve your problem, it's recommended to specify a width
(and height) on the svg element.
If the width/height is not specified - the default value is 100%. What is
100% is the user agent's responsability. With the image transcoder - you can
specify the default user agent size via the UserAgent interface.
Finally, the doctype is also missing in your file.
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]