<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.legislation.gov.uk/namespaces/legislation"
	xmlns:ukm="http://www.legislation.gov.uk/namespaces/metadata"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns="http://www.legislation.gov.uk/namespaces/legislation" 
	xmlns:ukl="http://www.legislation.gov.uk/namespaces/legislation" elementFormDefault="qualified"
	attributeFormDefault="unqualified" version="2.9" id="SchemaLegislation">

	<xsd:annotation>
		<xsd:appinfo xmlns:dcq="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<dc:title>Legislation Top Level Schema</dc:title>
			<dc:description>Describes primary and secondary UK legislation</dc:description>
			<dc:contributor>Paul Appleby</dc:contributor>
			<dc:creator>TSO</dc:creator>
			<dc:identifier>SchemaLegislation</dc:identifier>
			<dc:language>en</dc:language>
			<dc:publisher>The Stationery Office</dc:publisher>
			<dc:rights>Crown copyright 2018</dc:rights>
			<dc:date>
				<dcq:created>2003-10-20</dcq:created>
			</dc:date>
			<dc:date>
				<dcq:modified>2025-11-05</dcq:modified>
			</dc:date>
			<xsd:documentation>
			Namespace information:
			This schema is defined as being the in the namespace 'http://www.legislation.gov.uk/namespaces/legislation'
			The suggested namespace prefix is ukl ([U]nited [K]ingdom [L]egislation)
			</xsd:documentation>
			<xsd:documentation>
			Modification information (for version number strategy see ../README.md)
			Version	Name				   	Modification
			2.9		Mark Rainbird			Add TerritorialApplication attribute to use type ExtentType. Available same as RestrictExtent is available and the expectation is that they will both be available down to sub-provision level.
			2.8		Amna Farheen			Version incremented for Release 204 - refer to the README for the detailed release notes
			2.7		Mark Rainbird			Changes for Release 156 and listed in README under individual stories
			2.6		William Jonadoss		Incremented version number for release 2.6 (see README for release notes)
			2.5		Karl Rajangam			Incremented version number for release 2.5 (see README for release notes)
			2.3		Colin Mackenzie			Incremented top level schema number for new release
			2.2		Colin Mackenzie			#172575932 Remove top level schema definition of DocumentMainType
			2.2		Colin Mackenzie			Added comment regarding link to new version strategy file and incremented top level schema number
			2.1		Colin Mackenzie			New top level schema for version 2.1 (#171841757 Welsh parliament rename)
			2.0		Colin Mackenzie			Numbering restarted at 2 for new EU and merged schema
			2.0		Colin Mackenzie			This schema has had most of its contents moved to schemaLegislationCore.xsd (so that top level legislation.xsd can have different definition of DocumentType from publication schema)
			1.0		Paul Appleby/Peter Lazar	Created
			</xsd:documentation>
		</xsd:appinfo>
	</xsd:annotation>

	<!-- Legislation includes -->
	<xsd:include schemaLocation="schemaLegislationCore.xsd"/>
	
</xsd:schema>
