Bug 17380 - Batik Component will not recognize feXXXX SVG elements
Summary: Batik Component will not recognize feXXXX SVG elements
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: svg (show other bugs)
Version: 0.15
Hardware: PC other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-25 16:49 UTC by Justin Julian
Modified: 2007-04-14 21:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Julian 2003-02-25 16:49:06 UTC
I am having trouble rendering SVG elements prefixed with fe in FOP. The 
following is an excerpt from the fo document:

<fo:instream-foreign-object>
<sg:svg xmlns:sg="http://www.w3.org/2000/svg" width="100" height="100">
    <sg:filter id="Bevel" filterUnits="objectBoundingBox" x="-10%" y="-10%" 
width="150%" height="150%">
	<sg:feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
	<sg:feSpecularLighting in="blur" surfaceScale="5" 
specularConstant="0.5" specularExponent="10" result="specOut" style="lighting-
color:rgb(255,255,255)">
	<sg:fePointLight x="-5000" y="-10000" z="20000"/>
	</sg:feSpecularLighting>
	<sg:feComposite in="specOut" in2="SourceAlpha" operator="in" 
result="specOut2"/>
	<sg:feComposite in="SourceGraphic" in2="specOut2" operator="arithmetic" 
k1="0" k2="1" k3="1" k4="0" result="litPaint"/>
    </sg:filter>
	<sg:rect x="11" y="13" width="80" height="72" style="fill:rgb
(0,0,255);stroke:rgb(0,0,0);stroke-width:1"/>	
</sg:svg>
</fo:instream-foreign-object>

The following message appears when running fop:

[DEBUG] Input mode:
[DEBUG] xslt transformation
[DEBUG] xml input file: dbStructure.xml
[DEBUG] xslt stylesheet: tables-fo.xsl
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: dbStructure.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/DATA/DOWNLOAD/XML/FOP/SRC/
[INFO] FOP 0.20.4
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[ERROR] Unknown formatting object http://www.w3.org/2000/svg^feSpecularLighting
[ERROR] Unknown formatting object http://www.w3.org/2000/svg^fePointLight
[ERROR] Unknown formatting object http://www.w3.org/2000/svg^feComposite

The fo document renders, and the rectangle appears, however the blur and 
lighting aspects are not applied to the rectangle.

The latest release of Batik supports all three elements rejected by FOP 
(confirmed on the Batik website). Also, the namespace checks out as correct on 
the W3C website.

What do I have to do to get the version of Batik bundled with FOP to recognize 
these SVG elements?

Regards,

Justin.