Package net.sf.saxon
Class Gizmo
java.lang.Object
net.sf.saxon.Gizmo
A Gizmo is a simple tool for performing a particular easily specified transformation on an XML
document, for example deleting or renaming all the elements with a particular name. The class
offers a command-line interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteTestCommand
(String command) Execute a test commandGet the current document (for testing purposes)protected Talker
initTalker
(String script) static void
void
Set the current document (for testing purposes)
-
Constructor Details
-
Gizmo
-
Gizmo
public Gizmo()Diagnostic interface
-
-
Method Details
-
main
-
getConfiguration
-
setCurrentDoc
Set the current document (for testing purposes)- Parameters:
doc
- the current document
-
getCurrentDoc
Get the current document (for testing purposes)- Returns:
- the current document
-
executeTestCommand
Execute a test command- Parameters:
command
- the command to be executed- Returns:
- the output of the command, if any
- Throws:
XPathException
- if the command execution fails
-
initTalker
-