pdf: 600KB - Potsdam Institute for Climate Impact Research
pdf: 600KB - Potsdam Institute for Climate Impact Research
pdf: 600KB - Potsdam Institute for Climate Impact Research
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
81<br />
<br />
bank vole<br />
Clethrionomys glareolus<br />
hedgerows<br />
berries<br />
nuts<br />
seeds<br />
<br />
This is rather close to the way that the in<strong>for</strong>mation would be structured in a database. In fact,<br />
there are proposals <strong>for</strong> representing relational database in<strong>for</strong>mation in XML, and conversely most<br />
XML structured documents can be expressed in a relational database <strong>for</strong>mat. However, XML<br />
provides rather more flexibility than standard relational databases.<br />
A2.2 XSLT<br />
XSLT - the eXtensible Stylesheet Language <strong>for</strong> Trans<strong>for</strong>mations - is a standard <strong>for</strong> defining<br />
trans<strong>for</strong>mations on XML documents. What this actually means is best illustrated by an example.<br />
Take the species description given immediately above, and now consider this as part of a<br />
catalogue of species. The following box gives a small but complete XML document <strong>for</strong> two<br />
species:<br />
<br />
<br />
<br />
bank vole<br />
Clethrionomys glareolus<br />
hedgerows<br />
berries<br />
nuts<br />
seeds<br />
<br />
<br />
wood mouse<br />
Apodemus sylvaticus<br />
woodland<br />
berries<br />
nuts<br />
seeds<br />
insects<br />
<br />
<br />
Now let us say that we would like to display in<strong>for</strong>mation on the habitat of each species inside your<br />
web browser using the following HTML:<br />
<br />
<br />
<br />
The bank vole lives in hedgerows.<br />
The wood mouse lives in woodlands.<br />
<br />
<br />
When you view this HTML in your browser, you will see: