home *** CD-ROM | disk | FTP | other *** search
/ 11 Top Anwendungen / CD_ROM_MAGAZIN.iso / MoneyMethod-Demo / Beispiel / source / XML / trans.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2000-05-29  |  2.4 KB  |  87 lines

  1. <!-- Written by Afonin Evgeny -->
  2.  
  3. <xsl:stylesheet
  4.   version="1.0"
  5.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6.   xmlns:xt="http://www.jclark.com/xt" encoding="ISO-8859-1">
  7. <xsl:output method="html"/>
  8. <xsl:strip-space elements="*"/>
  9.  
  10. <xsl:param name="dest_path"/>
  11. <xsl:param name="res_path"/>
  12. <xsl:param name="preview"/>
  13.  
  14. <xsl:variable name="filepath" select="$dest_path"/>
  15. <xsl:variable name="respath" select="$res_path"/>
  16. <xsl:variable name="preview" select="$preview"/>
  17.  
  18. <xsl:include href="readstyl.xsl"/>
  19. <xsl:include href="lib.xsl"/>
  20. <xsl:include href="card.xsl"/>
  21. <xsl:include href="tabpages.xsl"/>
  22. <xsl:include href="linktabs.xsl"/>
  23. <xsl:include href="tune.xsl"/>
  24. <xsl:include href="maillist.xsl"/>
  25. <xsl:include href="store.xsl"/>
  26. <xsl:include href="catlist.xsl"/>
  27. <xsl:include href="ordlist.xsl"/>
  28. <xsl:include href="confirm.xsl"/>
  29. <xsl:include href="mailform.xsl"/>
  30.  
  31. <xsl:variable name="tabname">table</xsl:variable>
  32.  
  33. <xsl:template match='/'>
  34.  
  35.  
  36. <xsl:if test="$preview != 'yes'">
  37. <xsl:call-template name="makeconfirm"/>
  38. <xsl:call-template name="makeorderlist"/>
  39. <xsl:call-template name="makemailform"/>
  40. </xsl:if>
  41.  
  42. <xsl:call-template name="mainlinktab"/>
  43. <xsl:call-template name="makemaillist"/>
  44. <xsl:call-template name="makestore"/>
  45. <xsl:call-template name="makecatlist"/>
  46.  
  47. <xsl:apply-templates/>
  48.  
  49. </xsl:template>
  50.  
  51. <xsl:template match="table">
  52.      <p align="center">
  53.         <xsl:apply-templates select="tbody"/>
  54.      </p>
  55. </xsl:template>
  56.  
  57. <xsl:template match="tbody">
  58.    <xsl:apply-templates/>
  59. </xsl:template>
  60.  
  61.  
  62. <xsl:template match="category">
  63.  
  64. <xsl:if test="$preview = 'no' or position() = 1">
  65. <xsl:for-each select="row">
  66.   <xsl:if test="$preview = 'no' or position() = 1">
  67.      <xsl:call-template name="card">
  68.        <xsl:with-param name="preview"><xsl:value-of select="$preview"/></xsl:with-param>
  69.        <xsl:with-param name="splitcount"><xsl:value-of select="$rowsperpage"/></xsl:with-param>
  70.      </xsl:call-template>
  71.   </xsl:if>
  72. </xsl:for-each>
  73.  
  74.  
  75. <xsl:call-template name="generate-table-pages">
  76.    <xsl:with-param name="count">1</xsl:with-param>
  77.    <xsl:with-param name="preview"><xsl:value-of select="$preview"/></xsl:with-param>
  78.    <xsl:with-param name="splitcount"><xsl:value-of select="$rowsperpage"/></xsl:with-param>
  79.    <xsl:with-param name="tabnum">1</xsl:with-param>
  80. </xsl:call-template>
  81.  
  82. </xsl:if> <!-- preview -->
  83.  
  84. </xsl:template>
  85.  
  86. </xsl:stylesheet>
  87.