LISTING 2: XSLT to Transform the ADO Persistence Format to XML

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              xmlns:z="#RowsetSchema">
  <xsl:template match="z:row">
    <Customer>
      <CustomerID><xsl:value-of select="@customerid"/></CustomerID>
      <Company><xsl:value-of select="@companyname"/></Company>
      <Contact><xsl:value-of select="@contactname"/></Contact>
    </Customer>
  </xsl:template>

  <xsl:template match="/">
    <root>
      <xsl:apply-templates select="//z:row" />
    </root>
  </xsl:template>
</xsl:stylesheet>