Commit 2da3d5a2 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2003-06-12 11:54:45 by cvscast] Merging schema

Original author: cvscast
Date: 2003-06-12 11:54:49+00:00
parent 616aecd7
dump_stream
*.cma
*.cmi
*.cmo
*.cmx
*.cmxa
<ZACK>FOOOOOOOOOOOOoooooo...</ZACK>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="ZACK" type="xsd:ZACK"/>
</xsd:schema>
test -z "$1" && exit 1
cat SIMPLE_TYPE.xsd.tpl | sed s/ZACK/$1/g > $1.xsd
cat SIMPLE_TYPE.xml.tpl | sed s/ZACK/$1/g > $1.xml
<anyURI>http://www.example.com</anyURI>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="anyURI" type="xsd:anyURI"/>
</xsd:schema>
<foo
bar="bar"
id="12"
>
<bar>ciao</bar>
</foo>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="foo" type="fooT" />
<xsd:complexType name="fooT">
<xsd:sequence>
<xsd:element name="bar" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" use="optional" fixed="12" type="xsd:integer"/>
<xsd:attribute name="id2" use="optional" default="13" type="xsd:integer"/>
<xsd:attribute name="foo" use="prohibited"/>
<xsd:attribute name="bar" use="required" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
<root>
<foo>ciao, come va?</foo>
<bar>bene, grazie, e tu?</bar>
<foo>idem</foo>
</root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="root" type="fooT" />
<xsd:complexType name="fooT">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="foo" type="xsd:string"/>
<xsd:element name="bar" type="xsd:string"/>
</xsd:choice>
</xsd:complexType>
</xsd:schema>
<root>
<foo>one</foo>
<bar>two</bar>
<foo>three</foo>
<one>ONE</one>
<two>TWO</two>
</root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="root" type="extendedT"/>
<xsd:complexType name="baseT">
<xsd:choice minOccurs="2" maxOccurs="unbounded">
<xsd:element name="foo" type="xsd:string"/>
<xsd:element name="bar" type="xsd:string"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="extendedT">
<xsd:complexContent>
<xsd:extension base="baseT">
<xsd:sequence>
<xsd:element name="one" type="xsd:string"/>
<xsd:element name="two" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<date>1999-05-31-05:00</date>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="date" type="xsd:date"/>
</xsd:schema>
<dateTime>1999-05-31T13:20:00-05:00</dateTime>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="dateTime" type="xsd:dateTime"/>
</xsd:schema>
<!--
<durations>
<duration>P1Y2M3DT10H30M</duration>
<duration>-P120D</duration>
</durations>
-->
<duration>P1Y2M3DT10H30M</duration>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="duration" type="xsd:duration"/>
<!--
<xsd:element name="durations">
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
<xsd:element name="duration" type="xsd:duration"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
-->
</xsd:schema>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment