IT Services



OUCS Web XML: demonstrations/samples


Contents



1. RSS

<p>
<xptr 
type="transclude" 
url="http://www.oucs.ox.ac.uk/rsscache/news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" 
rend="rss"/>
        </p>
'Invisible' poor children let downEducation watchdog Ofsted says poor children are now let down by schools in rural areas, leafy suburbs and deprived coastal towns - not the inner cities.
NHS 'cover-up' unacceptable - HuntThere should be "no hiding place" for anyone involved in a cover-up by England's NHS regulator after baby deaths at a Cumbria hospital, the health secretary says.
Sopranos actor James Gandolfini diesJames Gandolfini, the US actor best known for his role as the mob boss in The Sopranos, has died, HBO television network tells the BBC.
Government leads new GM crops pushEnvironment Secretary Owen Paterson is set to reopen the debate about genetic modification by calling for the reform of crop licensing at EU level.
Royal baby's gender to be 'surprise'The Duke and Duchess of Cambridge do not know the gender of their baby, it is revealed - as it is confirmed the birth will take place at St Mary's hospital in London.
Lloyds to return to private handsGeorge Osborne uses his annual Mansion House speech to announce the government is preparing to sell its stake in Lloyds Bank back to private investors.
Police 'hold too many mentally ill'Too many mentally ill people are being held in police cells, say four watchdog bodies.
Work Programme 'not doing enough'Providers of the government's flagship Work Programme tell ministers the costs of helping sick and disabled jobseekers into employment cannot be met under the scheme.
Obama calls for nuclear arsenal cutsSpeaking at Berlin's Brandenburg Gate, President Barack Obama calls for reductions to be made in US and Russian nuclear stockpiles.
Kerry calls Karzai to defuse tensionThe US Secretary of State John Kerry calls the Afghan leader to defuse tension over the opening of a Taliban office, an Afghan official tells the BBC.
<p>
<xptr 
type="transclude" 
url="http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" 
rend="rssbrief"/>
        </p>
'Invisible' poor children let down
NHS 'cover-up' unacceptable - Hunt
Sopranos actor James Gandolfini dies
Government leads new GM crops push
Royal baby's gender to be 'surprise'
Lloyds to return to private hands
Police 'hold too many mentally ill'
Work Programme 'not doing enough'
Obama calls for nuclear arsenal cuts
Kerry calls Karzai to defuse tension
<p>
<xptr 
type="transclude" 
url="http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" 
rend="rssnoimage"/>
        </p>
'Invisible' poor children let downEducation watchdog Ofsted says poor children are now let down by schools in rural areas, leafy suburbs and deprived coastal towns - not the inner cities.
NHS 'cover-up' unacceptable - HuntThere should be "no hiding place" for anyone involved in a cover-up by England's NHS regulator after baby deaths at a Cumbria hospital, the health secretary says.
Sopranos actor James Gandolfini diesJames Gandolfini, the US actor best known for his role as the mob boss in The Sopranos, has died, HBO television network tells the BBC.
Government leads new GM crops pushEnvironment Secretary Owen Paterson is set to reopen the debate about genetic modification by calling for the reform of crop licensing at EU level.
Royal baby's gender to be 'surprise'The Duke and Duchess of Cambridge do not know the gender of their baby, it is revealed - as it is confirmed the birth will take place at St Mary's hospital in London.
Lloyds to return to private handsGeorge Osborne uses his annual Mansion House speech to announce the government is preparing to sell its stake in Lloyds Bank back to private investors.
Police 'hold too many mentally ill'Too many mentally ill people are being held in police cells, say four watchdog bodies.
Work Programme 'not doing enough'Providers of the government's flagship Work Programme tell ministers the costs of helping sick and disabled jobseekers into employment cannot be met under the scheme.
Obama calls for nuclear arsenal cutsSpeaking at Berlin's Brandenburg Gate, President Barack Obama calls for reductions to be made in US and Russian nuclear stockpiles.
Kerry calls Karzai to defuse tensionThe US Secretary of State John Kerry calls the Afghan leader to defuse tension over the opening of a Taliban office, an Afghan official tells the BBC.
<p>
<xptr 
type="transclude" 
url="http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" 
rend="rss rsslimit-2"/>
        </p>
'Invisible' poor children let downEducation watchdog Ofsted says poor children are now let down by schools in rural areas, leafy suburbs and deprived coastal towns - not the inner cities.
NHS 'cover-up' unacceptable - HuntThere should be "no hiding place" for anyone involved in a cover-up by England's NHS regulator after baby deaths at a Cumbria hospital, the health secretary says.


2. Entities and XIncludes

Entities: at the top of the file

<!DOCTYPE TEI.2 [
<!ENTITY ThisYear "2009">
]>
and then
<p>We'll party like it's &ThisYear;</p>

We'll party like it's 2009

XInclude: In a separate file called ‘disclaimer.xml’, we write

<p>Usual disclaimers apply.</p>
and then say
<include
	xmlns="http://www.w3.org/2001/XInclude"
	href="disclaimer.xml"/>
noting that the included file must be well-formed XML (ie have a single root element).

Usual disclaimers apply

Partial XInclude:

<include xmlns="http://www.w3.org/2001/XInclude" href="strings.xml#xpointer(//seg[@n='thisYear'])"/>
2009

Using PI:

<?string thisYear?>



3. Tables

 <p>
<table frame="border">
<head>table shows the rise and fall of mortality. Using frame="border"</head>
<row role='label'>
         <cell/><cell cols="3">years</cell></row>
<row role='label'>
         <cell/><cell>2006</cell><cell>2007</cell><cell>2008</cell></row>
<row><cell role='label'>St. Leonard's, Shoreditch</cell>
         <cell>64</cell> <cell>84</cell> <cell>119</cell></row>
<row><cell role='label'>St. Botolph's, Bishopsgate</cell>
         <cell>65</cell> <cell>105</cell> <cell>116</cell></row>
<row><cell role='label'>St. Giles's, Cripplegate</cell>
         <cell>213</cell> <cell>421</cell> <cell>554</cell></row>
</table>
</p>
Table 1. table shows the rise and fall of mortality. Using frame="border"
years
200620072008
St. Leonard's, Shoreditch 64 84 119
St. Botolph's, Bishopsgate 65 105 116
St. Giles's, Cripplegate 213 421 554
<p>
<table border="3">
<head>table shows the rise and fall of mortality.  Using border="3"</head>
<row role='label'>
         <cell/><cell cols="3">years</cell></row>
<row role='label'>
         <cell/><cell>2006</cell><cell>2007</cell><cell>2008</cell></row>
<row><cell role='label'>St. Leonard's, Shoreditch</cell>
         <cell>64</cell> <cell>84</cell> <cell>119</cell></row>
<row><cell role='label'>St. Botolph's, Bishopsgate</cell>
         <cell>65</cell> <cell>105</cell> <cell>116</cell></row>
<row><cell role='label'>St. Giles's, Cripplegate</cell>
         <cell>213</cell> <cell>421</cell> <cell>554</cell></row>
</table>
</p>
Table 2. table shows the rise and fall of mortality. Using border="3"
years
200620072008
St. Leonard's, Shoreditch 64 84 119
St. Botolph's, Bishopsgate 65 105 116
St. Giles's, Cripplegate 213 421 554
<p>
<table border="20">
<head>table shows the rise and fall of mortality.  Using border="20"</head>
<row role='label'>
    <cell/><cell cols="3">years</cell></row>
<row role='label'>
         <cell/><cell>2006</cell><cell>2007</cell><cell>2008</cell></row>
<row><cell role='label'>St. Leonard's, Shoreditch</cell>
         <cell align="right">64</cell> <cell align="right">84</cell> <cell align="right">119</cell></row>
<row><cell role='label'>St. Botolph's, Bishopsgate</cell>
         <cell align="right">65</cell> <cell align="right">105</cell> <cell align="right">116</cell></row>
<row><cell role='label'>St. Giles's, Cripplegate</cell>
         <cell align="right">213</cell> <cell align="right">421</cell> <cell align="right">554</cell></row>
</table>
</p>
Table 3. table shows the rise and fall of mortality. Using border="20"
years
200620072008
St. Leonard's, Shoreditch 64 84 119
St. Botolph's, Bishopsgate 65 105 116
St. Giles's, Cripplegate 213 421 554


4. RSS from blogs.oucs.ox.ac.uk