Test results for Win32 Console

test_002061_dtd_multitree_2

Test description

Test for hierarchical element handling with element records that have
more than one structure in a DTD schema.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -A number

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

Schema

<!ELEMENT multitree (line_a) (line_b) (line_b) (line_a) (line_b) (line_b) (line_a)>
<!ELEMENT line_a (b, c)>
<!ELEMENT line_a (b, c, line_b, c)>
<!ELEMENT line_b (a, b, c)>
<!ELEMENT line_b (d)>
<!ELEMENT a (#PCDATA)>
<!ELEMENT b (#PCDATA)>
<!ELEMENT c (#PCDATA)>
<!ELEMENT d (#PCDATA)>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE multitree SYSTEM "schema.dtd">
<multitree>
  <line_b number="1">
    <d number="1">1</d>
  </line_b>
  <line_a number="1">
    <b number="1">1</b>
    <c number="1">2</c>
  </line_a>
  <line_b number="2">
    <a number="1">1</a>
    <b number="1">2</b>
    <c number="1">3</c>
  </line_b>
  <line_a number="2">
    <b number="1">1</b>
    <c number="1">2</c>
    <line_b number="1">
      <d number="1">3</d>
    </line_b>
    <c number="2">4</c>
  </line_a>
  <line_a number="3">
    <b number="1">1</b>
    <c number="1">2</c>
    <line_b number="1">
      <a number="1">3</a>
      <b number="1">4</b>
      <c number="1">5</c>
    </line_b>
    <c number="2">6</c>
  </line_a>
</multitree>

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