9.4 Bookeeping for Continued Fractions

<..continued level counter..>
 cont
-_-_-

In the first phase, the mfrac elements in a group carry attributes as in

       <mfrac class="continued-mfrac">

with the exception of the bottom (internal) most leveles. The ‘cont’ parameter is for determining whether the parent and the grandparent are frac elements marked as continued.

<..clValue := class of mfrac..>
 if (node.hasAttributes()) {
    Node cl = node.getAttributes().getNamedItem("class");
    if (cl != null) { clValue = cl.getNodeValue(); }
 }
-_-_-

<..cont := distance from mfrac(continued-frac)..>
 if( (clValue != null)
     && clValue.equals("continued-mfrac") ) {
   cont = 2;
 } else { cont--; }
-_-_-