| org.enhydra.util.chiba.StylesheetLoader
StylesheetLoader | public class StylesheetLoader extends org.chiba.tools.xslt.StylesheetLoader (Code) | | |
StylesheetLoader | public StylesheetLoader(String stylesheetPath)(Code) | | Parameters: stylesheetPath - a string representing an absolute file expression to thestylesheet directory |
StylesheetLoader | public StylesheetLoader(String stylesheetPath, boolean useXsltc)(Code) | | Parameters: stylesheetPath - a string representing an absolute file expression to thestylesheet directory |
getStylesheet | public TransformerHandler getStylesheet(String filename) throws TransformerException(Code) | | Loads, parses, and caches the specified stylesheet, returning a TransformerHandler
for it.
Parameters: filename - The absolute path to the XSLT file to load A TransformerHandler for the cached XSLT file throws: GrasshopperException - |
getTransformer | public Transformer getTransformer(String filename) throws TransformerException(Code) | | Loads, parses, and caches the specified stylesheet, returning a Transformer
for it.
Parameters: filename - The absolute path to the XSLT file to load A Transformer for the cached XSLT file throws: GrasshopperException - |
getTransformerFactory | public TransformerFactory getTransformerFactory()(Code) | | Returns the TransformerFactory used by the cache
|
resolve | public Source resolve(String href, String base) throws TransformerException(Code) | | implements javax.xml.transform.URIResolver. This method is called by the
Transformer when it hits e.g. a 'document()' function or an 'import'
statement to resolve the location of files.
Parameters: href - the local href used Parameters: base - the base to resolve against a Source object that can be used to load a resource throws: TransformerException - if transformation errors occur |
resolveExt | public Source resolveExt(String href, String base) throws TransformerException(Code) | | implements javax.xml.transform.URIResolver. This method is called by the Transformer
when it hits e.g. a 'document()' function or an 'import' statement to resolve the location
of files.
Parameters: href - the local href used Parameters: base - the base to resolve against a Source object that can be used to load a resource throws: TransformerException - if transformation errors occur |
setStylesheetFile | public void setStylesheetFile(String stylesheetFile)(Code) | | allows to set the stylesheet file to be used by the Transformer
Parameters: stylesheetFile - -the filename of the stylesheet file (stylesheet must bepresent in the stylesheetPath |
setTransformerFactory | public void setTransformerFactory(TransformerFactory transformerFactory)(Code) | | Sets the TransformerFactory used by the cache
|
|
|