Package eu.bandm.tools.xslt.base
Class ResultContext
java.lang.Object
eu.bandm.tools.xslt.base.ResultContext
Convenience class for accessing all data which depends
on the target DTD and is required for xslt parsing and execution.
This includes the sax parsing method and the implementing classes,
indexed by the
NamespaceName of the target's dtd element definitions.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DTM.Dtdfinal booleanstatic final Stringstatic final ResultContextfinal DTD.DtdOriginal DTD, only needed for "WhitespaceIgnorer" in verbatimXML, seeApplication.feedTextToResult(Element,String). -
Method Summary
Modifier and TypeMethodDescriptionvoiddumpToContentHandler(TypedSubstantial corpus, ContentHandler ch) Calls the Dump-method of the target tdom implementation via reflection and pipes all SAX events into the ContentHandler.static @Opt ResultContextnewInstance(String tdom_package_name, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Extracts all the data required for parsing and stores them into public read-only fields.
-
Field Details
-
name_sax_parse_method
- See Also:
-
textOnly
-
isTextOnly
public final boolean isTextOnly -
dtd
-
x_dtd
Original DTD, only needed for "WhitespaceIgnorer" in verbatimXML, seeApplication.feedTextToResult(Element,String). -
tdom_package_name
-
-
Method Details
-
get_resultDtdDocId
-
newInstance
@Opt public static @Opt ResultContext newInstance(String tdom_package_name, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Extracts all the data required for parsing and stores them into public read-only fields. Esp. initializespathMap, the relations for Fragmented Validation. Returns null in case of error, so that calling level can continue batch processing with alternatives. -
dumpToContentHandler
Calls the Dump-method of the target tdom implementation via reflection and pipes all SAX events into the ContentHandler.
-