Package eu.bandm.tools.d2d2.base
Class XsltSpecialized
java.lang.Object
eu.bandm.tools.d2d2.base.XsltSpecialized
NOT YET USED! This class prepares the d2d definitions of xslt code for
one certain back-end/targetmodule.
The insertion of the target language classes into the content-containing xslt elements is done by once modifying the (copy of the) xslt declaration.
Each reference to "xslt_generic_tag_for_backend_elements" = "RESULT_ELEMENTS" ; is hard rewritten to "(#chars|A|B|C)*", with "A", "B", etc. being the reachable target model element tags.
The other side, i.e. the callability of ubiquituous content-producing xslt elements out of user content is done DYNAMICALLY, by special look-up code. Cf. the local "boolean inxslt" in function
The insertion of the target language classes into the content-containing xslt elements is done by once modifying the (copy of the) xslt declaration.
Each reference to "xslt_generic_tag_for_backend_elements" = "RESULT_ELEMENTS" ; is hard rewritten to "(#chars|A|B|C)*", with "A", "B", etc. being the reachable target model element tags.
The other side, i.e. the callability of ubiquituous content-producing xslt elements out of user content is done DYNAMICALLY, by special look-up code. Cf. the local "boolean inxslt" in function
Text2Udom.process_open_tag(String, boolean)
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Collect all elements which can appear in an xslt template "spontanuously" on top level of a template content. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Function<SourceItem,
String> protected final ModuleRegistry
protected MessageCounter
protected MessageTee<SimpleMessage<XMLDocumentIdentifier>>
protected final Module
protected final String
protected final Module
-
Constructor Summary
ConstructorDescriptionXsltSpecialized
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, ModuleRegistry moduleRegistry, Module targetModule, String toplevelTag, Module xslt_module_raw) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
hint
(Location<XMLDocumentIdentifier> loc, String text) void
protected void
protected void
protected Alt
makealt
(CheckedList<Expression> subs) protected Alt
makealt
(Collection<Reference> subs) protected void
warning
(Location<XMLDocumentIdentifier> loc, String text)
-
Field Details
-
xslt_module_resolved
-
xslt_alt_ubiquituous
-
xslt_alt_ubiquituous_repeated
-
moduleRegistry
-
targetModule
-
toplevelTag
-
xslt_module_raw
-
msgC
-
msgT
-
getFullPath
-
-
Constructor Details
-
XsltSpecialized
public XsltSpecialized(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, ModuleRegistry moduleRegistry, Module targetModule, String toplevelTag, Module xslt_module_raw)
-
-
Method Details
-
hint
-
warning
-
logStart
-
logEnd
-
instantiate
public void instantiate() -
errorcheck_xsltprepare
-
makealt
-
makealt
-