Package net.sf.saxon

Class Gizmo

java.lang.Object
net.sf.saxon.Gizmo

public class Gizmo extends Object
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 Details

    • Gizmo

      public Gizmo(String[] args)
    • Gizmo

      public Gizmo()
      Diagnostic interface
  • Method Details

    • main

      public static void main(String[] args)
    • getConfiguration

      public Configuration getConfiguration()
    • setCurrentDoc

      public void setCurrentDoc(DocumentImpl doc)
      Set the current document (for testing purposes)
      Parameters:
      doc - the current document
    • getCurrentDoc

      public DocumentImpl getCurrentDoc()
      Get the current document (for testing purposes)
      Returns:
      the current document
    • executeTestCommand

      public String executeTestCommand(String command) throws XPathException
      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

      protected Talker initTalker(String script)