Editorial Update/Lists

From Legislation Community Editorial Wiki
Jump to navigation Jump to search

Editing Ordered and Unordered Lists, for example Definitions

Definitions are often tagged as 'ordered lists' or 'unordered lists'.

However, it is common to find that the amending document, which contains the new entry or sub-provision that needs to be inserted, is tagged as <ukl:P3>:

Definitions tagging in amending documents.png

If this is the case, you won't be able to simply copy the amending text and paste it into the amended document. What you need to do will depend on the existing tagging in the amended document:

  • If the amended provision already contains list tagging: re-use the existing tagging to create the new list entry, and then copy in text from the amending document. For example, if you need to add a new entry (c) to the definition of 'railway company' after the existing entry (b), highlight the <ukl:ListItem> tag for (b), and then paste it directly under (b), after the 'close list item' tag. Then delete the text of (b) to leave the empty 'shell' of the tagging. This is now ready for you to copy your new text into. See below:

UK list item image for xml tagging.png

XMetaL will automatically allocate a new number/letter for the new list entry - in the example above, it has allocated (a). If the automatic allocation isn't correct you can change it by using the Attribute Inspector window to override the auto-numbering. Open the Attribute Inspector and type in the correct number/letter into the 'NumberOveride' cell, see below:

Attribute Inspector image for XML tagging page.png

You can then copy the amending text from the amending document by highlighting the text tags, or just the words if you have created tagging in the amended document, and paste the amending text into the newly created entry, as shown below:

This image shows what to do if you need to highlight text tags:

Inserting lists using existing text tags.png

This image shows what to do if you are simply highlighting the words to copy into tagging you have created in the amended document:

Inserting text once you have created new tags.png

The <addition> tags will appear around the text, with the opening tagging/brackets and F-note reference appearing after the number of the entry. The image below shows you what you should see when you've successfully completed the editorial task, see below:

F note image for new list entry.png


  • If the amended provision does not already contains list tagging, or does not contain list tagging at the level you need: you will need to insert the ukl:OrderedList, ukl:ListItem, ukl:Para tagging from the Insert Element window to create the list tagging for your amendment and then insert the text from the amending provision into this structure. The correct type of list item can be selected in the Attribute Inspector by amending the attributes Type and Decoration.

Tip: If double brackets appear around your list item reference, change the Decoration to 'none' to get single brackets (occasionally the list item reference may already have a bracket and setting the Decoration will result in duplication).

Type: Arabic (1, 2, 3 …)
Roman (i, ii, iii …)
romanUpper (I, II, III …)
alpha (a, b, c …)
alphaUpper (A, B, C …)
Decoration: none
parens ()
parenRight )
brackets []
bracketRight ]
period .
colon :

For example, to insert (aa) and (bb) as a sub-entries within an existing list item (i): in the amended provision place the cursor after the closing ukl:Text tag but before the closing ukl:Para tag of the list item (i). In the list of elements in the Insert Element window double click on ukl:OrderedList then ukl:ListItem and then ukl:Para to insert the opening and closing tags for these elements. Delete the automatically generated ‘Type new ukl:ListItem here’ text and then place the cursor after the opening ukl:OrderedList tag. In the Attribute Inspector window select 'alpha' as the Type and 'parens' as the Decoration: this will automatically change the sub-entry to (a) and you will need to override this to (aa) by typing aa into the NumberOveride cell in the Attribute Inspector. In the amending provision select the ukl:Text opening tag and copy the sub-entry text to be inserted. In the amended provision place the cursor between the opening and closing ukl:Para tags. Select the task in Resource Manager and select Legislation - Textual Amendments - Addition from the toolbar at the top of the page.

The <addition> tags will appear around the text, with the opening tagging/brackets and F-note reference appearing after the number of the entry. This process can then be repeated to insert (bb). The image below shows you what you should see when you've successfully completed the editorial task:

In XMetaL:

Definition.png

On legislation.gov.uk:

Inserting list item aa website.png


Note: if the inserted sub-entry has further sub-sub-entries, place the cursor after the closing ukl:Text tag but before the closing ukl:Para tag of that sub-entry, insert another ordered list and populate as appropriate.

Warning: When you insert a new entry into a list, be sure to check whether you need to use the number override in any subsequent entry numbers in the list (not just in the new entry number you have inserted). Also, before you complete the edit, check that all the entry numbers in the list are correct in the website preview even if the XML looks OK.

Examples of amendments to ordered and unordered lists

Inserting multiple list items as part of the same task

Amended provision in XMetaL:

Inserting multiple list items 1.png

Amended provision website view: Inserting multiple list items 2.png

Repealing a definition

This should be treated as a repeal of words, for example:

Common Update Errors 7.jpg


F11 Words in s. 1(3) repealed (8.11.2006) by Education and Inspections Act 2006 (c. 40), s. 188(1), Sch. 16 para. 1(4)(d), Sch. 18 Pt. 1

Beware of any sub-paragraphs (a), (b) etc within a definition, and make sure after checking back in that any sub-paragraphs have been removed and, if not, check it out again and delete them manually. See Remove sub-paragraphs when a whole definition, which is a list item, is omitted on the Common Update Errors page.

Related Pages