de.pannenleiter.tbug.saxon
Class StyleSheetDebugger

java.lang.Object
  |
  +--com.icl.saxon.trax.Processor
        |
        +--com.icl.saxon.StyleSheet
              |
              +--de.pannenleiter.tbug.saxon.StyleSheetDebugger

public class StyleSheetDebugger
extends com.icl.saxon.StyleSheet

This StyleSheet class is an interpreter for XSL style sheets. This class is provided to control the interpreter from the command line.

The XSL syntax supported conforms to the W3C XSLT 1.0 and XPath 1.0 recommendation. Only the transformation language is implemented (not the formatting objects). The actual syntax is documented in the file stylesheets.html


Fields inherited from class com.icl.saxon.StyleSheet
messageEmitter, sourceParser, sourceParserName, sourceURIResolver, styleParser, styleParserName, styleURIResolver, traceListener
 
Constructor Summary
StyleSheetDebugger()
           
 
Method Summary
protected  void doMain(java.lang.String[] args, com.icl.saxon.StyleSheet app, java.lang.String name)
          Support method for main program.
 java.lang.String info(java.lang.Throwable t)
           
static void main(java.lang.String[] args)
          Main program, can be used directly from the command line.
 void processFile(org.xml.sax.InputSource source, com.icl.saxon.PreparedStyleSheet sheet, java.io.File outputFile, com.icl.saxon.ParameterSet params)
           
 
Methods inherited from class com.icl.saxon.StyleSheet
badUsage, getAssociatedStylesheets, getFeature, getTemplatesBuilder, getXMLReader, makeMessageEmitter, makeTraceListener, makeURIResolver, process, processDirectory, processDirectoryAssoc, processFileAssoc, processFromNode, processMultiple, quit, setFeature, setXMLReader
 
Methods inherited from class com.icl.saxon.trax.Processor
getErrorHandler, getURIResolver, newInstance, setErrorHandler, setPlatformDefaultProcessor, setURIResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSheetDebugger

public StyleSheetDebugger()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main program, can be used directly from the command line.

The format is:

java com.icl.saxon.StyleSheet [options] source-file style-file >output-file

followed by any number of parameters in the form {keyword=value}... which can be referenced from within the stylesheet.

This program applies the XSL style sheet in style-file to the source XML document in source-file.


doMain

protected void doMain(java.lang.String[] args,
                      com.icl.saxon.StyleSheet app,
                      java.lang.String name)
Support method for main program. This support method can also be invoked from subclasses that support the same command line interface
Overrides:
doMain in class com.icl.saxon.StyleSheet
Parameters:
args - the command-line arguments
app - instance of the StyleSheet class (or a subclass) to be invoked
name - name of the class, to be used in error messages

processFile

public void processFile(org.xml.sax.InputSource source,
                        com.icl.saxon.PreparedStyleSheet sheet,
                        java.io.File outputFile,
                        com.icl.saxon.ParameterSet params)
                 throws java.lang.Exception
Overrides:
processFile in class com.icl.saxon.StyleSheet

info

public java.lang.String info(java.lang.Throwable t)