home *** CD-ROM | disk | FTP | other *** search
/ Mikrobitti Huvi & Hyöty 2007 / MBHH07.iso / Internet / Muut / Asenna / Album_Shaper_Windows.exe / xmlConversion / update.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-10-07  |  1.2 KB  |  34 lines

  1. <xsl:stylesheet
  2.      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3.      version="1.1">
  4.  
  5. <!-- ## Include all relevant templates for upgrading from various older formats. ## -->
  6. <xsl:include href="update1.0.xsl"/> 
  7.  
  8. <xsl:output method="xml" indent="yes"/>
  9.  
  10. <!-- ################################################# -->
  11. <!-- ### This XSLT Stylesheet updates Album Shaper albums ### -->
  12. <!-- ### to the latest XML format.                                       ### -->
  13. <!-- ################################################# -->
  14. <xsl:template match="/">
  15.    
  16. <!-- Apply the appropriate update template -->
  17. <xsl:choose>
  18.   <xsl:when test="not(album/@version)"><xsl:apply-templates mode="update1.0"/></xsl:when>
  19.  <!--  <xsl:when test="album/@version = '1.1'"><xsl:apply-templates mode="update1.1"/></xsl:when> -->
  20.  <!-- If no updates are necessary spit out an Album.updated         -->
  21.  <!-- file to let the C++ code know the iterative process is complete -->
  22.   <xsl:otherwise>
  23.     <xsl:document method="xml" indent="yes" href="{concat($outputPath, '/Album.updated')}">
  24.       XML Updated
  25.     </xsl:document>
  26.   </xsl:otherwise>
  27.  
  28. </xsl:choose>
  29.    
  30. </xsl:template>
  31. <!-- ####################################### -->
  32.  
  33. </xsl:stylesheet>
  34.