Test results for Solaris x86

test_001182_option_matchdirect_off

Test description

Test for legacy element matching on the root element in the schema.
This test exists to highlight the differences between legacy element
matching and direct element matching as found in the previous test case.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -l

Input data

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10 11
1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 10 11 12 13
1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Schema

<!ELEMENT a (cats, b, c, cats, b)>
<!ELEMENT cats(tabby, musical,tabby, musical)>
<!ELEMENT musical(paw,stage)>
<!ELEMENT stage(paw,tabby)>
<!ELEMENT paw(#PCDATA)>
<!ELEMENT tabby (#PCDATA)>
<!ELEMENT b (#PCDATA)>
<!ELEMENT c (#PCDATA)>
<!ELEMENT musical(w,x,y,z)>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE a SYSTEM "schema.dtd">
<a>
  <cats1>
    <tabby>1</tabby>
    <musical>
      <paw>2</paw>
      <stage>
        <paw>3</paw>
        <tabby>4</tabby>
      </stage>
    </musical>
    <tabby>5</tabby>
    <musical>
      <paw>6</paw>
      <stage>
        <paw>7</paw>
        <tabby>8</tabby>
      </stage>
    </musical>
  </cats1>
  <cats2>
    <tabby>1</tabby>
    <musical>
      <paw>2</paw>
      <stage>
        <paw>3</paw>
        <tabby>4</tabby>
      </stage>
    </musical>
    <tabby>5</tabby>
    <musical>
      <w>6</w>
      <x>7</x>
      <y>8</y>
      <z>9</z>
    </musical>
  </cats2>
</a>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".