Quick introduction to XML for Lawmaker users
Legislative drafting, amending and publishing programme
Topics
Introduction
Introduction
?
What You See Is What You Get
What is XML?
What is XML?
<chapter>
<num>Chapter 1</num>
<heading>Interpretation</heading>
<article>
<heading>Meaning of “XML”</heading>
<num>1</num>
<content>
<p>”XML” means eXtensible Markup Lanuage.</p>
</content>
</article>
</chapter>
Tags, elements, text and attributes
Examples of elements
<heading id=“head1”>Meaning of “XML”</heading>
Start tag
End tag
Attribute
Text
<heading id=“head1”>Meaning of “<acronym>XML</acronym>”</heading>
Why does this matter for Lawmaker?
?
Expression Identifier
?
Globally unique identifier
XML is like a family tree
XML is like a family tree cont.
A good way to visualise and describe an XML document is to think of it like a family tree.
Bill
Front cover
Body
Section
Subsection
Subsection
Paragraph
Paragraph
Paragraph
Subsection
Section
Subsection
Subsection
Click to see relationships
Two subsections in a section are siblings of one another
A subsection is a child of its parent section
In this diagram, the root element is the Bill element
The following slides contain more detailed example tree diagrams for SIs and Bills.
Example SI tree diagram
SI
Preface
Banner
Year/num
Subjects
Titles
Dates
Preamble
Enacting words
Body
Part
Number
Heading
Chapter
Regulation
Regulation
Regulation
Chapter
Part
Signatures
Schedules
Schedule
Schedule
Conclusions
Explanatory note
Commencement history
Example SI tree diagram: regulation
Regulation
Heading
Num
Paragraph
Num
Content
Text
table
Paragraph
Num
Opening words
Subparagraph
Num
Content
Text
Subparagraph
Paragraph
Definition
Definition
Lawmaker vs. word processors
XML: provisions contain provisions
Word: all paragraphs are siblings of one another
Why does the tree structure matter in Lawmaker?
<Part>
<num>Part 1</num>
<heading>Part Heading</heading>
<regulation></regulation>
<regulation></regulation>
</Part>
Akoma Ntoso, schemas & validation
Akoma Ntoso and XML schemas
?
“Linked hearts” in the Akan language of West Africa
Validation
Type of validation
Related training videos
Reviewing and validating your SI/SSI
Creating an SI/SSI and drafting provisions
The end!