You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2015/06/13 15:02:00 UTC

[jira] [Closed] (BATIK-485) Transcoding from SAX doesn't work properly

     [ https://issues.apache.org/jira/browse/BATIK-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikael Ståldal closed BATIK-485.
--------------------------------

> Transcoding from SAX doesn't work properly
> ------------------------------------------
>
>                 Key: BATIK-485
>                 URL: https://issues.apache.org/jira/browse/BATIK-485
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG Rasterizer
>    Affects Versions: 1.5
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Mikael Ståldal
>            Assignee: Batik Developer's Mailing list
>
> When transcoding from a SAX stream, the base URI is not set and external xlink 
> references in the SVG document doesn't work.
> The following patch will solve the problem:
> *** SVGAbstractTranscoder.java	Sun Jun 13 15:14:13 2004
> --- SVGAbstractTranscoder.java-fix	Sun Jun 13 14:08:25 2004
> ***************
> *** 220,225 ****
> --- 220,232 ----
>   
>           ctx = createBridgeContext();
>           SVGOMDocument svgDoc = (SVGOMDocument)document;
> +         if (svgDoc.getURLObject() == null) {
> +             try { 
> +                 URL url = new URL(uri);
> +                 svgDoc.setURLObject(url);
> +             } catch (MalformedURLException mue) {
> +             }
> +         }
>           SVGSVGElement root = svgDoc.getRootElement();
>   
>           // build the GVT tree



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org