• No results found

Article

In document A XML standard for information (sider 37-42)

4.2 Description of information

4.2.1 Article

There are different types of articles; the one described here is based on the scientific article type. Through the programming of the examples it was dis-covered that it is difficult to know every type of element that could be useful.

Therefore this is only a suggestion of how an article could be structured.

An article contains a set of different items. Usually they have a title, an author(s), a date, an abstract, some sections and last a list of references. These different parts could also be broken into smaller entities. The authors have a name and perhaps email address. The date is build up by the year, the month, the day and maybe the hour and minute. The abstract and the sections usu-ally have a title and can contain text, tables, lists, pictures and formulas. The reference list usually contain the number used to refer to, the authors, title of the work and year.

Figure 4.1 shows an example of how an article is build up using the XML

tag should occur in the meta parent or <references ><the type of reference >.

Some tags can occur multiple times and some not, this is because some tags does not make sense to occur multiple times, for example the title tag.

When creating the example for article subsection and subsubsection was overlooked in order to first get the basics up and running. It was later skipped because the display code would need to be rewritten. A finalized standard would contain these and probably others. Mathematical expressions was also not included, as it would be too time consuming to find a good structure to store it in and how to display it.

Table 4.1: The different possible elements currently imple-mented.

Element tag Description Allowed in

<article> The type of the information It is the first and last

el-ement.

<meta> Meta data about the article <article>

<title> A title <meta>, <article

name=”name”>,<book name=”name”>and

<picture

name=”name”>.

<authors> The author(s) of the article <meta>, <article

name=”name”>and

<name> Contains the name of a

per-son

<person>

<first> The first name of a person <name>

<last> The last name of a person <name>

<email> An email for the person <person>

<phone> A phone number for the

per-son

<year> The year of the date, or range

of years when used for copy-right information

<date>and

<copy-right>

<month> The month of the date <date>

<day> The day of the date <date>

<hour> The hour of the date <date>

<min> The minute of the date <date>

Table 4.1 – Continued

<holder> The holder of the copyright <copyright>

<references> Contains information about

<volume> The volume of the journal or

book

<article

name=”name”>and

<book

name=”name”>

<number> The issue number of the

jour-nal or book

<article

name=”name”>and

<book

name=”name”>

<pages> Pages which are referred to <article

name=”name”>and

<abstract> The abstract of the article <content>

<text> Contains text <abstract>,

<para-graph>and

<para-graph name=”name”>

Table 4.1 – Continued

Element tag Description Allowed in

<picture

name=”name”>

Contains information about a picture

<abstract>,

<para-graph>and <para-graph name=”name”>

<description> Description of the picture <picture

name=”name”>

<source> The url for the picture <picture

name=”name”>

<list> Contains list items <abstract>,

<para-graph>and <para-graph name=”name”>

<li> A list item <list>

<table> Contains rows <abstract>,

<para-graph>and <para-graph name=”name”>

<row> Contains columns <table>

<col> The column in a row <row>

<section

name=”name”>

A section <content>

<paragraph> A paragraph <section

name=”name”>

<paragraph name=”name”>

A paragraph with a name <section

name=”name”>

<?xml version="1.0"?>

<article>

<meta>

<title>Title of the article</title>

<authors>

<person>

Information about author one.

</person>

<person>

Information about author two.

</person>

</authors>

<date>

<year>2011</year>

<month>5</month>

</date>

</meta>

<references>

<article name="an_article_to_refer_to">

<title>Title of referred paper</title>

<authors>

</authors>

</article>

</references>

<content>

<abstract>

<text>

Some text in the abstract.

</text>

</abstract>

<section name="Section one">

<paragraph>

<list>

<li>Item one on the list</li>

</list>

</paragraph>

</section>

<section name="Section two">

</section>

</content>

</article>

Figure 4.1: Here is an example of meta information in an article file

In document A XML standard for information (sider 37-42)