perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Nelson <>
Subject svg/xml being truncated on load?
Date Thu, 11 Nov 2010 00:23:23 GMT

I am using the module to build a page that includes and embedded 
svg image:
    print "\n" . Tr(td({-rowspan=>$leaf_count, -height=>"100%", 
-width=>"100%"}, "<embed src=\"$tree_file\" width=100% height =100% 
type=\"image/svg+xml\">"), td(\@data));

This generates the expected html:

<tr><td height="100%" rowspan="23" width="100%"><embed src="/tmp/5357.tree.svg"
width=100% height =100% type="image/svg+xml"></td> ...

however I get an xml parse error instead of my svg image:
XML Parsing Error: unclosed token
Location: http://localhost/tmp/1247.tree.svg
Line Number 59, Column 3:
                <svg:line x1="100.000%" x2="1

The line is intact in the svg/xml file:

	<svg:line x1="100.000%" x2="100.000%" y1="79.545%" y2="93.182%" />

and if I paste the source html generated by the program into a file, the 
page loads without error.

Does anyone have an idea as to why the xml parse fails when the page is 
generated, but not when it's static? (Or am I asking the wrong list?)


System details:
System Linux orthanc #1 SMP Thu May 17 14:00:09 UTC 
2007 x86_64
Apache Version Apache/2.2.3 (Linux/SUSE)
perl v5.8.8
mod_perl v2.0.2-14.2

View raw message