protected class Dtd2Def.Phase1 extends DTM.SinglePathVisitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
Dtd2Def.Phase1.AttConverter
translate one attribute definition to an expression on references,
and create the corresponding ddf definition.
|
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
expr |
_visitor_debug_stream, partial| Modifier | Constructor and Description |
|---|---|
protected |
Phase1() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
action(DTM.Choice x) |
protected void |
action(DTM.Element el) |
protected void |
action(DTM.Mixed x) |
protected void |
action(DTM.Sequence x) |
protected void |
action(DTM.Singleton x) |
protected @Opt Definition |
globalDefForAtt(String name,
DTM.Attribute attdef)
ATTENTION currently dtd-attribute "types" are not analyzed.
|
protected Definition |
makeAttribute(SourceItem context,
String name,
DTM.Attribute att)
Create a new ddf-definition.
|
protected Expression |
makeRef(DTM.ElementRef eref) |
protected void |
modify(DTM.CP cp) |
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action_visitor_trace, action, action, action, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatchprotected Expression expr
protected void action(DTM.Element el)
action in class DTM.SinglePathVisitorprotected Expression makeRef(DTM.ElementRef eref)
protected void modify(DTM.CP cp)
protected void action(DTM.Singleton x)
action in class DTM.SinglePathVisitorprotected void action(DTM.Sequence x)
action in class DTM.SinglePathVisitorprotected void action(DTM.Choice x)
action in class DTM.SinglePathVisitorprotected void action(DTM.Mixed x)
action in class DTM.SinglePathVisitorprotected Definition makeAttribute(SourceItem context, String name, DTM.Attribute att)
context - either the global att dummy element container, or an element ddf
definitionname - the name of the new ddf definition, possibly mangled, because it
must work LL(1)-disambuig as an input tag.att - the original dtd definition; defines the xml output tag and the location.@Opt protected @Opt Definition globalDefForAtt(String name, DTM.Attribute attdef)
name - the name of the new ddf definition. It is the original local name plus
possibly some prefix for dis-ambiguation!see also the complete user documentation .