Showing:

Annotations
Attributes
Diagrams
Identity Constraints
Instances
Model
Properties
Source
Included schema schemaLegislationCore.xsd
Namespace http://www.legislation.gov.uk/namespaces/legislation
Annotations
Describes primary and secondary UK legislation and legislation of EU origin
Properties
attribute form default unqualified
element form default qualified
version 2.4
Element Legislation
Namespace http://www.legislation.gov.uk/namespaces/legislation
Annotations
The top-level document element for United Kingdom primary and secondary legislation and for EU legislation.
Diagram
DiagramschemaLegislationCommonAttributes_xsd.tmp#CommonAttributesschemaCommon_xsd.tmp#SchemaVersionerrors_xsd.tmp#ErrorAttributesschemaLegislationCommonAttributes_xsd.tmp#FragmentAttributesschemaCommon_xsd.tmp#OptionalURIsschemaLegislationMetadata_xsd.tmp#MetadataschemaLegislationContents_xsd.tmp#ContentsschemaLegislationMain_xsd.tmp#PrimaryschemaLegislationMain_xsd.tmp#SecondaryschemaLegislationMainEU_xsd.tmp#EURetainedschemaFootnote_xsd.tmp#FootnotesschemaMarginnote_xsd.tmp#MarginNotesschemaVersion_xsd.tmp#VersionsschemaResources_xsd.tmp#ResourcesschemaCommentary_xsd.tmp#CommentariesschemaCitations_xsd.tmp#CitationListsschemaLegislationMain_xsd.tmp#PrimaryschemaLegislationMain_xsd.tmp#SecondaryschemaLegislationMainEU_xsd.tmp#EURetainedschemaFootnote_xsd.tmp#FootnotesschemaMarginnote_xsd.tmp#MarginNotesschemaVersion_xsd.tmp#VersionsschemaResources_xsd.tmp#ResourcesschemaCommentary_xsd.tmp#CommentariesschemaCitations_xsd.tmp#CitationLists
Properties
content complex
Model
Children CitationLists, Commentaries, Contents, EURetained, Footnotes, MarginNotes, Metadata, Primary, Resources, Secondary, Versions
Attributes
QName Type Default Use Annotation
AltDates DateOrProspectiveListType optional
A space separated sequence of dates where amendments have been applied to the provision
AltVersionRefs RefsLinkType optional
Links to alternate versions of the content by referencing the version's id attribute, e.g. perhaps a Welsh version or an image (Figure) of a Formula
BlanketAmendment xsd:boolean optional
A Boolean value to indicate whether the provision includes blanket amendments, ie general amendments to legislation as a whole rather than a specific enactment
Concurrent xsd:boolean optional
A Boolean value to indicate if there are concurrent versions of the same provision. This is presently used for concurrent geographic extent versions but may be used in future to indicate other versions of the same provision
ConfersPower xsd:boolean optional
A Boolean value to indicate whether the provision includes confers power to make secondary legislation
Date xsd:date optional
DocumentURI xsd:anyURI optional
The URI to this part of the document (to the enacted version).
FragmentId xsd:NMTOKEN optional
The identifier for the fragment used in the old SLD (Statute Law Database) system
IdURI xsd:anyURI optional
The URI to the id of this part of the document (to the current revised version).
Match xsd:boolean optional
A boolean value indicator as to whether the provision should be displayed or is in force, i.e. if the status is prospective, then it will not display as in force. Similarly with the status set to repealed, then this will prevent the provision from displaying when viewed from high level
NumberOfProvisions xsd:integer optional
Count of the number of child provisions within the section of content (added automatically when published)
RestrictEndDate xsd:date optional
The date of the next version of the current fragment
RestrictExtent ExtentType optional
The geographic extent to which the provision applies
RestrictStartDate xsd:date optional
The date of the current version of the provision and the amendments applied to it
SchemaVersion restriction of xsd:NMTOKEN 2.2 optional
Status restriction of xsd:token optional
The status of the provision when not in force, i.e. prospective, repealed
Time xsd:time optional
ValidDates DateOrProspectiveListType optional
A space separated sequence of valid dates where the provision is in force
Version xsd:integer optional
The version of the provision in the old SLD (Statute Law Database) system
id restriction of xsd:NCName optional

A unique identifier for the element.

The format of this identifier is yxxxxx where y is a letter and xxxxx is a number, padded to five digits.

Note that most elements that normally have identifiers have a separate, element-specific definition of the id attribute in the schema.

xml:base xs:anyURI optional
Is used to change the base from which relative URLs are calculated. See http://www.w3.org/TR/xmlbase/ for information about this attribute.
xml:lang xs:language optional
Should be used to indicate the main language of the content contained by the element upon which the attribute is appearing. Values should be taken from the ISO 639 standard. This attribute should be used where the language is different from the main language of the document.
xml:space restriction of xs:NCName optional
Is used to indicate whether white space is significant in the contained content and can contain the value ‘default’ or ‘preserve’. For a value of ‘default’, it is left to an application as to how to treat white space.
Identity constraints
QName Type Refer Selector Field(s)
refIncludedDocToResource keyref keyResource .//ukl:Image | .//ukl:LSseal | .//ukl:IncludedDocument @ResourceRef
refCrossrefToFootnote keyref keyFootnote .//ukl:FootnoteRef @Ref
refCrossrefToMarginnote keyref keyMarginnote .//ukl:MarginNoteRef @Ref
refCrossrefToCommentary keyref keyCommentary .//ukl:CommentaryRef @Ref
keyResource key .//ukl:Resource | .//ukl:ResourceGroup | ukl:Resources/ukl:ResourceGroup/ukl:Resource @id
keyCitationRef unique .//ukl:Citation | .//ukl:CitationSubRef @id
keyMarginnote key ukl:MarginNotes/ukl:MarginNote @id
keyFootnote key .//ukl:Footnote @id
keyCommentary key .//ukl:Commentary @id
Instance
<Legislation AltDates="" AltVersionRefs="" xml:base="" BlanketAmendment="" Concurrent="" ConfersPower="" Date="" DocumentURI="" FragmentId="" id="" IdURI="" xml:lang="" Match="" NumberOfProvisions="" RestrictEndDate="" RestrictExtent="" RestrictStartDate="" SchemaVersion="2.2" xml:space="" Status="" Time="" ValidDates="" Version="" xmlns="http://www.legislation.gov.uk/namespaces/legislation" xmlns:ukm="http://www.legislation.gov.uk/namespaces/metadata">
  <ukm:Metadata>{0,1}</ukm:Metadata>
  <Contents AltVersionRefs="" xml:base="" id="" xml:lang="" MatchExtentEntries="" MatchTextEntries="" xml:space="">{1,1}</Contents>
  <Primary AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,1}</Primary>
  <Secondary AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,1}</Secondary>
  <EURetained AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,1}</EURetained>
  <Footnotes AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Footnotes>
  <MarginNotes AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</MarginNotes>
  <Versions AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Versions>
  <Resources AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Resources>
  <Commentaries AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Commentaries>
  <CitationLists>{0,1}</CitationLists>
  <Primary AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,1}</Primary>
  <Secondary AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,1}</Secondary>
  <EURetained AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,1}</EURetained>
  <Footnotes AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Footnotes>
  <MarginNotes AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</MarginNotes>
  <Versions AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Versions>
  <Resources AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Resources>
  <Commentaries AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Commentaries>
  <CitationLists>{0,1}</CitationLists>
</Legislation>
Source
<xsd:element name="Legislation">
  <xsd:annotation>
    <xsd:documentation>The top-level document element for United Kingdom primary and secondary legislation and for EU legislation.</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="ukm:Metadata" minOccurs="0"/>
      <xsd:choice minOccurs="0">
        <xsd:sequence>
          <xsd:element ref="Contents"/>
          <xsd:sequence minOccurs="0">
            <xsd:choice>
              <xsd:element ref="Primary"/>
              <xsd:element ref="Secondary"/>
              <xsd:element ref="EURetained"/>
            </xsd:choice>
            <xsd:element ref="Footnotes" minOccurs="0"/>
            <xsd:element ref="MarginNotes" minOccurs="0"/>
            <xsd:element ref="Versions" minOccurs="0"/>
            <xsd:element ref="Resources" minOccurs="0"/>
            <xsd:element minOccurs="0" ref="Commentaries"/>
            <xsd:element minOccurs="0" ref="CitationLists"/>
          </xsd:sequence>
        </xsd:sequence>
        <xsd:sequence>
          <xsd:choice>
            <xsd:element ref="Primary"/>
            <xsd:element ref="Secondary"/>
            <xsd:element ref="EURetained"/>
          </xsd:choice>
          <xsd:element ref="Footnotes" minOccurs="0"/>
          <xsd:element ref="MarginNotes" minOccurs="0"/>
          <xsd:element ref="Versions" minOccurs="0"/>
          <xsd:element ref="Resources" minOccurs="0"/>
          <xsd:element minOccurs="0" ref="Commentaries"/>
          <xsd:element minOccurs="0" ref="CitationLists"/>
        </xsd:sequence>
      </xsd:choice>
    </xsd:sequence>
    <xsd:attributeGroup ref="CommonAttributes"/>
    <xsd:attributeGroup ref="SchemaVersion"/>
    <xsd:attributeGroup ref="err:ErrorAttributes"/>
    <xsd:attributeGroup ref="FragmentAttributes"/>
    <xsd:attributeGroup ref="OptionalURIs"/>
  </xsd:complexType>
  <xsd:keyref name="refIncludedDocToResource" refer="keyResource">
    <xsd:annotation>
      <xsd:documentation>Ensures that a resource reference has a corresponding resource</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:Image | .//ukl:LSseal | .//ukl:IncludedDocument"/>
    <xsd:field xpath="@ResourceRef"/>
  </xsd:keyref>
  <xsd:keyref name="refCrossrefToFootnote" refer="keyFootnote">
    <xsd:annotation>
      <xsd:documentation>Ensures that a footnote reference has a corresponding footnote</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:FootnoteRef"/>
    <xsd:field xpath="@Ref"/>
  </xsd:keyref>
  <xsd:keyref name="refCrossrefToMarginnote" refer="keyMarginnote">
    <xsd:annotation>
      <xsd:documentation>Ensures that a margin note reference has a corresponding margin note</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:MarginNoteRef"/>
    <xsd:field xpath="@Ref"/>
  </xsd:keyref>
  <xsd:keyref name="refCrossrefToCommentary" refer="keyCommentary">
    <xsd:annotation>
      <xsd:documentation>Ensures that a commentary reference has a corresponding commentary</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:CommentaryRef"/>
    <xsd:field xpath="@Ref"/>
  </xsd:keyref>
  <xsd:key name="keyResource">
    <xsd:annotation>
      <xsd:documentation>Ensures that a resource has an id unique within the document</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:Resource | .//ukl:ResourceGroup  | ukl:Resources/ukl:ResourceGroup/ukl:Resource"/>
    <xsd:field xpath="@id"/>
  </xsd:key>
  <xsd:unique name="keyCitationRef">
    <xsd:annotation>
      <xsd:documentation>Ensures that a citation or citation sub reference has an id unique within the document</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:Citation | .//ukl:CitationSubRef"/>
    <xsd:field xpath="@id"/>
  </xsd:unique>
  <xsd:key name="keyMarginnote">
    <xsd:annotation>
      <xsd:documentation>Ensures that a margin note has an id unique within the document</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath="ukl:MarginNotes/ukl:MarginNote"/>
    <xsd:field xpath="@id"/>
  </xsd:key>
  <xsd:key name="keyFootnote">
    <xsd:annotation>
      <xsd:documentation>Ensures that a footnote has an id unique within the document</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:Footnote"/>
    <xsd:field xpath="@id"/>
  </xsd:key>
  <xsd:key name="keyCommentary">
    <xsd:annotation>
      <xsd:documentation>Ensures that a commentary has an id unique within the document</xsd:documentation>
    </xsd:annotation>
    <xsd:selector xpath=".//ukl:Commentary"/>
    <xsd:field xpath="@id"/>
  </xsd:key>
</xsd:element>