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

  1. <xsl:stylesheet
  2.      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3.      version="1.1">
  4.  
  5. <xsl:output method="xml" indent="yes"/>
  6.  
  7. <!-- ################################################# -->
  8. <!-- ### This XSLT Stylesheet converts Album Shaper albums### -->
  9. <!-- ### from the 1.0 XML format to the 1.1 XML format        ### -->
  10. <!-- ################################################# -->
  11. <xsl:template match="album" mode="update1.0">
  12. <album version="1.1">
  13.   <name><xsl:value-of select="name"/></name>
  14.   <description><xsl:value-of select="description"/></description>
  15.   <author><xsl:value-of select="author"/></author>
  16.   <created><xsl:value-of select="concat(modified/year, ' ', modified/month, ' ', modified/day)"/></created>
  17.   <modified><xsl:value-of select="concat(modified/year, ' ', modified/month, ' ', modified/day)"/></modified>
  18.   <theme>Classic</theme>
  19.   <thumbnailDimensions>200 150</thumbnailDimensions>
  20.   <slideshowDimensions>600 400</slideshowDimensions>
  21.   <xsl:for-each select="subalbum">
  22.   <subalbum>
  23.     <name><xsl:value-of select="name"/></name>
  24.     <description><xsl:value-of select="description"/></description>
  25.     <xsl:for-each select="photo">
  26.     <photo>
  27.       <description><xsl:value-of select="description"/></description>
  28.       <image>
  29.         <md5><xsl:value-of select="imageMD5"/></md5>
  30.       </image>
  31.       <slideshow>
  32.         <md5><xsl:value-of select="slideMD5"/></md5>
  33.       </slideshow>
  34.       <thumb>
  35.         <md5><xsl:value-of select="thumbMD5"/></md5>
  36.       </thumb>
  37.     </photo>
  38.     </xsl:for-each>
  39.   </subalbum>    
  40.   </xsl:for-each>
  41. </album>
  42. </xsl:template>
  43. <!-- ####################################### -->
  44.  
  45. </xsl:stylesheet>
  46.