Test results for Linux

test_001244_option_xmlformat_html_schema

Test description

Test for user specified XML format output control by re-representing the
normal XML output as a table in HTML format. 

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd

Input data

Word. Two words. Now three words. This is four words.

Schema

<!-- xmlfy-args: -R . -X HTML table -->
<!ELEMENT blockquote (p+)>
<!ELEMENT p (b, i*, b)>
<!ELEMENT b (#PCDATA)>
<!ELEMENT i (#PCDATA)>

Output result

<!DOCTYPE html>
<html>
  <head>
    <title>xmlfy</title>
    <!-- sed_hook -->
  </head>
  <body>
    <blockquote>
      <p>
        <b>Two</b>
        <b>words</b>
      </p>
      <p>
        <b>Now</b>
        <i>three</i>
        <b>words</b>
      </p>
      <p>
        <b>This</b>
        <i>is</i>
        <i>four</i>
        <b>words</b>
      </p>
    </blockquote>
  </body>
</html>

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