forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Evangelista <>
Subject Serving stylable SVG
Date Wed, 02 Jun 2004 22:09:06 GMT
Hi all,

I have a problem serving "statically" stylable SVG images "-//W3C//DTD 
SVG 20000303 Stylable//EN".

The sitemap configuration is:

<map:serializer name="svg" mime-type="image/svg+xml" 
<map:match pattern="**.svg">
    <map:generate src="content/xdocs/{1}.svg" />
    <map:serialize type="svg"/>

This is the source SVG file:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
<svg width="8in" height="8in" viewBox="0 0 1 1" preserveAspectRatio="none">
<title>SVG drawing</title>

This is the resulting SVG. Please note the ** xmlns="%SVGNamespace;" ** 
in the <svg> tag.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "">
<svg xmlns="%SVGNamespace;" width="8in" height="8in" viewBox="0 0 1 1" preserveAspectRatio="none"
enableZoomAndPanControls="true" contentScriptType="text/ecmascript" contentStyleType="text/css">
<title content="structured text">SVG drawing</title>

What's wrong with the configuration?

Thanks a lot for your help.


View raw message