<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" indent="yes"/>

<xsl:template match="dataroot">
    <html>
        <body>
            <table>
                <xsl:apply-templates select="Customers"/>
            </table>
            <table>
                <xsl:apply-templates select="Customers/Orders"/>
            </table>
        </body>
    </html>
</xsl:template>
<xsl:template match="Customers">
    <Customer>
        <CustomerID>
            <xsl:value-of select="CustomerID"/>
        </CustomerID>
        <CompanyName>
            <xsl:value-of select="CompanyName"/>
        </CompanyName>
    </Customer>
</xsl:template>

<xsl:template match="Customers/Orders">
    <Order>
        <OrderID>
            <xsl:value-of select="OrderID"/>
        </OrderID>
        <OrderDate>
            <xsl:value-of select="substring(OrderDate, 1, 10)"/>
        </OrderDate>
        <ShippedDate>
            <xsl:value-of select="substring(ShippedDate, 1, 10)"/>
        </ShippedDate>
        <RequiredDate>
            <xsl:value-of select="substring(RequiredDate, 1, 10)"/>
        </RequiredDate>
        <Freight>
            <xsl:value-of select="format-number(Freight,'####0.00')"/>
        </Freight>
    </Order>
</xsl:template>

</xsl:stylesheet>
