Package net.sf.saxon

Class Gizmo


  • public class Gizmo
    extends java.lang.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 Detail

      • Gizmo

        public Gizmo​(java.lang.String[] args)
      • Gizmo

        public Gizmo()
        Diagnostic interface
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • 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 java.lang.String executeTestCommand​(java.lang.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​(java.lang.String script)