public class StylesheetCache extends Object
Constructor and Description |
---|
StylesheetCache() |
Modifier and Type | Method and Description |
---|---|
XsltExecutable |
getStylesheetByLocation(String style)
Get the stylesheet (XsltExecutable) in the cache associated with the supplied stylesheet location string.
|
XsltExecutable |
getStylesheetByNode(NodeInfo style)
Get the stylesheet (XsltExecutable) in the cache associated with the supplied stylesheet node.
|
XsltExecutable |
getStylesheetByText(String style)
Get the stylesheet (XsltExecutable) in the cache associated with the supplied stylesheet text string.
|
void |
setStylesheetByLocation(String style,
XsltExecutable xsltExecutable)
Set a key-value pair in the cache for stylesheets referenced by stylesheet location.
|
void |
setStylesheetByNode(NodeInfo style,
XsltExecutable xsltExecutable)
Set a key-value pair in the cache for stylesheets referenced by stylesheet root node.
|
void |
setStylesheetByText(String style,
XsltExecutable xsltExecutable)
Set a key-value pair in the cache for stylesheets referenced by stylesheet text.
|
public XsltExecutable getStylesheetByText(String style)
style
- the stylesheet text as a string (as supplied in the stylesheet-text option of fn:transform())public XsltExecutable getStylesheetByLocation(String style)
style
- the URI for the stylesheet location (as supplied in the stylesheet-location option of fn:transform())public XsltExecutable getStylesheetByNode(NodeInfo style)
style
- the root node of the stylesheet (as supplied in the stylesheet-node option of fn:transform())public void setStylesheetByText(String style, XsltExecutable xsltExecutable)
style
- the stylesheet text as a string (as supplied in the stylesheet-text option of fn:transform())xsltExecutable
- the compiled stylesheetpublic void setStylesheetByLocation(String style, XsltExecutable xsltExecutable)
style
- the URI for the stylesheet location (as supplied in the stylesheet-location option of fn:transform())xsltExecutable
- the compiled stylesheetpublic void setStylesheetByNode(NodeInfo style, XsltExecutable xsltExecutable)
style
- the root node of the stylesheet (as supplied in the stylesheet-node option of fn:transform())xsltExecutable
- the compiled stylesheetCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.