Class DTD2DTM

java.lang.Object
eu.bandm.tools.dtm.DTD2DTM

public class DTD2DTM extends Object
Converts a 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 Details

    • DTD2DTM

      public DTD2DTM()
  • Method Details

    • addNamespaceMapping

      public void addNamespaceMapping(String prefix, String uri)
    • getNamespaceMappings

      public Map<String,String> getNamespaceMappings()
    • getNamespacesEnabled

      public boolean getNamespacesEnabled()
    • setNamespacesEnabled

      public void setNamespacesEnabled(boolean namespacesEnabled)
    • getOriginalName

      public String getOriginalName(NamespaceName n)
    • setMessageReceiver

      public void setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
    • addPreprocessor

      public void addPreprocessor(DTD.Visitor visitor)
    • translate

      public DTM.Dtd translate(DTD.Dtd dtd)