Test results for Win32 Console

test_004051_xsd_line_alt1

Test description

Test for XSD schema wildcard handling.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.xsd -R .

Input data

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

Schema

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://xmlfy.sourceforge.net"
           xmlns="http://xmlfy.sourceforge.net"
           elementFormDefault="qualified">
  <xs:element name="paragraph">
    <xs:sequence>
      <xs:element name="sentence" type="sentenceType" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:element>
  <xs:complexType name="sentenceType">
    <xs:sequence>
      <xs:element name="startword" type="xs:string" minOccurs="0" />
      <xs:element name="middleword" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="endword" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<paragraph xmlns="http://xmlfy.sourceforge.net"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://xmlfy.sourceforge.net schema.xsd">
  <sentence>
    <endword>Word</endword>
  </sentence>
  <sentence>
    <startword>Two</startword>
    <endword>words</endword>
  </sentence>
  <sentence>
    <startword>Now</startword>
    <middleword>three</middleword>
    <endword>words</endword>
  </sentence>
  <sentence>
    <startword>This</startword>
    <middleword>is</middleword>
    <middleword>four</middleword>
    <endword>words</endword>
  </sentence>
</paragraph>

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