public class Stylesheet extends 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.
Modifier and Type | Field and Description |
---|---|
private String |
modeName
Holds value of property mode.
|
private RuleManager |
ruleManager |
Constructor and Description |
---|
Stylesheet() |
Modifier and Type | Method and Description |
---|---|
void |
addRule(Rule rule) |
void |
applyTemplates(Object input) |
void |
applyTemplates(Object input,
XPath xpath) |
void |
clear() |
protected Mode |
getMode() |
String |
getModeName() |
Action |
getValueOfAction() |
void |
removeRule(Rule rule) |
void |
run(List list) |
void |
run(Node node) |
void |
run(Object input)
Runs this stylesheet on the given input which should be
either a Node or a List of Node objects.
|
void |
setModeName(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()|@*"
|
private RuleManager ruleManager
public Stylesheet()
public void removeRule(Rule rule)
public void run(Object input) throws Exception
Exception
public void applyTemplates(Object input, XPath xpath) throws Exception
Exception
public void applyTemplates(Object input) throws Exception
Exception
public void clear()
public String getModeName()
public void setModeName(String modeName)
public Action getValueOfAction()
public void setValueOfAction(Action valueOfAction)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses