<xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version="1.1">

<!-- ## Include all relevant templates for upgrading from various older formats. ## -->
<xsl:include href="update1.0.xsl"/> 

<xsl:output method="xml" indent="yes"/>
 
<!-- ################################################# -->
<!-- ### This XSLT Stylesheet updates Album Shaper albums ### -->
<!-- ### to the latest XML format.                                       ### -->
<!-- ################################################# -->
<xsl:template match="/">
   
<!-- Apply the appropriate update template -->
<xsl:choose>
  <xsl:when test="not(album/@version)"><xsl:apply-templates mode="update1.0"/></xsl:when>
 <!--  <xsl:when test="album/@version = '1.1'"><xsl:apply-templates mode="update1.1"/></xsl:when> -->
 <!-- If no updates are necessary spit out an Album.updated         -->
 <!-- file to let the C++ code know the iterative process is complete -->
  <xsl:otherwise>
    <xsl:document method="xml" indent="yes" href="{concat($outputPath, '/Album.updated')}">
      XML Updated
    </xsl:document>
  </xsl:otherwise>

</xsl:choose>
   
</xsl:template>
<!-- ####################################### -->

</xsl:stylesheet>
