Test results for Linux |
Test for XSD schema wildcard handling.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.xsd -R .
Word. Two words. Now three words. This is four words.
<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>
<?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>