home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 December / PCWorld_2003-12_cd.bin / Software / komercni / alc / ep2sr51csy.msi / Ep.CAB / repx9 < prev    next >
Extensible Markup Language  |  2002-02-25  |  3KB  |  110 lines

  1. <?xml version='1.0' encoding="windows-1250" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3.  
  4. <xsl:template match="/">
  5. <xsl:choose>
  6. <xsl:when test="/report/node">
  7.     <table width="100%" cellspacing="0" cellpadding="1">
  8.     <tbody>
  9.         <xsl:apply-templates select="/report/node" order-by="proplist/prop[kind='Druh']/value" />
  10.     </tbody>
  11.     </table>
  12. </xsl:when>
  13. <xsl:otherwise>
  14.     Nenφ vybrßn ₧ßdn² objekt.
  15. </xsl:otherwise>
  16. </xsl:choose>
  17. </xsl:template>
  18.  
  19. <xsl:template match="nodelist">
  20.     <table width="100%" cellspacing="0" cellpadding="1">
  21.     <tbody>
  22.         <xsl:apply-templates select="node" order-by="proplist/prop[kind='Druh']/value" />
  23.     </tbody>
  24.     </table>
  25. </xsl:template>
  26.  
  27. <xsl:template match="prop">
  28.     <tr>
  29.         <td>
  30.         <xsl:choose>
  31.         <xsl:when expr="g_BoldProp">
  32.             <b><xsl:value-of select="kind"/>:</b> <xsl:value-of select="value"/>
  33.         </xsl:when>
  34.         <xsl:otherwise>
  35.             <xsl:value-of select="kind"/>: <xsl:value-of select="value"/>
  36.         </xsl:otherwise>
  37.         </xsl:choose>
  38.         </td>
  39.     </tr>
  40. </xsl:template>
  41.  
  42. <xsl:template match="node">
  43.     <tr>
  44.         <td align="right" valign="top">
  45.         <xsl:choose>
  46.             <xsl:when test="nodelist/node">
  47.                 <img id="toggle" onclick="ToggleNextRow(this)" style="cursor:hand"
  48.                   alt="zobrazit/skr²t podobjekty"/>
  49.             </xsl:when>
  50.             <xsl:otherwise>
  51.                       
  52.             </xsl:otherwise>
  53.         </xsl:choose>
  54.         </td>
  55.         <td valign="top" width="100%">
  56.             <xsl:choose>
  57.             <xsl:when test="proplist/prop[own='1' and not(special) and not(objectname)]">
  58.                 <table cellspacing="0" cellpadding="0" bgcolor="#F0F0F0"><tbody>
  59.                     <tr>
  60.                         <td>
  61.                             <b><xsl:value-of select="proplist/prop[kind='Druh']/value"/>:
  62.                             <xsl:value-of select="name"/></b>
  63.                         </td>
  64.                         <td align="right" valign="bottom">
  65.                              
  66.                             <img id="toggleprop" onclick="ToggleProp(this)"
  67.                              style="cursor:hand" alt="zobrazit/skr²t vlastnosti"/>
  68.                         </td>
  69.                     </tr>
  70.                     <tr>
  71.                         <td colspan="2" valign="top">
  72.                             <table width="100%" cellspacing="0" cellpadding="0"><tbody>
  73.                                 <xsl:for-each select="proplist/prop[own='1' and not(special) and not(objectname)]" order-by="kind">
  74.                                     <xsl:apply-templates select="."/>
  75.                                 </xsl:for-each>
  76.                             </tbody></table>
  77.                         </td>
  78.                     </tr>
  79.                 </tbody></table>
  80.             </xsl:when>
  81.             <xsl:otherwise>
  82.                 <table cellspacing="0" cellpadding="0"><tbody>
  83.                     <tr>
  84.                         <td>
  85.                             <b><xsl:value-of select="proplist/prop[kind='Druh']/value"/>:
  86.                             <xsl:value-of select="name"/></b>
  87.                         </td>
  88.                     </tr>
  89.                 </tbody></table>
  90.             </xsl:otherwise>
  91.             </xsl:choose>
  92.         </td>
  93.     </tr>
  94.     <xsl:if test="nodelist/node">
  95.         <tr>
  96.             <td>      </td>
  97.             <td>
  98.                 <xsl:apply-templates select="nodelist"/>
  99.             </td>
  100.         </tr>
  101.     </xsl:if>
  102. </xsl:template>
  103.  
  104. <xsl:script><![CDATA[
  105.  
  106. var g_BoldProp=false;
  107.  
  108. ]]></xsl:script>
  109.  
  110. </xsl:stylesheet>