Package eu.bandm.tools.xslt.base
Class Main
java.lang.Object
eu.bandm.tools.xslt.base.Main
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
(The overall calling architecture is sketched in the package level documentation.)
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final NamespaceNamestatic final Set<NamespaceName> static final NamespaceNamestatic final Stringstatic final NamespaceNameThe default "mode" in which input is processed.static final Stringstatic final String(package private) final MessageKindFilter<SimpleMessage<@Opt XMLDocumentIdentifier>> (package private) final MessageLocationFilter<@Opt XMLDocumentIdentifier> (package private) final MessageTee<SimpleMessage<@Opt XMLDocumentIdentifier>> static final String(package private) int(package private) Optionsstatic final Patternstatic final Stringstatic final NamespaceNamestatic final NamespaceName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) StringerrText()(package private) boolean(package private) DTM.DtdLoad a DTD-File and convert it into aDTM.Dtd, with namespace mode enabled.(package private) voidstatic voidOnly callsnonStatic_main(String[]).(package private) voidvoidnonStatic_main(String[] args) Main entry for just type checking with Fragmented Validation, or for executing the transformation.(package private) void(package private) void(package private) void
-
Field Details
-
mkind
-
mloc
-
msg
-
oldErrs
int oldErrs -
options
Options options -
namespaceUri_Xslt
- See Also:
-
CONST_nsname_match
-
initial_xslt_mode
The default "mode" in which input is processed. -
localname_top_xslt_1
- See Also:
-
localname_top_xslt_2
- See Also:
-
attname_use_attribute_set
- See Also:
-
attNamespaceName_use_attribute_set
-
attNamespaceNameSet_use_attribute_set
-
top_xslt_name_1
-
top_xslt_name_2
-
regex_XML_WS
-
filenameStemPlaceholder
- See Also:
-
TEXT_TARGET
- See Also:
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
error
-
error
-
warning
-
log
-
hasErrors
boolean hasErrors() -
newErrorGroup
void newErrorGroup() -
errText
String errText() -
terminateApplicationOnErrors_printUsage
void terminateApplicationOnErrors_printUsage() -
terminateApplicationOnErrors
void terminateApplicationOnErrors() -
loadDtm
Load a DTD-File and convert it into aDTM.Dtd, with namespace mode enabled.- Parameters:
role- for logging and error messages only.
-
nonStatic_main
Main entry for just type checking with Fragmented Validation, or for executing the transformation. Controlled by command line options inOptions. 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 FIXME GIPS NICHT MEHR !?!?!
To define the execution of xpath-functions, a class path of a dedicated subclass ofFunctionLibrarycan 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 fromBuiltInFunctions. If no such option is given, an instance ofBuiltInFunctionswill be used, which realizes all standard xslt and xpath functions. -
main
Only callsnonStatic_main(String[]).
-