Package eu.bandm.tools.xslt.base
Class TemplatesCache
java.lang.Object
eu.bandm.tools.xslt.base.MessageSender
eu.bandm.tools.xslt.base.TemplatesCache
Caches xslt source files, e.g. libraries for inclusion by different files.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Stores error messages and (OPT) the result object of the parsing process. -
Field Summary
Modifier and TypeFieldDescriptionprotected Map<URI,
TemplatesCache.LoadResult> protected Map<String,
Map<URI, TemplatesCache.LoadResult>> protected Map<XMLDocumentIdentifier,
URI> Fields inherited from class eu.bandm.tools.xslt.base.MessageSender
msg, trace
-
Constructor Summary
ConstructorDescriptionTemplatesCache
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Trace trace) SetsMessageReceiver
andTrace
for the standard messaging control. -
Method Summary
Modifier and TypeMethodDescription(package private) TemplatesCache.LoadResult
_getTemplates
(@Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, @Opt ResultContext resultContext) ATTENTION every source template can be loaded more than once, but only once for a particular tdom class name.baseURI
(TypedElement el) getTemplates
(@Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, @Opt ResultContext resultContext) Loads a set of xslt rules from the given file for the given result tdom into aTemplates
object.
-
Field Details
-
xmldocumentid2uri
-
absoluteTemplates
-
resultTemplates
-
-
Constructor Details
-
TemplatesCache
SetsMessageReceiver
andTrace
for the standard messaging control.
-
-
Method Details
-
getTemplates
public Templates getTemplates(@Opt @Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, @Opt @Opt ResultContext resultContext) Loads a set of xslt rules from the given file for the given result tdom into aTemplates
object. Sends error message if parsing error occurs. The result tdom is identified by the classname of the tdom package. (There are different Templates objects for different target tdoms, because the "verbatim element names" of the source text will be interpreted differently.)- Parameters:
callingLocation
- may be ==null only for top-most source from command line
-
_getTemplates
TemplatesCache.LoadResult _getTemplates(@Opt @Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, @Opt @Opt ResultContext resultContext) ATTENTION every source template can be loaded more than once, but only once for a particular tdom class name. (Called directly by "TransformationCache" to realize include statements.)- Parameters:
callingLocation
- may be ==null only for top-most source from command line
-
baseURI
-
baseURI
-
baseURI
-