Skip to main content

BIN 44D3E Documentation

  • Author:

  • Version: 6

  • Description: W3C Schema Order example, imported from XSD at https://msdn.microsoft.com/en-us/library/dd489284.aspx

  • Created: 2015-11-29

  • Modified: 2015-11-30

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <!--
        This OSK Schema has been generated by a W3C XML Schema
        retrieved at undefined:/text
        using com.eleusoft.schemaconvert.w3c.transform package,
        Copyright 2005-(Current) Michele Vivoda, Eleusoft.com 
    --><osk xmlns:norm="http://www.eleusoft.org/schemaconvert/normalize" norm:generator="transform.xsl" norm:generator.vendor="Eleusoft" norm:generator.version="0.2" norm:xsl.vendor="Apache Software Foundation" norm:xsl.version="1.0">
    <datatypeLibrary xmlns:extra="http://eleusoft.org/schema/extra" xmlns:out="http://www.eleusoft.org/schemaconvert/out" xmlns:rslv="http://www.eleusoft.org/schemaconvert/resolve" xmlns:xs="http://www.w3.org/2001/XMLSchema" uri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <schema xmlns:extra="http://eleusoft.org/schema/extra" xmlns:out="http://www.eleusoft.org/schemaconvert/out" xmlns:rslv="http://www.eleusoft.org/schemaconvert/resolve" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xslns="http://www.eleusoft.org/xsltnshelpers" attributeFormDefault="unqualified" description="This package is the root result of the transformation of a W3C Schema." elementFormDefault="qualified" extra:w3ctransform.isroot="true" name="text" namespaceUri="http://tempuri.org/PurchaseOrderSchema.xsd" uri="http://tempuri.org/PurchaseOrderSchema.xsd">
    <ns prefix="tns" uri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--
       	ST-RESTR) This is an anonymous xs:simpleType  declaring a derivation by restriction.
       	-->
    <simpleType name="Type.Items.item.AnonymousElType.quantity.AnonymousElType" type="positiveInteger" typeUri="http://www.w3.org/2001/XMLSchema-datatypes">
    <facet name="minInclusive" value="1"/>
    <facet name="maxExclusive" value="100"/>
    </simpleType>
    <!--
    	CT-CCR-ANYTYPE-HASPARTICLES - This is an anonymous xs:complexType 
    	that restricts xs:anyType declaring children particles.
    	-->
    <complexType name="Type.Items.item.AnonymousElType">
    <!--local xsd:attribute with @type reference - parent: rslv:attributes-->
    <field extra:xml="attribute" form="unqualified" localName="partNum" minOccurs="0" name="ATTR_partNum" rslv:simplecontent="true" type="Type.SKU" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--Here there was an order-only xs:sequence-->
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="productName" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--local xsd:element with inline type definition - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="quantity" rslv:oskrefiscomplex="true" rslv:simplecontent="true" type="Type.Items.item.AnonymousElType.quantity.AnonymousElType" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="USPrice" type="decimal" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--	Local xsd:element using @ref-->
    <field name="comment" ref="true" type="comment" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="0" name="shipDate" type="date" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--End order-only xs:sequence-->
    </complexType>
    <!--
    	ROOT xs:element @type attribute specified -
    	xs:schema/xs:element[@norm:name='comment'][@norm:type='string'].
    	In OSK is either a simpleType or a complex type, depends on the referenced type, that in this case is simple.
    	Note: The name is the same of the element (no [Type.] prefix added).-->
    <!--Since $bindGlobalSimpleElementsToComplexType = "true" this
            global simple element is bound to an OSK complex type instead than to a simple type -->
    <complexType name="comment">
    <field extra:xml="text" name="__simpleContent" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    </complexType>
    <!--
    	ROOT xs:element @type attribute specified -
    	xs:schema/xs:element[@norm:name='purchaseOrder'][@norm:type='Type.PurchaseOrderType'].
    	In OSK is either a simpleType or a complex type, depends on the referenced type, that in this case is complex.
    	Note: The name is the same of the element (no [Type.] prefix added).-->
    <complexType description="W3C Schema Order example, imported from XSD at https://msdn.microsoft.com/en-us/library/dd489284.aspx" extra:form="true" name="purchaseOrder" rslv:oskrefiscomplex="true">
    <implements type="Type.PurchaseOrderType" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    </complexType>
    <!--
    	CT-CCR-ANYTYPE-HASPARTICLES - This is a named xsd:complexType 
    	that restricts xs:anyType declaring children particles.
    	-->
    <complexType name="Type.USAddress">
    <!--local xsd:attribute with @type reference - parent: rslv:attributes-->
    <field extra:xml="attribute" fixed="US" form="unqualified" localName="country" minOccurs="0" name="ATTR_country" type="NMTOKEN" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--Here there was an order-only xs:sequence-->
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="name" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="street" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="city" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="state" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="zip" type="decimal" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--End order-only xs:sequence-->
    </complexType>
    <!--
       	ST-RESTR) This is a named xsd:simpleType  declaring a derivation by restriction.
       	-->
    <simpleType name="Type.SKU" type="string" typeUri="http://www.w3.org/2001/XMLSchema-datatypes">
    <facet name="pattern" value="\d{3}\w{3}"/>
    </simpleType>
    <!--
    	CT-CCR-ANYTYPE-HASPARTICLES - This is a named xsd:complexType 
    	that restricts xs:anyType declaring children particles.
    	-->
    <complexType name="Type.Items">
    <!--Here there was an order-only xs:sequence-->
    <!--local xsd:element with inline type definition - parent: xs:sequence-->
    <field form="qualified" maxOccurs="unbounded" minOccurs="0" name="item" rslv:oskrefiscomplex="true" type="Type.Items.item.AnonymousElType" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--End order-only xs:sequence-->
    </complexType>
    <!--
    	CT-CCR-ANYTYPE-HASPARTICLES - This is a named xsd:complexType 
    	that restricts xs:anyType declaring children particles.
    	-->
    <complexType name="Type.PurchaseOrderType">
    <!--local xsd:attribute with @type reference - parent: rslv:attributes-->
    <field extra:xml="attribute" form="unqualified" localName="orderDate" minOccurs="0" name="ATTR_orderDate" type="date" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--local xsd:attribute with @type reference - parent: rslv:attributes-->
    <field extra:xml="attribute" form="unqualified" localName="confirmDate" minOccurs="1" name="ATTR_confirmDate" type="date" typeUri="http://www.w3.org/2001/XMLSchema-datatypes"/>
    <!--Here there was an order-only xs:sequence-->
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="shipTo" rslv:oskrefiscomplex="true" type="Type.USAddress" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="billTo" rslv:oskrefiscomplex="true" type="Type.USAddress" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--	Local xsd:element using @ref-->
    <field minOccurs="0" name="comment" ref="true" type="comment" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--local xsd:element with @type reference - parent: xsd:sequence-->
    <field form="qualified" maxOccurs="1" minOccurs="1" name="items" rslv:oskrefiscomplex="true" type="Type.Items" typeUri="http://tempuri.org/PurchaseOrderSchema.xsd"/>
    <!--End order-only xs:sequence-->
    </complexType>
    <!--Begin find global nillable elements-->
    <!--Begin find local nillable elements for N10004-->
    <!-- Type -->
    <!-- Type -->
    <!-- Type USAddress-->
    <!-- Type SKU-->
    <!-- Type Items-->
    <!-- Type PurchaseOrderType-->
    <!--resolve defaults for simple content local elements-->
    <!--Begin find sequence(s) for [undefined:/text]-->
    </schema>
    </osk>