Test results for Solaris x86

test_001212_option_identifier_xsd

Test description

Test for a user specified system identifier being printed in the style
of XML documents that use a XSD schema.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.xsd -I http://xmlfy.sourceforge.net/schemata/examples

Input data

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

Schema

<xs:schema>
  <xs:element name="soccer">
    <xs:sequence>
      <xs:element name="heading" type="summaryType" />
      <xs:element name="match" type="summaryType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:element>
  <xs:complexType name="summaryType">
    <xs:sequence>
      <xs:element name="team" type="xs:string" />
      <xs:element name="won" type="xs:string" />
      <xs:element name="lost" type="xs:string" />
      <xs:element name="drawn" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<soccer xmlns="http://xmlfy.sourceforge.net/schemata/examples"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://xmlfy.sourceforge.net/schemata/examples schema.xsd">
  <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>
</soccer>

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