prev  ( testsuite > ErrorHandling > BadChildren > badMatrix1  )  next

Alternatives: (mml file)  (full) (simple) (plain) (form) (slideshow)
File:ErrorHandling/BadChildren/badMatrix1
CVS-ID:
Author:Dave Doyle, Design Science
Description:Test behavior of a <matrix> element under a variety of conditions.

Sample Rendering:

N/A

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 xmlns="http://www.w3.org/1998/Math/MathML"> 
      <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>