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
Modifier and TypeFieldDescriptionstatic final String
static final NamespaceName
static final Set<NamespaceName>
static final NamespaceName
static final String
static final NamespaceName
The default "mode" in which input is processed.static final String
static 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) Options
static final Pattern
static final String
static final NamespaceName
static final NamespaceName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
(package private) String
errText()
(package private) boolean
(package private) DTM.Dtd
Load a DTD-File and convert it into aDTM.Dtd
, with namespace mode enabled.(package private) void
static void
Only callsnonStatic_main(String[])
.(package private) void
void
nonStatic_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:
-
textTarget
- 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
To define the execution of xpath-functions, a class path of a dedicated subclass ofFunctionLibrary
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 fromBuiltInFunctions
. If no such option is given, an instance ofBuiltInFunctions
will be used, which realizes all standard xslt and xpath functions. -
main
Only callsnonStatic_main(String[])
.
-