prev next
File: ErrorHandling/BadChildren/badMatrix1.xml (mml file)
Author: Dave Doyle, Design Science
Description: Test behavior of a <matrix> element under a variety of conditions.
Sample Rendering:
Created by: webeq

Your browser's rendering:

T1 T2 empty matrix empty matrix row in matrix empty matrix row 1 ele in matrixrow 2 2 ele in matrixrow 2 4 3 ele in matrixrow 2 4 8 2 matrixrows 1 3 5 2 4 8 2 matrixrows w/ empty row 2 4 8 non matrix row in matrix 2 B1 B2


Source Code:

    <math> 
      <mtable> 
        <mtr>
          <mtd>
            <mtext>T1</mtext>
          </mtd>
          <mtd>
            <mtext>T2</mtext>
          </mtd>
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>empty matrix</mtext> 
          </mtd> 
          <mtd> 
            <matrix> </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>empty matrix row in matrix</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <matrixrow>
              </matrixrow> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>empty matrix row</mtext> 
          </mtd> 
          <mtd> 
            <matrixrow>
            </matrixrow> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>1 ele in matrixrow</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <matrixrow>
                <cn>2</cn>
              </matrixrow> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>2 ele in matrixrow</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <matrixrow>
                <cn>2</cn>
                <cn>4</cn>
              </matrixrow> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>3 ele in matrixrow</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <matrixrow>
                <cn>2</cn>
                <cn>4</cn>
                <cn>8</cn>
              </matrixrow> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>2 matrixrows</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <matrixrow>
                <cn>1</cn>
                <cn>3</cn>
                <cn>5</cn>
              </matrixrow> 
              <matrixrow>
                <cn>2</cn>
                <cn>4</cn>
                <cn>8</cn>
              </matrixrow> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>2 matrixrows w/ empty row</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <matrixrow>
              </matrixrow> 
              <matrixrow>
                <cn>2</cn>
                <cn>4</cn>
                <cn>8</cn>
              </matrixrow> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mtext>non matrix row in matrix</mtext> 
          </mtd> 
          <mtd> 
            <matrix>
              <cn>2</cn> 
            </matrix> 
          </mtd> 
        </mtr> 
        <mtr>
          <mtd>
            <mtext>B1</mtext>
          </mtd>
          <mtd>
            <mtext>B2</mtext>
          </mtd>
        </mtr> 
      </mtable> 
    </math>
  

Test Suite Home