Test results for Solaris x86

test_001200_option_printonly

Test description

Test for the printonly functionality. In this example only element records
should be printed and the prologue and root element should be suppressed. 

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -p records

Input data

Team Won Lost Drawn
Barcelona 5 1 2
Manchester 4 2 2
 
Milan 2 2 4

Schema

<!ELEMENT soccer (heading) (match*)>
<!ELEMENT heading (team, won, lost, drawn)>
<!ELEMENT match (team, won, lost, drawn)>
<!ELEMENT team (#PCDATA)>
<!ELEMENT won (#PCDATA)>
<!ELEMENT lost (#PCDATA)>
<!ELEMENT drawn (#PCDATA)>

Output result

  <heading>
    <team>Team</team>
    <won>Won</won>
    <lost>Lost</lost>
    <drawn>Drawn</drawn>
  </heading>
  <match>
    <team>Barcelona</team>
    <won>5</won>
    <lost>1</lost>
    <drawn>2</drawn>
  </match>
  <match>
    <team>Manchester</team>
    <won>4</won>
    <lost>2</lost>
    <drawn>2</drawn>
  </match>
  <match>
    <team>Milan</team>
    <won>2</won>
    <lost>2</lost>
    <drawn>4</drawn>
  </match>

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