org.apache.batik.bridge.svg12

Class SVG12URIResolver

public class SVG12URIResolver extends URIResolver

A URIResolver for SVG 1.2 documents. This is to allow resolution of fragment IDs within shadow trees to work properly.
Constructor Summary
SVG12URIResolver(SVGDocument doc, DocumentLoader dl)
Creates a new SVG12URIResolver object.
Method Summary
protected NodegetNodeByFragment(String frag, Element ref)
Returns the node referenced by the given fragment identifier.
protected StringgetRefererBaseURI(Element ref)
Returns the base URI of the referer element.

Constructor Detail

SVG12URIResolver

public SVG12URIResolver(SVGDocument doc, DocumentLoader dl)
Creates a new SVG12URIResolver object.

Method Detail

getNodeByFragment

protected Node getNodeByFragment(String frag, Element ref)
Returns the node referenced by the given fragment identifier. This is called when the whole URI just contains a fragment identifier and there is no XML Base URI in effect.

Parameters: frag the URI fragment ref the context element from which to resolve the URI fragment

getRefererBaseURI

protected String getRefererBaseURI(Element ref)
Returns the base URI of the referer element.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.