Showing:

Annotations
Attributes
Diagrams
Facets
Instances
Model
Properties
Source
Used by
Included schema schemaFormula.xsd
Namespace http://www.legislation.gov.uk/namespaces/legislation
Annotations
Describes display equations
Properties
attribute form default unqualified
element form default qualified
version 2.5
Element Formula
Namespace http://www.legislation.gov.uk/namespaces/legislation
Annotations
Allows for a mathematical formula to be inserted with the content described using MathML2.
Diagram
DiagramschemaLegislationCommonAttributes_xsd.tmp#CommonSubAttributesschemaFormula_xsd.tmp#Formula_IDschemaFormatting_xsd.tmp#CommonFormattingAttributesschemaFormula_xsd.tmp#Formula_equationNumberschemaChanges_xsd.tmp#SubstitutionschemaChanges_xsd.tmp#AdditionschemaChanges_xsd.tmp#Repealmath_xsd.tmp#mathschemaFormula_xsd.tmp#Where
Properties
content complex
Used by
Model
Children Addition, Repeal, Substitution, Where, equationNumber, math
Attributes
QName Type Use Annotation
Align restriction of xsd:string optional

Describes horizontal alignment with permissible values of:

  • inherit (the alignment is inherited from the parent element)
  • left
  • centre
  • right
  • justify (the entire paragraph is justified. Note that the last line is not force-justified. The decision on whether the last line should be is left to the implementation).
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
ID restriction of xsd:ID optional
A unique identifier in the format x00000
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.
Instance
<Formula Align="" AltVersionRefs="" xml:base="" ID="" xml:lang="" xml:space="" xmlns="http://www.legislation.gov.uk/namespaces/legislation" xmlns:math="http://www.w3.org/1998/Math/MathML">
  <equationNumber>{0,1}</equationNumber>
  <Substitution AltVersionRefs="" xml:base="" ChangeId="" CommentaryRef="" Correction="false" Extent="" id="" xml:lang="" Mark="" Prospective="false" xml:space="" Status="">{1,1}</Substitution>
  <Addition AltVersionRefs="" xml:base="" ChangeId="" CommentaryRef="" Correction="false" Extent="" id="" xml:lang="" Mark="" Prospective="false" xml:space="" Status="">{1,1}</Addition>
  <Repeal AltVersionRefs="" xml:base="" ChangeId="" CommentaryRef="" Correction="false" Extent="" id="" xml:lang="" Mark="" Prospective="false" RetainText="" xml:space="" Status="" SubstitutionRef="">{1,1}</Repeal>
  <math:math altimg="" alttext="" baseline="" class="" display="inline" height="" xlink:href="" id="" macros="" name="" overflow="scroll" style="" type="" width="" xref="">{1,1}</math:math>
  <Where Align="" AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{0,1}</Where>
</Formula>
Source
<xsd:element name="Formula">
  <xsd:annotation>
    <xsd:documentation>Allows for a mathematical formula to be inserted with the content described using MathML2.</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="equationNumber" minOccurs="0" type="BasicStringStructure">
        <xsd:annotation>
          <xsd:documentation>The equation number (the need for this is very rare)</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:choice minOccurs="1" maxOccurs="unbounded">
        <xsd:element ref="Substitution"/>
        <xsd:element ref="Addition"/>
        <xsd:element ref="Repeal"/>
        <xsd:element ref="math:math"/>
      </xsd:choice>
      <xsd:element ref="Where" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attributeGroup ref="CommonSubAttributes"/>
    <xsd:attribute name="ID">
      <xsd:annotation>
        <xsd:documentation>A unique identifier in the format x00000</xsd:documentation>
      </xsd:annotation>
      <xsd:simpleType>
        <xsd:restriction base="xsd:ID">
          <xsd:pattern value="x[0-9]{5}"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attributeGroup ref="CommonFormattingAttributes"/>
  </xsd:complexType>
</xsd:element>
Element Formula / equationNumber
Namespace http://www.legislation.gov.uk/namespaces/legislation
Annotations
The equation number (the need for this is very rare)
Diagram
DiagramschemaCommonElements_xsd.tmp#CharacterschemaDerivedTypes_xsd.tmp#BasicStringStructure
Properties
content complex
minOccurs 0
mixed true
Model
Children Character
Instance
<equationNumber xmlns="http://www.legislation.gov.uk/namespaces/legislation">
  <Character Name="">{1,1}</Character>
</equationNumber>
Source
<xsd:element name="equationNumber" minOccurs="0" type="BasicStringStructure">
  <xsd:annotation>
    <xsd:documentation>The equation number (the need for this is very rare)</xsd:documentation>
  </xsd:annotation>
</xsd:element>
Element Where
Namespace http://www.legislation.gov.uk/namespaces/legislation
Annotations
Explains the nomenclature used in the formula
Diagram
DiagramschemaLegislationCommonAttributes_xsd.tmp#CommonAttributesschemaFormatting_xsd.tmp#CommonFormattingAttributesschemaLists_xsd.tmp#KeyListschemaLists_xsd.tmp#UnorderedListschemaCommonElements_xsd.tmp#Para
Properties
content complex
Used by
Element Formula
Model
Children KeyList, Para, UnorderedList
Attributes
QName Type Use Annotation
Align restriction of xsd:string optional

Describes horizontal alignment with permissible values of:

  • inherit (the alignment is inherited from the parent element)
  • left
  • centre
  • right
  • justify (the entire paragraph is justified. Note that the last line is not force-justified. The decision on whether the last line should be is left to the implementation).
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
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.
Instance
<Where Align="" AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="" xmlns="http://www.legislation.gov.uk/namespaces/legislation">
  <KeyList AltVersionRefs="" xml:base="" id="" xml:lang="" Separator="" xml:space="">{1,1}</KeyList>
  <UnorderedList AltVersionRefs="" xml:base="" Class="" Decoration="" id="" xml:lang="" xml:space="">{1,1}</UnorderedList>
  <Para Align="" AltVersionRefs="" xml:base="" id="" xml:lang="" xml:space="">{1,unbounded}</Para>
</Where>
Source
<xsd:element name="Where">
  <xsd:annotation>
    <xsd:documentation>Explains the nomenclature used in the formula</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:choice>
      <xsd:element ref="KeyList"/>
      <xsd:element ref="UnorderedList"/>
      <xsd:element ref="Para" maxOccurs="unbounded"/>
    </xsd:choice>
    <xsd:attributeGroup ref="CommonAttributes"/>
    <xsd:attributeGroup ref="CommonFormattingAttributes"/>
  </xsd:complexType>
</xsd:element>
Attribute Formula / @ID
Namespace No namespace
Annotations
A unique identifier in the format x00000
Properties
content simple
Facets
pattern (\i\c*) & ([\i-[:]][\c-[:]]*) & (x[0-9]{5})
Used by
Element Formula
Source
<xsd:attribute name="ID">
  <xsd:annotation>
    <xsd:documentation>A unique identifier in the format x00000</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:ID">
      <xsd:pattern value="x[0-9]{5}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:attribute>