<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="common.xsl" />
<xsl:template match="root">
<p>The XML document contains the following line items:</p>
<table>
<tr>
<th>Item name</th>
<th>Item value</th>
</tr>
<xsl:apply-templates select="line" />
</table>
<xsl:for-each select="child::body"><xsl:call-template name="copyRich" /></xsl:for-each>
</xsl:template>
<xsl:template match="root" mode="title"><xsl:value-of select="@title" /></xsl:template>
<xsl:template match="line">
<tr>
<td><xsl:value-of select="text()" /></td>
<td><xsl:value-of select="@value" /></td>
</tr>
</xsl:template>
</xsl:stylesheet>