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)
        doc - the current document
      • getCurrentDoc

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

        public java.lang.String executeTestCommand​(java.lang.String command)
                                            throws XPathException
        Execute a test command
        command - the command to be executed
        the output of the command, if any
        XPathException - if the command execution fails
      • initTalker

        protected Talker initTalker​(java.lang.String script)