Class ContentSimplifier


public class ContentSimplifier extends DTD.SinglePathVisitor
Rewriter which simplifies all content models in a Dtd. The transformation is the fixpoint of the infinite application of
   ,  a  a? a+  a*      |  a  a? a+  a*      o  x  x? x+  x*         
   a  -  -  -   a+      a  -  a? a+  a*      a  -  a? a+  a*   
   a? -  -  a+  a*      a? a? -  a*  a*      a? -  A?  a*  a*   ASK BT !?!?
   a+ -  a+ aa+ a+      a+ a+ a* -   a*      a+ -  a* a+  a*   
   a* a+ a* a+  a*      a* a+ a* a*  -       a* -  a* a*  a*     
   
   - = no change        - = out=in           - = out=in
Additionally, SEQUENCES and ALTERNATIVES are FLATTENED. It can either be applied to non-desstructively to a certain content model explicitly by simplify(DTD.CP).
And it can be applied to a DTD model (as a whole or to some element declarations) to destructively replace all content models contained therein by calling match(Object).