PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2909 *** shadow/2909 Mon Jul 30 18:47:13 2001 --- shadow/2909.tmp.2065 Mon Jul 30 18:47:13 2001 *************** *** 0 **** --- 1,78 ---- + +============================================================================+ + | Gradient render error | + +----------------------------------------------------------------------------+ + | Bug #: 2909 Product: Fop | + | Status: NEW Version: all | + | Resolution: Platform: PC | + | Severity: Major OS/Version: Windows NT/2K | + | Priority: Other Component: images | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + There appears to be a problem when using the SVG 'linearGradient' + and 'radialGradient' functions. The image appears, however there is no colour + rendering - just black. + + The problem occurs when using either an external SVG file using <fo:external- + graphic src="..."> or inline using <fo:instream-foreign-object>. + + The SVG works fine using a SVG viewer. + + The latest version of FOP (0.19) is being used on a Windows NT platform. + + Any help would be appreciated. + + Sample xsl: + ----------- + + <fo:block space-before=".2cm" color="green"> + fo:external-graphic SVG Test + </fo:block> + + <fo:block space-before=".2cm"> + <fo:external-graphic src="file:linearTest.svg"/> + </fo:block> + + <fo:block space-before=".2cm" color="red"> + fo:instream-foreign-object SVG Test + </fo:block> + + <fo:instream-foreign-object> + <svg:svg width="200px" height="50px" > + <svg:g> + <svg:defs> + <svg:linearGradient id="BarGradient" > + <svg:stop offset="0%" stop-color="green"/> + <svg:stop offset="50%" stop-color="yellow"/> + <svg:stop offset="100%" stop-color="red"/> + </svg:linearGradient> + </svg:defs> + <svg:rect x="0" y="0" width="125" height="25" fill="url(#BarGradient)" /> + </svg:g> + </svg:svg> + </fo:instream-foreign-object> + + SVG xml: + -------- + + <?xml version="1.0" standalone="no"?> + <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN" + "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"> + + <svg width="125" height="25" xml:space="preserve"> + <g> + <defs> + <linearGradient id="BarGradient" > + <stop offset="0%" stop-color="green"/> + <stop offset="50%" stop-color="yellow"/> + <stop offset="100%" stop-color="red"/> + </linearGradient> + </defs> + <rect x="0" y="0" width="125" height="25" fill="url(#BarGradient)" /> + </g> + </svg> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]