| java.lang.Object com.caucho.xsl.AbstractStylesheet com.caucho.xsl.StylesheetImpl
All known Subclasses: com.caucho.xsl.JavaStylesheet, com.caucho.xsl.IdentityStylesheet,
StylesheetImpl | public class StylesheetImpl extends AbstractStylesheet (Code) | | Implementation base class for stylesheets. It is made public only
because generated Java and JavaScript classes need to access these
routines.
|
Method Summary | |
protected void | _xsl_init(XslWriter out, Node context, Env env) | protected void | addFunction(String name, XPathFun fun) | public void | anyNumber(XslWriter out, Node node, Env env, AbstractPattern countPattern, AbstractPattern fromPattern, XslNumberFormat format) | public void | applyNode(XslWriter out, Node node, Env env) | protected void | applyNode(XslWriter out, Node node, Env env, int min, int max) | protected void | applyNodeDefault(XslWriter out, Node node, Env env) The default rule when no templates match. | protected void | copy(AbstractStylesheet stylesheet) | public void | exprNumber(XslWriter out, Node node, Env env, Expr expr, XslNumberFormat format) | public boolean | getGenerateLocation() | public String | getNodeValue(Node node) | public OutputFormat | getOutputFormat() | public Object | getProperty(String name) | protected Template | getTemplate(HashMap templates, Node node, Env env, int min, int max) Gets a template. | public void | init(Path path) | boolean | isStripSpaces(Node node) Returns true if the node is a pure whitespace text node. | protected static Template[] | mergeTemplates(Template[] star, Template[] templates) Merges two template arrays into the final one. | public void | multiNumber(XslWriter out, Node node, Env env, AbstractPattern countPattern, AbstractPattern fromPattern, XslNumberFormat format) | protected Document | ownerDocument(Node node) | public void | printValue(XslWriter out, Node node) | public void | setGenerateLocation(boolean generateLocation) | public void | setOutputFormat(OutputFormat output) | public void | setProperty(String name, Object value) | protected void | setSpaces(HashMap<String, String> preserve, HashMap<String, String> preservePrefix, HashMap<String, String> strip, HashMap<String, String> stripPrefix) | public void | singleNumber(XslWriter out, Node node, Env env, AbstractPattern countPattern, AbstractPattern fromPattern, XslNumberFormat format) | void | stripSpaces(Node node) Strips the spaces from a tree. | public void | transform(Node xml, XMLWriter writer, TransformerImpl transformer) | protected ArrayList | xslSort(Node node, Env env, AbstractPattern pattern, Sort[] sortList) |
_defaultDisableEscaping | protected boolean _defaultDisableEscaping(Code) | | |
_generateLocation | boolean _generateLocation(Code) | | |
cachePath | Path cachePath(Code) | | |
isCacheable | boolean isCacheable(Code) | | |
lastModified | long lastModified(Code) | | |
applyNodeDefault | protected void applyNodeDefault(XslWriter out, Node node, Env env) throws Exception(Code) | | The default rule when no templates match. By default, it
calls apply-template on element children and copies text. All
other nodes are stripped.
Parameters: out - the current writer. Parameters: node - the current node. Parameters: env - the xpath environment. |
getGenerateLocation | public boolean getGenerateLocation()(Code) | | |
getTemplate | protected Template getTemplate(HashMap templates, Node node, Env env, int min, int max) throws XPathException(Code) | | Gets a template.
Only those templates with importance between min and max are considered.
For apply-templates, min = 0, and max = Infinity,
Parameters: min - minimum allowed importance Parameters: max - maximum allowed importance |
isStripSpaces | boolean isStripSpaces(Node node)(Code) | | Returns true if the node is a pure whitespace text node.
|
setGenerateLocation | public void setGenerateLocation(boolean generateLocation)(Code) | | |
stripSpaces | void stripSpaces(Node node)(Code) | | Strips the spaces from a tree.
|
|
|