- From: <paul.downey@bt.com>
- Date: Thu, 31 Jan 2008 13:41:01 -0000
- To: <public-xsd-databinding@w3.org>
[moved to public mailing list]
thanks Jon, I've added these to the examples.xml file
The suffix "Example" on each example is unnecessary, so I removed them,
this crept in to IdExample during testing, so guess we may have to live with that one!
Paul
--
http://blog.whatfettle.com
---
From: <jon.calladine@bt.com>
Date: Thu, 11 Oct 2007 16:05:52 +0100
Message-ID: <69745757A6DB3C4897CAC70999C477BD0253D405@E03MVW3-UKDY.domain1.systemhost.net>
To: <member-xsd-databinding@w3.org>
Paul, I targetted the basic patterns without examples yesterday.
http://www.w3.org/2002/ws/databinding/patterns/6/09/
suspect some of these will turn out to be advanced. Proposed additions
to the examples file below
<ex:examples
xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/"
wsdlNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/"
targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/">
<ex:ns prefix="ex"
uri="http://www.w3.org/2002/ws/databinding/examples/6/09/"/>
<ex:ns prefix="log"
uri="http://www.w3.org/2002/ws/databinding/log/6/09/"/>
<ex:ns prefix="xs" uri="http://www.w3.org/2001/XMLSchema"/>
<ex:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
<ex:ns prefix="soap11enc"
uri="http://schemas.xmlsoap.org/soap/envelope/"/>
<ex:ns prefix="soap11"
uri="http://schemas.xmlsoap.org/soap/envelope/"/>
<ex:ns prefix="wsdl11" uri="http://schemas.xmlsoap.org/wsdl/"/>
<ex:version>$Id: examples.xml,v 1.68 2007/08/03 12:45:30 pdowney Exp
$</ex:version>
<ex:example xml:id="GlobalAttributeExample"
element="ex:globalAttributeExample">
<ex:typedef>
<xs:element name="globalAttributeExample" type="ex:Premium"/>
<xs:attribute name="globalAttribute" type="xs:string"/>
<xs:complexType name="Premium">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
<xs:attribute ref="ex:globalAttribute"/>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="GlobalAttributeExample01">
<ex:globalAttributeExample globalAttribute="String">
<ex:amount>1175</ex:amount>
</ex:globalAttributeExample>
</ex:instance>
</ex:example>
<ex:example xml:id="ElementFormQualified"
element="ex:elementFormQualified">
<ex:typedef>
<xs:element name="elementFormQualified" type="ex:Premium"/>
<xs:complexType name="Premium">
<xs:sequence>
<xs:element name="amount" type="xs:string"
form="qualified"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="ElementFormQualifiedExample01">
<ex:elementFormQualified>
<ex:amount>1175</ex:amount>
</ex:elementFormQualified>
</ex:instance>
</ex:example>
<ex:example xml:id="NotNillable" element="ex:notNillable">
<ex:typedef>
<xs:element name="notNillable" type="ex:NotNillable"/>
<xs:complexType name="NotNillable">
<xs:sequence>
<xs:element name="notNillableElement" type="xs:string"
nillable="false"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="NotNillableExample01">
<ex:notNillable>
<ex:notNillableElement>Stuff</ex:notNillableElement>
</ex:notNillable>
</ex:instance>
</ex:example>
<ex:example xml:id="NotMixed" element="ex:notMixed">
<ex:typedef>
<xs:element name="notMixed" type="ex:NotMixed"/>
<xs:complexType name="NotMixed" mixed="false">
<xs:sequence>
<xs:element name="notMixedElement" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="NotMixedExample01">
<ex:notMixed>
<ex:notMixedElement>Stuff</ex:notMixedElement>
</ex:notMixed>
</ex:instance>
</ex:example>
<ex:example xml:id="AttributeFormUnqualified"
element="ex:attributeFormUnqualified">
<ex:typedef>
<xs:element name="attributeFormUnqualified" type="ex:Premium"/>
<xs:complexType name="Premium">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string"
form="unqualified"/>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="AttributeFormUnqualifiedExample01">
<ex:attributeFormUnqualified id="id01">
<ex:amount>1175</ex:amount>
</ex:attributeFormUnqualified>
</ex:instance>
</ex:example>
<ex:example xml:id="ComplexTypeConcrete"
element="ex:complexTypeConcrete">
<ex:typedef>
<xs:element name="complexTypeConcrete" type="ex:Premium"/>
<xs:complexType name="Premium" abstract="false">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="ComplexTypeConcreteExample01">
<ex:complexTypeConcrete>
<ex:amount>1175</ex:amount>
</ex:complexTypeConcrete>
</ex:instance>
</ex:example>
<ex:example xml:id="GlobalComplexType"
element="ex:globalComplexType">
<ex:typedef>
<xs:element name="globalComplexType" type="ex:Premium"/>
<xs:complexType name="Premium">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="GlobalComplexTypeExample01">
<ex:globalComplexType>
<ex:amount>1175</ex:amount>
</ex:globalComplexType>
</ex:instance>
</ex:example>
<ex:example xml:id="GlobalComplexTypeAbstract"
element="ex:globalComplexTypeAbstract">
<ex:typedef>
<xs:element name="globalComplexTypeAbstract" type="ex:Total"/>
<xs:complexType name="Premium" abstract="true">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<complexType name="Total">
<complexContent>
<extension base="ex:Premium"/>
</complexContent>
</complexType>
</ex:typedef>
<ex:instance xml:id="GlobalComplexTypeAbstractExample01">
<ex:globalComplexTypeAbstract>
<ex:amount>1175</ex:amount>
</ex:globalComplexTypeAbstract>
</ex:instance>
</ex:example>
<ex:example xml:id="GlobalElementConcrete"
element="ex:globalElementConcrete">
<ex:typedef>
<xs:element name="globalElementConcrete" type="xs:string"
abstract="false"/>
</ex:typedef>
<ex:instance xml:id="GlobalElementConcreteExample01">
<ex:globalElementConcrete>Stuff</ex:globalElementConcrete>
</ex:instance>
</ex:example>
<ex:example xml:id="GlobalElementBlock"
element="ex:globalElementBlock">
<ex:typedef>
<xs:element name="globalElementBlock" type="xs:string"
block="#all"/>
</ex:typedef>
<ex:instance xml:id="GlobalElementBlockExample01">
<ex:globalElementBlock>Stuff</ex:globalElementBlock>
</ex:instance>
</ex:example>
<ex:example xml:id="GlobalElementFinal"
element="ex:globalElementFinal">
<ex:typedef>
<xs:element name="globalElementFinal" type="xs:string"
final="#all"/>
</ex:typedef>
<ex:instance xml:id="GlobalElementFinalExample01">
<ex:globalElementFinal>Stuff</ex:globalElementFinal>
</ex:instance>
</ex:example>
<ex:example xml:id="GlobalComplexTypeBlock"
element="ex:globalComplexTypeBlock">
<ex:typedef>
<xs:element name="globalComplexTypeBlock" type="ex:BlockAll"/>
<xs:complexType name="BlockAll" block="#all">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="GlobalComplexTypeBlockExample01">
<ex:globalComplexTypeBlock>
<ex:amount>1175</ex:amount>
</ex:globalComplexTypeBlock>
</ex:instance>
</ex:example>
<ex:example xml:id="ElementFinal" element="ex:elementFinal">
<ex:typedef>
<xs:element name="elementFinal" type="ex:FinalAllType"/>
<xs:complexType name="FinalAllType">
<xs:sequence>
<xs:element name="finalElement" type="xs:string"
final="#all"/>
</xs:sequence>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="ElementFinalExample01">
<ex:elementFinal>
<ex:finalElement>Stuff</ex:finalElement>
</ex:elementFinal>
</ex:instance>
</ex:example>
<ex:example xml:id="ComplexTypeAttribute" element="ex:premium">
<ex:typedef>
<xs:element name="premium" type="ex:Premium"/>
<xs:complexType name="Premium">
<xs:sequence>
<xs:element name="amount" type="xs:string"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string"/>
<xs:attribute name="currency" type="xs:string"/>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="ComplexTypeAttributeExample01">
<ex:premium id="1711" currency="EUR">
<ex:amount>1250</ex:amount>
</ex:premium>
</ex:instance>
</ex:example>
<ex:example xml:id="ComplexTypeAttributeExtension"
element="ex:complexTypeAttributeExtension">
<ex:typedef>
<xs:element name="complexTypeAttributeExtension"
type="ex:ComplexTypeAttributeExtension"/>
<xs:complexType name="ComplexTypeAttributeBase">
<xs:sequence>
<xs:element name="name" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ComplexTypeAttributeExtension">
<xs:complexContent>
<xs:extension base="ex:ComplexTypeAttributeBase">
<xs:attribute name="gender" type="xs:string"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</ex:typedef>
<ex:instance xml:id="ComplexTypeAttributeExtension01">
<ex:complexTypeAttributeExtension>
<ex:name gender="female">Mary</ex:name>
</ex:complexTypeAttributeExtension>
</ex:instance>
</ex:example>
</ex:examples>
Received on Thursday, 31 January 2008 14:24:44 UTC