Class Dtd2Def.Phase1.AttConverter

Enclosing class:
Dtd2Def.Phase1

protected class Dtd2Def.Phase1.AttConverter extends DTM.SinglePathVisitor
Translates d2d attribute definitions to d2d expressions on references. and creates the corresponding d2d definitions. The latter either in the global aux element Dtd2Def.attContainer, or local to the current element targetEl. The name may be mangled due to LL(1) conflicts with the content model (As in HTML "td/abbr" vs "td/@abbr" and "ins/cite" vs "ins/@cite").

"#FIXED" attributes are not translated at all.

Create one instance and re-use it for all attributes of one single element, by invoking translate(DTM.Attribute).

  • Field Details

    • targetEl

      final TagsRegExp targetEl
      The d2d definition for which the attributes shall be translated.
    • firsttags

      final Set<String> firsttags
      The tags which can start the translation of the element's content model, and thus cannot appear as names of optional attributes.
    • fixed

      boolean fixed
      Visitor register, set when the currently visited attribute is fixed.
    • required

      boolean required
      Visitor register, set when the currently visited attribute is reqired.
  • Constructor Details

  • Method Details