public class Stylesheet
extends java.lang.Object
 Stylesheet implements an XSLT stylesheet such that rules can
 be added to the stylesheet and the stylesheet can be applied to a source
 document or node.
 
| Constructor and Description | 
|---|
Stylesheet()
Creates a new empty stylesheet. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addRule(Rule rule)
Add a rule to this stylesheet. 
 | 
void | 
applyTemplates(Document document)
If input is a  
Node, this will processes all of the
 children of that node. | 
void | 
applyTemplates(Document document,
              java.lang.String mode)
Processes the input object in the given mode. 
 | 
void | 
applyTemplates(Element element)
If input is a  
Node, this will processes all of the
 children of that node. | 
void | 
applyTemplates(Element element,
              java.lang.String mode)
Processes the input object in the given mode. 
 | 
void | 
applyTemplates(java.util.List<? extends Node> list,
              java.lang.String mode)
Processes the input object in the given mode. 
 | 
void | 
applyTemplates(java.util.List<Node> list)
If input is a  
Node, this will processes all of the
 children of that node. | 
void | 
applyTemplates(Node node)
If input is a  
Node, this will processes all of the
 children of that node. | 
void | 
applyTemplates(Node node,
              java.lang.String mode)
Processes the input object in the given mode. 
 | 
void | 
applyTemplates(java.lang.Object input,
              XPath xpath)
Processes the result of the xpath expression. 
 | 
void | 
applyTemplates(java.lang.Object input,
              XPath xpath,
              java.lang.String mode)
Processes the result of the xpath expression in the given mode. 
 | 
void | 
clear()  | 
java.lang.String | 
getModeName()
DOCUMENT ME! 
 | 
Action | 
getValueOfAction()
DOCUMENT ME! 
 | 
void | 
removeRule(Rule rule)
Removes the specified rule from this stylesheet. 
 | 
void | 
run(java.util.List<Node> list)  | 
void | 
run(java.util.List<Node> list,
   java.lang.String mode)  | 
void | 
run(Node node)  | 
void | 
run(Node node,
   java.lang.String mode)  | 
void | 
setModeName(java.lang.String modeName)
Sets the name of the mode that the stylesheet uses by default. 
 | 
void | 
setValueOfAction(Action valueOfAction)
Sets the default value-of action which is used in the default rules for
 the pattern "text()|@" 
 | 
public void addRule(Rule rule)
rule - the rule to addpublic void removeRule(Rule rule)
rule - the rule to removepublic void run(java.util.List<Node> list) throws java.lang.Exception
java.lang.Exceptionpublic void run(java.util.List<Node> list, java.lang.String mode) throws java.lang.Exception
java.lang.Exceptionpublic void run(Node node) throws java.lang.Exception
java.lang.Exceptionpublic void run(Node node, java.lang.String mode) throws java.lang.Exception
java.lang.Exceptionpublic void applyTemplates(java.lang.Object input,
                           XPath xpath)
                    throws java.lang.Exception
input - the input objectxpath - the xpath expressionjava.lang.Exception - if something goes wrongpublic void applyTemplates(java.lang.Object input,
                           XPath xpath,
                           java.lang.String mode)
                    throws java.lang.Exception
input - the input objectxpath - the xpath expressionmode - the modejava.lang.Exception - if something goes wrongpublic void applyTemplates(Node node) throws java.lang.Exception
Node, this will processes all of the
 children of that node. If input is a List of
 Nodess, these nodes will be iterated and all children of
 each node will be processed.node - the input objectjava.lang.Exception - if something goes wrongpublic void applyTemplates(Element element) throws java.lang.Exception
Node, this will processes all of the
 children of that node. If input is a List of
 Nodess, these nodes will be iterated and all children of
 each node will be processed.element - the input objectjava.lang.Exception - if something goes wrongpublic void applyTemplates(Document document) throws java.lang.Exception
Node, this will processes all of the
 children of that node. If input is a List of
 Nodess, these nodes will be iterated and all children of
 each node will be processed.document - the input objectjava.lang.Exception - if something goes wrongpublic void applyTemplates(java.util.List<Node> list) throws java.lang.Exception
Node, this will processes all of the
 children of that node. If input is a List of
 Nodess, these nodes will be iterated and all children of
 each node will be processed.list - the input objectjava.lang.Exception - if something goes wrongpublic void applyTemplates(Node node, java.lang.String mode) throws java.lang.Exception
Node, this will processes all of the children of that
 node. If input is a List of Nodess, these
 nodes will be iterated and all children of each node will be processed.node - the input objectmode - the modejava.lang.Exception - if something goes wrongpublic void applyTemplates(Element element, java.lang.String mode) throws java.lang.Exception
Node, this will processes all of the children of that
 node. If input is a List of Nodess, these
 nodes will be iterated and all children of each node will be processed.element - the input objectmode - the modejava.lang.Exception - if something goes wrongpublic void applyTemplates(Document document, java.lang.String mode) throws java.lang.Exception
Node, this will processes all of the children of that
 node. If input is a List of Nodess, these
 nodes will be iterated and all children of each node will be processed.document - the input objectmode - the modejava.lang.Exception - if something goes wrongpublic void applyTemplates(java.util.List<? extends Node> list, java.lang.String mode) throws java.lang.Exception
Node, this will processes all of the children of that
 node. If input is a List of Nodess, these
 nodes will be iterated and all children of each node will be processed.list - list of Elements or Documentsmode - the modejava.lang.Exception - if something goes wrongpublic void clear()
public java.lang.String getModeName()
public void setModeName(java.lang.String modeName)
modeName - DOCUMENT ME!public Action getValueOfAction()
public void setValueOfAction(Action valueOfAction)
valueOfAction - DOCUMENT ME!