Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-575

Batik Component will not recognize feXXXX SVG elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 0.15
    • None
    • renderer/svg
    • None
    • Operating System: other
      Platform: PC
    • 17380

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            justin.julian@earthtech.ca Justin Julian
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: