prev next
File: ErrorHandling/BadChildren/badBvar1.xml (mml file)
Author: Design Science, Inc. (D. Doyle)
Description: A comprehensive test of bvar syntax
Sample Rendering:
Created by: webeq

Your browser's rendering:

correct: x correct w/ degree x 2 missing <ci>: missing <ci> w/ degree: 2 2 <ci>s x y 2 w/ degree x y 2 <mi> used x <mi> used w/ degree x 2 missing <ci>, 2 degrees 4 2


Source Code:

    <math>
      <mtable>
        <mtr>
          <mtd>
            <mtext>correct:</mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <ci>x</ci> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>correct w/ degree</mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <ci>x</ci> 
              <degree>
                <cn>2</cn>
              </degree> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>missing &lt;ci&gt;:</mtext>
          </mtd>
          <mtd> 
            <bvar> </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>missing &lt;ci&gt; w/ degree:
            </mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <degree>
                <cn>2</cn>
              </degree> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>2 &lt;ci&gt;s</mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <ci>x</ci> 
              <ci>y</ci> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>2 w/ degree</mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <ci>x</ci> 
              <ci>y</ci> 
              <degree>
                <cn>2</cn>
              </degree> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>&lt;mi&gt; used</mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <mi>x</mi> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>&lt;mi&gt; used w/ degree</mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <mi>x</mi> 
              <degree>
                <cn>2</cn>
              </degree> 
            </bvar>
          </mtd>
        </mtr>
        <mtr>
          <mtd>
            <mtext>missing &lt;ci&gt;, 2 degrees
            </mtext>
          </mtd>
          <mtd> 
            <bvar> 
              <degree>
                <cn>4</cn>
              </degree> 
              <degree>
                <cn>2</cn>
              </degree> 
            </bvar>
          </mtd>
        </mtr>
      </mtable>
    </math>
  

Test Suite Home