Package eu.bandm.tools.dtm
Class DTD2DTM
java.lang.Object
eu.bandm.tools.dtm.DTD2DTM
Converts a
20180416:
xmlns:x="uri"
xmlns="uri"
muessen ignoriert werden, haben zur Zeit keine Auswirkung und werden als vordefiniert akzeptiert.
LATER: Tdom must accept ANY namespace uri, iff the namespace uri is undefined.
DTD.Dtd
(ie the verbatim front-end representation) into a
DTM
, which is a pure algebraic representation,
supporting XML name spaces and more appropriate for further processing.
Namespace mode must be activated explicitly, and prefices to namespace urls
must be added explicitly. (This can be done by a preprocessor, see e.g.
Dtd2Def
.)
If namespacemode true, all names are checked for one(1) colon (':') max, and for
defined prefices. If false, a colon is a normal character.
20180416:
xmlns:x="uri"
xmlns="uri"
muessen ignoriert werden, haben zur Zeit keine Auswirkung und werden als vordefiniert akzeptiert.
LATER: Tdom must accept ANY namespace uri, iff the namespace uri is undefined.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNamespaceMapping
(String prefix, String uri) void
addPreprocessor
(DTD.Visitor visitor) (package private) NamespaceName
attribute
(String qname, Location<XMLDocumentIdentifier> loc) (package private) EBNFModifier
decode
(int modifier) (package private) NamespaceName
element
(String qname, Location<XMLDocumentIdentifier> loc) boolean
void
setMessageReceiver
(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) void
setNamespacesEnabled
(boolean namespacesEnabled)
-
Constructor Details
-
DTD2DTM
public DTD2DTM()
-
-
Method Details
-
addNamespaceMapping
-
getNamespaceMappings
-
getNamespacesEnabled
public boolean getNamespacesEnabled() -
setNamespacesEnabled
public void setNamespacesEnabled(boolean namespacesEnabled) -
getOriginalName
-
setMessageReceiver
-
element
-
attribute
-
addPreprocessor
-
translate
-
decode
-