UBL Naming and Design Rules SC

RE: [ubl-ndrsc] Code lists: discussion kickoff

  • 1.  RE: [ubl-ndrsc] Code lists: discussion kickoff

    Posted 02-05-2002 06:40
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    	<xs:element name="Country">
    		<xs:annotation>
    			<xs:documentation>Country element without an enumerated list</xs:documentation>
    		</xs:annotation>
    		<xs:complexType>
    			<xs:sequence>
    				<xs:element name="CountryCode">
    					<xs:simpleType>
    						<xs:restriction base="xs:string"/>
    					</xs:simpleType>
    				</xs:element>
    				<xs:element name="Country.txt" minOccurs="0">
    					<xs:complexType>
    						<xs:simpleContent>
    							<xs:extension base="xs:string">
    								<xs:attribute name="Language" type="xs:language" use="optional" default="en"/>
    							</xs:extension>
    						</xs:simpleContent>
    					</xs:complexType>
    				</xs:element>
    			</xs:sequence>
    			<xs:attribute name="CodeReference" use="required" default="ISO 3166-1">
    				<xs:simpleType>
    					<xs:restriction base="xs:string">
    						<xs:enumeration value="ISO 3166-1"/>
    						<xs:enumeration value="Custom"/>
    					</xs:restriction>
    				</xs:simpleType>
    			</xs:attribute>
    		</xs:complexType>
    	</xs:element>
    </xs:schema>
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <Country xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Administrator\My Documents\OASIS\Johns XSDs\MyCountry.xsd" CodeReference="ISO 3166-1">
    	<CountryCode>AU</CountryCode>
    	<Country.txt>Australia</Country.txt>
    </Country>
    
    <?xml version="1.0" encoding="UTF-8"?>
    <Country xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Administrator\My Documents\OASIS\Johns XSDs\MyCountry.xsd" CodeReference="Custom">
    	<CountryCode>TZ</CountryCode>
    	<Country.txt>Transylvania</Country.txt>
    </Country>