com.agilejava.docbkx.maven
Class StylesheetResolver

java.lang.Object
  extended by com.agilejava.docbkx.maven.StylesheetResolver
All Implemented Interfaces:
javax.xml.transform.URIResolver

public class StylesheetResolver
extends java.lang.Object
implements javax.xml.transform.URIResolver

A simple URIResolver decorator that will bail out of the normal way of retrieving entities as soon as the publicId or systemId matches a given URN.

Author:
Wilfred Springer

Constructor Summary
StylesheetResolver(java.lang.String urn, javax.xml.transform.Source stylesheet, javax.xml.transform.URIResolver wrapped)
           
 
Method Summary
 javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StylesheetResolver

public StylesheetResolver(java.lang.String urn,
                          javax.xml.transform.Source stylesheet,
                          javax.xml.transform.URIResolver wrapped)
Method Detail

resolve

public javax.xml.transform.Source resolve(java.lang.String href,
                                          java.lang.String base)
                                   throws javax.xml.transform.TransformerException
Specified by:
resolve in interface javax.xml.transform.URIResolver
Throws:
javax.xml.transform.TransformerException


Copyright © 2006-2011. All Rights Reserved.