W3C

GovTalk-AddressType

The document http://www.govtalk.gov.uk/gdsc/schemas/AddressTypes-v1-4.xsd has been classified as being possibly an Advanced XML Schema Patterns for Databinding 1.0 conformant document as it only exhibits the following patterns:

Status Nodes Name XPath
basic TargetNamespace .[@targetNamespace]/ (., @targetNamespace)
basic QualifiedLocalElements .[@elementFormDefault = 'qualified']/ (@elementFormDefault)
basic UnqualifiedLocalAttributes .[not(@attributeFormDefault) or @attributeFormDefault = 'unqualified']/ (., @attributeFormDefault)
basic SchemaVersion ./@version
basic DocumentationElement .//xs:annotation/xs:documentation/ (.., ., .//*, .//@*)
advanced AppinfoElement .//xs:annotation/xs:appinfo/ (.., ., .//*, .//@*)
basic IdentifierName .//.[matches(@name, "^[A-Za-z_]([A-Za-z0-9_]0 31)$")]/ (@name)
basic ImportSchema ./xs:import[@namespace and @schemaLocation]/ (., @namespace, @schemaLocation)
advanced ElementTypeDefaultNamespace .//xs:element[@name and @type and not(contains(@type, ':'))]/ (@name, @type)
basic Id .//@id
basic ElementMinOccurs0 .//xs:element[@minOccurs = '0' and (not(@maxOccurs) or @maxOccurs = '1')]/ (@minOccurs, @maxOccurs)
advanced ElementMinOccursFinite .//xs:element[xs:integer(@minOccurs) gt 1]/ (@minOccurs, @maxOccurs)
advanced ElementMaxOccursFinite .//xs:element[@maxOccurs and not(@maxOccurs = '0' or @maxOccurs = '1' or @maxOccurs = 'unbounded')]/ (@maxOccurs)
basic GlobalSimpleType ./xs:simpleType[@name]/ (., @name)
basic GlobalComplexType ./xs:complexType[@name]/ (., @name)
basic StringEnumerationType .//xs:simpleType/xs:restriction[@base/resolve-QName(.,..) = xs:QName('xs:string') and xs:enumeration]/ (., @base, xs:enumeration/(., @value))
advanced SimpleTypeEnumerationType .//xs:simpleType/xs:restriction[@base and namespace-uri-from-QName(resolve-QName(@base,.)) != 'http://www.w3.org/2001/XMLSchema' ]/ (., @base, xs:enumeration/(., @value))
advanced ComplexTypeSequenceChoice .//xs:complexType/xs:sequence/xs:choice/ (., xs:element/(., @name))
basic ComplexTypeSequence .//xs:complexType/xs:sequence/ (., xs:element/(., @name))
advanced ChoiceSequence .//xs:choice/xs:sequence/(.)
advanced SequenceChoice .//xs:sequence/xs:choice/(.)
advanced ChoiceElement .//xs:choice/xs:element/(.)
basic SequenceElement .//xs:sequence/xs:element/(.)
basic ElementTypeReference .//xs:element[@name and @type and namespace-uri-from-QName(resolve-QName(@type,.)) != 'http://www.w3.org/2001/XMLSchema' and contains(@type, ':')]/ (., @name, @type)
advanced ElementTypeReferenceUnqualified .//xs:element[@name and @type and namespace-uri-from-QName(resolve-QName(@type,.)) != 'http://www.w3.org/2001/XMLSchema' and not(contains(@type, ':'))]/ (., @name, @type)
advanced StringSimpleTypePattern .//xs:restriction[@base/resolve-QName(.,..) = xs:QName('xs:string')]/xs:pattern[@value]/ (.., ../@base, ., @value)
advanced RestrictedMaxLength .//xs:simpleType/xs:restriction/xs:maxLength[@value]/(.., ../@base, ., @value)
advanced RestrictedMinLength .//xs:simpleType/xs:restriction/xs:minLength[@value]/(.., ../@base, ., @value)

<xsd:schema TargetNamespace UnqualifiedLocalAttributes targetNamespace="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" TargetNamespace elementFormDefault="qualified" QualifiedLocalElements attributeFormDefault="unqualified" UnqualifiedLocalAttributes version="1.4" SchemaVersion id="AddressTypes" Id >
<xsd:annotation AppinfoElement >
<xsd:appinfo AppinfoElement >
<Metadata AppinfoElement >
<Audience AppinfoElement >
e-service developers
</Audience>
<Contributor AppinfoElement >
e-champions,Government Schema Group, IDeA
</Contributor>
<Contributor AppinfoElement >
Paul Spencer, Boynings Consulting (mailto:paul.spencer@boynings.co.uk)
</Contributor>
<Creator AppinfoElement >
Technology Policy Team, Office of the e-Envoy, Cabinet Office (mailto:ukgovtalk@e-envoy.gsi.gov.uk)
</Creator>
<Date AppinfoElement >
<Created AppinfoElement >
2001-12-19
</Created>
</Date>
<Date AppinfoElement >
<Modified AppinfoElement >
2002-01-30
</Modified>
</Date>
<Date AppinfoElement >
<Modified AppinfoElement >
2003-02-17
</Modified>
</Date>
<Date AppinfoElement >
<Modified AppinfoElement >
2003-07-07
</Modified>
</Date>
<Description AppinfoElement >
The address portion of Address and Personal Details
</Description>
<Format AppinfoElement >
<MediaType AppinfoElement >
text/xml
</MediaType>
<Syntax AppinfoElement >
http://www.w3.org/2001/XMLSchema
</Syntax>
<Description AppinfoElement >
XML schema, W3C Recommendation 2001
</Description>
</Format>
<Identifier AppinfoElement >
AddressTypes-v1-3
</Identifier>
<Language AppinfoElement >
[ISO 639-2/B] ENG
</Language>
<Publisher AppinfoElement >
Office of the e-Envoy, Stockley House,130 Wilton Road, London SW1V 1LQ
</Publisher>
<Relation AppinfoElement >
<Requires AppinfoElement >
BS7666-v1-3
</Requires>
</Relation>
<Relation AppinfoElement >
<HasPart AppinfoElement >
CommonSimpleTypes-v1-3
</HasPart>
</Relation>
<Rights AppinfoElement >
Unclassified
<Copyright AppinfoElement >
Crown Copyright 2002,2003
</Copyright>
</Rights>
<Subject AppinfoElement >
<Category AppinfoElement >
People, communities and living
</Category>
</Subject>
<Subject AppinfoElement >
<Project AppinfoElement >
UK GovTalk
</Project>
</Subject>
<Title AppinfoElement >
Address Types architectural schema
</Title>
</Metadata>
</xsd:appinfo>
</xsd:annotation>
<xsd:import ImportSchema namespace="http://www.govtalk.gov.uk/people/bs7666" ImportSchema schemaLocation="BS7666-v1-4.xsd" ImportSchema />
<xsd:import ImportSchema namespace="http://www.govtalk.gov.uk/core" ImportSchema schemaLocation="CommonSimpleTypes-v1-3.xsd" ImportSchema />
<!-- start of InternationalAddress type definition -->
<xsd:complexType GlobalComplexType name="InternationalAddressStructure" IdentifierName GlobalComplexType >
<xsd:sequence ComplexTypeSequence > </xsd:sequence>
</xsd:complexType>
<!-- end of InternationalAddress type definition -->
<!-- start of AddressUKpostalStructure type definition -->
<!-- end of AddressUKpostalStructure type definition -->
<!-- start of AddressUKstructure type definition -->
<xsd:complexType GlobalComplexType name="UKAddressStructure" IdentifierName GlobalComplexType >
<xsd:annotation DocumentationElement >
<xsd:documentation DocumentationElement >
Supports BS7666 address types.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence ComplexTypeSequence >
<xsd:choice ComplexTypeSequenceChoice SequenceChoice >
<xsd:annotation DocumentationElement >
<xsd:documentation DocumentationElement >
At least one of' 5LineAddress and BS7666Address.
</xsd:documentation>
</xsd:annotation>
</xsd:choice>
<xsd:element ComplexTypeSequence SequenceElement ElementTypeReference name="UniquePropertyReferenceNumber" IdentifierName ComplexTypeSequence ElementTypeReference type="bs7666:UPRNtype" ElementTypeReference minOccurs="0" ElementMinOccurs0 />
<xsd:choice ComplexTypeSequenceChoice SequenceChoice >
<xsd:annotation DocumentationElement >
<xsd:documentation DocumentationElement >
a Mailsort code is a code that aims to ensure that items are properly addressed and offers discounts to organisations using it, and a Walksort provides more detail (and higher discounts). Local authorities extensively use both. The Post Office issues files that are used by the sending organisations to manage the processes of correct addressing and sorting of mail items
</xsd:documentation>
</xsd:annotation>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<!-- end of AddressUKstructure type definition -->
<xsd:simpleType GlobalSimpleType name="AddressLineType" IdentifierName GlobalSimpleType >
<xsd:restriction SimpleTypeEnumerationType RestrictedMaxLength RestrictedMinLength base="core:RestrictedStringType" SimpleTypeEnumerationType RestrictedMaxLength RestrictedMinLength >
<xsd:minLength RestrictedMinLength value="1" RestrictedMinLength />
<xsd:maxLength RestrictedMaxLength value="35" RestrictedMaxLength />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType GlobalSimpleType name="MailSortCodeType" IdentifierName GlobalSimpleType >
<xsd:restriction StringSimpleTypePattern base="xsd:string" StringSimpleTypePattern >
<xsd:pattern StringSimpleTypePattern value="[0-9]{5}" StringSimpleTypePattern />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType GlobalSimpleType name="WalkSortCodeType" IdentifierName GlobalSimpleType >
<xsd:restriction StringSimpleTypePattern base="xsd:string" StringSimpleTypePattern >
<xsd:pattern StringSimpleTypePattern value="[0-9]{8}" StringSimpleTypePattern />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType GlobalSimpleType name="InternationalPostCodeType" IdentifierName GlobalSimpleType >
<xsd:restriction SimpleTypeEnumerationType RestrictedMaxLength RestrictedMinLength base="core:RestrictedStringType" SimpleTypeEnumerationType RestrictedMaxLength RestrictedMinLength >
<xsd:minLength RestrictedMinLength value="1" RestrictedMinLength />
<xsd:maxLength RestrictedMaxLength value="35" RestrictedMaxLength />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType GlobalSimpleType name="AddressQualifierType" IdentifierName GlobalSimpleType >
<xsd:restriction StringEnumerationType base="xsd:string" StringEnumerationType >
<xsd:enumeration StringEnumerationType value="residential" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="correspondence" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="self-employed-business" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="business" StringEnumerationType />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType GlobalSimpleType name="AddressValidationType" IdentifierName GlobalSimpleType >
<xsd:restriction StringEnumerationType base="xsd:string" StringEnumerationType >
<xsd:enumeration StringEnumerationType value="not-checked" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="PAF-check-failed" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="NLPG-check-failed" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="PAF-check-valid" StringEnumerationType />
<xsd:enumeration StringEnumerationType value="NLPG-check-valid" StringEnumerationType />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

This document was produced by the W3C XML Schema Patterns for Databinding Working Group. Comments on this document may be sent to the public public-xsd-databinding-comments@w3.org mailing list (public archive).