Class Main

java.lang.Object
eu.bandm.tools.xslt.base.Main

public class Main extends Object
Command line tool for checking and excuting one single xslt transformations from file to file, internally: a w3c model into a tdom model.
FIXME: Batch mode, or client-server, etc. support still MISSING, but pre-wired by cache object TransformationCache.
(The overall calling architecture is sketched in the package level documentation.)
  • Field Details

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • error

      void error(String s)
    • error

      void error(Exception ex, String s)
    • warning

      void warning(String s)
    • log

      void log(String s)
    • hasErrors

      boolean hasErrors()
    • newErrorGroup

      void newErrorGroup()
    • errText

      String errText()
    • terminateApplicationOnErrors_printUsage

      void terminateApplicationOnErrors_printUsage()
    • terminateApplicationOnErrors

      void terminateApplicationOnErrors()
    • loadDtm

      DTM.Dtd loadDtm(String filePos, String role)
      Load a DTD-File and convert it into a DTM.Dtd, with namespace mode enabled.
      Parameters:
      role - for logging and error messages only.
    • nonStatic_main

      public void nonStatic_main(String[] args)
      Main entry for just type checking with Fragmented Validation, or for executing the transformation. Controlled by command line options in Options. Execution mode is decided by the presence of the option "--inputFiles".
      For type checking of the xpath expressions there are following combinations:
      • No source Dtd and no source top level elements => only functions are checked for existence.
      • Source dtd => All source elements potential roots
      • Source dtd AND source root elements => full type check

      To define the execution of xpath-functions, a class path of a dedicated subclass of FunctionLibrary can be supplied by --tpathFunctions. An instance of this class will be created. Since this will be the ONLY source of function defs, it should add all standard xpath functions from BuiltInFunctions. If no such option is given, an instance of BuiltInFunctions will be used, which realizes all standard xslt and xpath functions.
    • main

      public static void main(String[] args)