home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _9FAECE63A86F4C848BD7AE7CB1246F72 < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-03  |  81.4 KB  |  748 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3.     <xsl:template match="/">
  4.         <html>
  5.             <head />
  6.             <body>
  7.                 <xsl:for-each select="expense-report">
  8.                     <table border="0" width="100%">
  9.                         <tbody>
  10.                             <tr>
  11.                                 <td>
  12.                                     <table border="0" width="100%">
  13.                                         <tbody>
  14.                                             <tr>
  15.                                                 <td width="220">
  16.                                                     <img border="0">
  17.                                                         <xsl:attribute name="src"><xsl:text disable-output-escaping="yes">nanonull.gif</xsl:text></xsl:attribute>
  18.                                                     </img>
  19.                                                 </td>
  20.                                                 <td />
  21.                                                 <td colspan="2" />
  22.                                             </tr>
  23.                                             <tr>
  24.                                                 <td align="left" colspan="2" rowspan="2" width="502">
  25.                                                     <span style="font-size:x-large; font-weight:bold; ">Business Expense Report</span>
  26.                                                 </td>
  27.                                                 <td bgcolor="#D2FFFF" colspan="2" valign="bottom">
  28.                                                     <span style="font-size:x-small; font-weight:bold; ">Currency:  </span>
  29.                                                     <span style="font-size:x-small; font-weight:bold; "></span>
  30.                                                     <xsl:for-each select="@currency">
  31.                                                         <input style="font-size:x-small; " type="radio">
  32.                                                             <xsl:choose>
  33.                                                                 <xsl:when test=".='USD'">
  34.                                                                     <xsl:attribute name="checked">1</xsl:attribute>
  35.                                                                 </xsl:when>
  36.                                                             </xsl:choose>
  37.                                                         </input>
  38.                                                         <span style="font-size:x-small; ">Dollars</span>
  39.                                                     </xsl:for-each>
  40.                                                     <span style="font-size:x-small; "> </span>
  41.                                                     <xsl:for-each select="@currency">
  42.                                                         <input style="font-size:x-small; " type="radio">
  43.                                                             <xsl:choose>
  44.                                                                 <xsl:when test=".='Euro'">
  45.                                                                     <xsl:attribute name="checked">1</xsl:attribute>
  46.                                                                 </xsl:when>
  47.                                                             </xsl:choose>
  48.                                                         </input>
  49.                                                         <span style="font-size:x-small; ">Euros</span>
  50.                                                     </xsl:for-each>
  51.                                                     <span style="font-size:x-small; "> </span>
  52.                                                     <xsl:for-each select="@currency">
  53.                                                         <input style="font-size:x-small; " type="radio">
  54.                                                             <xsl:choose>
  55.                                                                 <xsl:when test=".='JPY'">
  56.                                                                     <xsl:attribute name="checked">1</xsl:attribute>
  57.                                                                 </xsl:when>
  58.                                                             </xsl:choose>
  59.                                                         </input>
  60.                                                         <span style="font-size:x-small; ">Yen</span>
  61.                                                     </xsl:for-each>
  62.                                                 </td>
  63.                                             </tr>
  64.                                             <tr>
  65.                                                 <td bgcolor="#D2FFFF" colspan="2" valign="bottom">
  66.                                                     <xsl:for-each select="@detailed">
  67.                                                         <input type="checkbox">
  68.                                                             <xsl:choose>
  69.                                                                 <xsl:when test=".='true'">
  70.                                                                     <xsl:attribute name="checked">1</xsl:attribute>
  71.                                                                 </xsl:when>
  72.                                                                 <xsl:when test=".='1'">
  73.                                                                     <xsl:attribute name="checked">1</xsl:attribute>
  74.                                                                 </xsl:when>
  75.                                                             </xsl:choose>
  76.                                                         </input>
  77.                                                     </xsl:for-each>
  78.                                                     <span style="font-size:x-small; font-weight:bold; ">Detailed report</span>
  79.                                                 </td>
  80.                                             </tr>
  81.                                         </tbody>
  82.                                     </table>
  83.                                     <table border="0" width="100%">
  84.                                         <tbody>
  85.                                             <tr>
  86.                                                 <td>
  87.                                                     <xsl:for-each select="Person">
  88.                                                         <br />
  89.                                                         <table border="0" width="100%">
  90.                                                             <tbody>
  91.                                                                 <tr bgcolor="#D2FFFF">
  92.                                                                     <td style="border-bottom-color:black; border-bottom-style:solid; border-bottom-width:1pt; " align="left" colspan="6">
  93.                                                                         <span style="font-family:Verdana; font-size:medium; ">Employee Information</span>
  94.                                                                     </td>
  95.                                                                 </tr>
  96.                                                                 <tr>
  97.                                                                     <td height="61" rowspan="2" width="66" />
  98.                                                                     <td colspan="2" height="61" width="200">
  99.                                                                         <table border="0" width="400">
  100.                                                                             <tbody>
  101.                                                                                 <tr>
  102.                                                                                     <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " bgcolor="#F3F3F3" width="100">
  103.                                                                                         <xsl:for-each select="First">
  104.                                                                                             <xsl:apply-templates />
  105.                                                                                         </xsl:for-each>
  106.                                                                                     </td>
  107.                                                                                     <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " bgcolor="#F3F3F3" width="200">
  108.                                                                                         <xsl:for-each select="Last">
  109.                                                                                             <xsl:apply-templates />
  110.                                                                                         </xsl:for-each>
  111.                                                                                     </td>
  112.                                                                                 </tr>
  113.                                                                                 <tr>
  114.                                                                                     <td width="133">
  115.                                                                                         <xsl:choose>
  116.                                                                                             <xsl:when test="string-length( First ) > 0">
  117.                                                                                                 <span style="font-size:x-small; font-weight:bold; ">First Name</span>
  118.                                                                                             </xsl:when>
  119.                                                                                             <xsl:otherwise>
  120.                                                                                                 <span style="color:#FF0000; font-size:x-small; font-weight:bold; ">First Name is required</span>
  121.                                                                                             </xsl:otherwise>
  122.                                                                                         </xsl:choose>
  123.                                                                                     </td>
  124.                                                                                     <td>
  125.                                                                                         <xsl:choose>
  126.                                                                                             <xsl:when test="string-length( Last ) > 0">
  127.                                                                                                 <span style="font-size:x-small; font-weight:bold; ">Last Name</span>
  128.                                                                                             </xsl:when>
  129.                                                                                             <xsl:otherwise>
  130.                                                                                                 <span style="color:#FF0000; font-size:x-small; font-weight:bold; ">Last Name is required</span>
  131.                                                                                             </xsl:otherwise>
  132.                                                                                         </xsl:choose>
  133.                                                                                     </td>
  134.                                                                                 </tr>
  135.                                                                             </tbody>
  136.                                                                         </table>
  137.                                                                     </td>
  138.                                                                     <td colspan="2" height="61">
  139.                                                                         <table border="0" width="250">
  140.                                                                             <tbody>
  141.                                                                                 <tr>
  142.                                                                                     <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " bgcolor="#F3F3F3" width="200">
  143.                                                                                         <xsl:for-each select="Title">
  144.                                                                                             <xsl:apply-templates />
  145.                                                                                         </xsl:for-each>
  146.                                                                                     </td>
  147.                                                                                 </tr>
  148.                                                                                 <tr>
  149.                                                                                     <td width="200">
  150.                                                                                         <span style="font-size:x-small; font-weight:bold; ">Title</span>
  151.                                                                                     </td>
  152.                                                                                 </tr>
  153.                                                                             </tbody>
  154.                                                                         </table>
  155.                                                                     </td>
  156.                                                                     <td height="61" width="500" />
  157.                                                                 </tr>
  158.                                                                 <tr>
  159.                                                                     <td colspan="2" height="61" width="200">
  160.                                                                         <table border="0" width="400">
  161.                                                                             <tbody>
  162.                                                                                 <tr>
  163.                                                                                     <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " bgcolor="#F3F3F3" width="200">
  164.                                                                                         <xsl:for-each select="Email">
  165.                                                                                             <xsl:apply-templates />
  166.                                                                                         </xsl:for-each>
  167.                                                                                     </td>
  168.                                                                                 </tr>
  169.                                                                                 <tr>
  170.                                                                                     <td>
  171.                                                                                         <xsl:choose>
  172.                                                                                             <xsl:when test="string-length( Email ) > 0">
  173.                                                                                                 <span style="font-size:x-small; font-weight:bold; ">E-Mail</span>
  174.                                                                                             </xsl:when>
  175.                                                                                             <xsl:otherwise>
  176.                                                                                                 <span style="color:#FF0000; font-size:x-small; font-weight:bold; ">E-Mail is required</span>
  177.                                                                                             </xsl:otherwise>
  178.                                                                                         </xsl:choose>
  179.                                                                                     </td>
  180.                                                                                 </tr>
  181.                                                                             </tbody>
  182.                                                                         </table>
  183.                                                                     </td>
  184.                                                                     <td colspan="2" height="61">
  185.                                                                         <table border="0" width="250">
  186.                                                                             <tbody>
  187.                                                                                 <tr>
  188.                                                                                     <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " bgcolor="#F3F3F3" width="200">
  189.                                                                                         <xsl:for-each select="Phone">
  190.                                                                                             <xsl:apply-templates />
  191.                                                                                         </xsl:for-each>
  192.                                                                                     </td>
  193.                                                                                 </tr>
  194.                                                                                 <tr>
  195.                                                                                     <td>
  196.                                                                                         <span style="font-size:x-small; font-weight:bold; ">Phone</span>
  197.                                                                                     </td>
  198.                                                                                 </tr>
  199.                                                                             </tbody>
  200.                                                                         </table>
  201.                                                                     </td>
  202.                                                                     <td height="61" width="500" />
  203.                                                                 </tr>
  204.                                                             </tbody>
  205.                                                         </table>
  206.                                                     </xsl:for-each>
  207.                                                 </td>
  208.                                             </tr>
  209.                                             <tr>
  210.                                                 <td>
  211.                                                     <table border="0" width="100%">
  212.                                                         <tbody>
  213.                                                             <tr>
  214.                                                                 <td style="border-bottom-color:black; border-bottom-style:solid; border-bottom-width:1pt; " bgcolor="#D2FFFF">
  215.                                                                     <span style="font-family:Verdana; font-size:medium; ">Expense List</span>
  216.                                                                 </td>
  217.                                                             </tr>
  218.                                                         </tbody>
  219.                                                     </table>
  220.                                                     <xsl:choose>
  221.                                                         <xsl:when test="contains( @detailed  , "true")">
  222.                                                             <xsl:for-each select="expense-item">
  223.                                                                 <xsl:if test="position()=1">
  224.                                                                     <table border="0" width="100%">
  225.                                                                         <thead>
  226.                                                                             <tr bgcolor="#C0C0C0">
  227.                                                                                 <td bgcolor="white" width="66" />
  228.                                                                                 <td width="110">
  229.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Type</span>
  230.                                                                                 </td>
  231.                                                                                 <td width="122">
  232.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Expense To</span>
  233.                                                                                 </td>
  234.                                                                                 <td width="130">
  235.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Date </span>
  236.                                                                                     <span style="font-size:x-small; font-style:italic; font-weight:bold; ">(yyyy-mm-dd)</span>
  237.                                                                                 </td>
  238.                                                                                 <td width="150">
  239.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Expense</span>
  240.                                                                                 </td>
  241.                                                                                 <td>
  242.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Details</span>
  243.                                                                                 </td>
  244.                                                                                 <td width="205">
  245.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Description</span>
  246.                                                                                 </td>
  247.                                                                             </tr>
  248.                                                                         </thead>
  249.                                                                         <tbody>
  250.                                                                             <xsl:for-each select="../expense-item">
  251.                                                                                 <tr bgcolor="#E0E0E0">
  252.                                                                                     <td bgcolor="white" height="29" width="66" />
  253.                                                                                     <td height="29" width="110">
  254.                                                                                         <xsl:for-each select="@type">
  255.                                                                                             <select size="0">
  256.                                                                                                 <option value="Meal">
  257.                                                                                                     <xsl:if test=".='Meal'">
  258.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  259.                                                                                                     </xsl:if>Meal</option>
  260.                                                                                                 <option value="Lodging">
  261.                                                                                                     <xsl:if test=".='Lodging'">
  262.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  263.                                                                                                     </xsl:if>Lodging</option>
  264.                                                                                                 <option value="Travel">
  265.                                                                                                     <xsl:if test=".='Travel'">
  266.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  267.                                                                                                     </xsl:if>Travel</option>
  268.                                                                                                 <option value="Parking">
  269.                                                                                                     <xsl:if test=".='Parking'">
  270.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  271.                                                                                                     </xsl:if>Parking</option>
  272.                                                                                                 <option value="Entertainment">
  273.                                                                                                     <xsl:if test=".='Entertainment'">
  274.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  275.                                                                                                     </xsl:if>Entertainment</option>
  276.                                                                                                 <option value="Misc">
  277.                                                                                                     <xsl:if test=".='Misc'">
  278.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  279.                                                                                                     </xsl:if>Misc</option>
  280.                                                                                             </select>
  281.                                                                                         </xsl:for-each>
  282.                                                                                     </td>
  283.                                                                                     <td height="29" width="122">
  284.                                                                                         <xsl:for-each select="@expto">
  285.                                                                                             <select size="0">
  286.                                                                                                 <option value="Development">
  287.                                                                                                     <xsl:if test=".='Development'">
  288.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  289.                                                                                                     </xsl:if>Development</option>
  290.                                                                                                 <option value="Marketing">
  291.                                                                                                     <xsl:if test=".='Marketing'">
  292.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  293.                                                                                                     </xsl:if>Marketing</option>
  294.                                                                                                 <option value="Accounting">
  295.                                                                                                     <xsl:if test=".='Accounting'">
  296.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  297.                                                                                                     </xsl:if>Accounting</option>
  298.                                                                                                 <option value="Sales">
  299.                                                                                                     <xsl:if test=".='Sales'">
  300.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  301.                                                                                                     </xsl:if>Sales</option>
  302.                                                                                                 <option value="Operations">
  303.                                                                                                     <xsl:if test=".='Operations'">
  304.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  305.                                                                                                     </xsl:if>Operations</option>
  306.                                                                                                 <option value="Support">
  307.                                                                                                     <xsl:if test=".='Support'">
  308.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  309.                                                                                                     </xsl:if>Support</option>
  310.                                                                                                 <option value="IT">
  311.                                                                                                     <xsl:if test=".='IT'">
  312.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  313.                                                                                                     </xsl:if>IT</option>
  314.                                                                                             </select>
  315.                                                                                         </xsl:for-each>
  316.                                                                                     </td>
  317.                                                                                     <td height="29" width="130">
  318.                                                                                         <xsl:for-each select="Date">
  319.                                                                                             <xsl:apply-templates />
  320.                                                                                         </xsl:for-each>
  321.                                                                                     </td>
  322.                                                                                     <td align="right" height="29" width="150">
  323.                                                                                         <table border="0" width="100%">
  324.                                                                                             <tbody>
  325.                                                                                                 <tr>
  326.                                                                                                     <td align="left">
  327.                                                                                                         <xsl:for-each select="expense">
  328.                                                                                                             <xsl:apply-templates />
  329.                                                                                                         </xsl:for-each>
  330.                                                                                                     </td>
  331.                                                                                                     <td align="right">
  332.                                                                                                         <xsl:choose>
  333.                                                                                                             <xsl:when test=" /expense-report/@currency  = "USD"">
  334.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">$</span>
  335.                                                                                                             </xsl:when>
  336.                                                                                                             <xsl:when test=" /expense-report/@currency  = "UKP"">
  337.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">┬ú</span>
  338.                                                                                                             </xsl:when>
  339.                                                                                                             <xsl:when test=" /expense-report/@currency  = "Euro"">
  340.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">Γé¼</span>
  341.                                                                                                             </xsl:when>
  342.                                                                                                             <xsl:when test=" /expense-report/@currency = "JPY"">
  343.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">┬Ñ</span>
  344.                                                                                                             </xsl:when>
  345.                                                                                                             <xsl:when test=" /expense-report/@currency = "AUD"">
  346.                                                                                                                 <span style="font-family:Verdana; font-size:x-small; font-weight:bold; ">AU</span>
  347.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">$</span>
  348.                                                                                                             </xsl:when>
  349.                                                                                                         </xsl:choose>
  350.                                                                                                     </td>
  351.                                                                                                 </tr>
  352.                                                                                             </tbody>
  353.                                                                                         </table>
  354.                                                                                     </td>
  355.                                                                                     <td align="right">
  356.                                                                                         <xsl:choose>
  357.                                                                                             <xsl:when test=" @type  = "Meal"">
  358.                                                                                                 <xsl:for-each select="Meal">
  359.                                                                                                     <xsl:for-each select="@mealtype">Meal Type: <select size="0">
  360.                                                                                                             <option value="dinner">
  361.                                                                                                                 <xsl:if test=".='dinner'">
  362.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  363.                                                                                                                 </xsl:if>dinner</option>
  364.                                                                                                             <option value="breakfast">
  365.                                                                                                                 <xsl:if test=".='breakfast'">
  366.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  367.                                                                                                                 </xsl:if>breakfast</option>
  368.                                                                                                             <option value="lunch">
  369.                                                                                                                 <xsl:if test=".='lunch'">
  370.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  371.                                                                                                                 </xsl:if>lunch</option>
  372.                                                                                                             <option value="other">
  373.                                                                                                                 <xsl:if test=".='other'">
  374.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  375.                                                                                                                 </xsl:if>other</option>
  376.                                                                                                         </select>
  377.                                                                                                         <br />
  378.                                                                                                     </xsl:for-each>
  379.                                                                                                     <xsl:for-each select="Location">Location: <input value="">
  380.                                                                                                             <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  381.                                                                                                         </input>
  382.                                                                                                     </xsl:for-each>
  383.                                                                                                 </xsl:for-each>
  384.                                                                                             </xsl:when>
  385.                                                                                             <xsl:when test=" @type  = "Lodging"">
  386.                                                                                                 <xsl:for-each select="Lodging">
  387.                                                                                                     <xsl:for-each select="Name">Lodging Name: <input value="">
  388.                                                                                                             <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  389.                                                                                                         </input>
  390.                                                                                                         <br />
  391.                                                                                                     </xsl:for-each>
  392.                                                                                                     <xsl:for-each select="Location">Location: <input value="">
  393.                                                                                                             <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  394.                                                                                                         </input>
  395.                                                                                                     </xsl:for-each>
  396.                                                                                                 </xsl:for-each>
  397.                                                                                             </xsl:when>
  398.                                                                                             <xsl:when test=" @type  = "Travel"">
  399.                                                                                                 <xsl:for-each select="Travel">
  400.                                                                                                     <xsl:for-each select="@means">Means: <select size="0">
  401.                                                                                                             <option value="Taxi">
  402.                                                                                                                 <xsl:if test=".='Taxi'">
  403.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  404.                                                                                                                 </xsl:if>Taxi</option>
  405.                                                                                                             <option value="CharterAir">
  406.                                                                                                                 <xsl:if test=".='CharterAir'">
  407.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  408.                                                                                                                 </xsl:if>CharterAir</option>
  409.                                                                                                             <option value="Airline">
  410.                                                                                                                 <xsl:if test=".='Airline'">
  411.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  412.                                                                                                                 </xsl:if>Airline</option>
  413.                                                                                                             <option value="Limo">
  414.                                                                                                                 <xsl:if test=".='Limo'">
  415.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  416.                                                                                                                 </xsl:if>Limo</option>
  417.                                                                                                             <option value="CharterSea">
  418.                                                                                                                 <xsl:if test=".='CharterSea'">
  419.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  420.                                                                                                                 </xsl:if>CharterSea</option>
  421.                                                                                                             <option value="Rail">
  422.                                                                                                                 <xsl:if test=".='Rail'">
  423.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  424.                                                                                                                 </xsl:if>Rail</option>
  425.                                                                                                             <option value="CharterLand">
  426.                                                                                                                 <xsl:if test=".='CharterLand'">
  427.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  428.                                                                                                                 </xsl:if>CharterLand</option>
  429.                                                                                                             <option value="Bus">
  430.                                                                                                                 <xsl:if test=".='Bus'">
  431.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  432.                                                                                                                 </xsl:if>Bus</option>
  433.                                                                                                         </select>
  434.                                                                                                         <br />
  435.                                                                                                     </xsl:for-each>
  436.                                                                                                     <xsl:for-each select="Destination">Destination: <input value="">
  437.                                                                                                             <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  438.                                                                                                         </input>
  439.                                                                                                         <br />
  440.                                                                                                     </xsl:for-each>
  441.                                                                                                     <xsl:choose>
  442.                                                                                                         <xsl:when test=" @means = "Taxi"">
  443.                                                                                                             <xsl:for-each select="Mileage">Mileage: <input value="">
  444.                                                                                                                     <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  445.                                                                                                                 </input>
  446.                                                                                                             </xsl:for-each>
  447.                                                                                                         </xsl:when>
  448.                                                                                                         <xsl:when test=" @means  = "Limo"">
  449.                                                                                                             <xsl:for-each select="Mileage">
  450.                                                                                                                 <input value="">
  451.                                                                                                                     <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  452.                                                                                                                 </input>
  453.                                                                                                             </xsl:for-each>
  454.                                                                                                         </xsl:when>
  455.                                                                                                     </xsl:choose>
  456.                                                                                                 </xsl:for-each>
  457.                                                                                             </xsl:when>
  458.                                                                                             <xsl:when test=" @type  = "Parking"">
  459.                                                                                                 <xsl:for-each select="Parking">
  460.                                                                                                     <xsl:for-each select="Location">Location: <input value="">
  461.                                                                                                             <xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
  462.                                                                                                         </input>
  463.                                                                                                     </xsl:for-each>
  464.                                                                                                 </xsl:for-each>
  465.                                                                                             </xsl:when>
  466.                                                                                             <xsl:when test=" @type = "Entertainment"">
  467.                                                                                                 <xsl:for-each select="Entertainment">
  468.                                                                                                     <xsl:if test="position()=1">
  469.                                                                                                         <table border="0">
  470.                                                                                                             <thead>
  471.                                                                                                                 <tr>
  472.                                                                                                                     <td style="border-bottom-color:black; border-bottom-style:solid; border-bottom-width:thin; " align="center">Client-name</td>
  473.                                                                                                                 </tr>
  474.                                                                                                             </thead>
  475.                                                                                                             <tbody>
  476.                                                                                                                 <xsl:for-each select="../Entertainment">
  477.                                                                                                                     <tr>
  478.                                                                                                                         <td bgcolor="#F3F3F3">
  479.                                                                                                                             <xsl:for-each select="Client-name">
  480.                                                                                                                                 <xsl:apply-templates />
  481.                                                                                                                             </xsl:for-each>
  482.                                                                                                                         </td>
  483.                                                                                                                     </tr>
  484.                                                                                                                 </xsl:for-each>
  485.                                                                                                             </tbody>
  486.                                                                                                         </table>
  487.                                                                                                     </xsl:if>
  488.                                                                                                 </xsl:for-each>
  489.                                                                                             </xsl:when>
  490.                                                                                             <xsl:when test="@type = "Misc"">
  491.                                                                                                 <xsl:for-each select="Misc">
  492.                                                                                                     <xsl:for-each select="@misctype">Misc. Type: <select size="0">
  493.                                                                                                             <option value="TeamBuilding">
  494.                                                                                                                 <xsl:if test=".='TeamBuilding'">
  495.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  496.                                                                                                                 </xsl:if>TeamBuilding</option>
  497.                                                                                                             <option value="Tips">
  498.                                                                                                                 <xsl:if test=".='Tips'">
  499.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  500.                                                                                                                 </xsl:if>Tips</option>
  501.                                                                                                             <option value="Fines">
  502.                                                                                                                 <xsl:if test=".='Fines'">
  503.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  504.                                                                                                                 </xsl:if>Fines</option>
  505.                                                                                                             <option value="Rental">
  506.                                                                                                                 <xsl:if test=".='Rental'">
  507.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  508.                                                                                                                 </xsl:if>Rental</option>
  509.                                                                                                             <option value="EverythingElse">
  510.                                                                                                                 <xsl:if test=".='EverythingElse'">
  511.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  512.                                                                                                                 </xsl:if>EverythingElse</option>
  513.                                                                                                             <option value="Tolls">
  514.                                                                                                                 <xsl:if test=".='Tolls'">
  515.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  516.                                                                                                                 </xsl:if>Tolls</option>
  517.                                                                                                             <option value="Telephone">
  518.                                                                                                                 <xsl:if test=".='Telephone'">
  519.                                                                                                                     <xsl:attribute name="selected">1</xsl:attribute>
  520.                                                                                                                 </xsl:if>Telephone</option>
  521.                                                                                                         </select>
  522.                                                                                                     </xsl:for-each>
  523.                                                                                                 </xsl:for-each>
  524.                                                                                             </xsl:when>
  525.                                                                                         </xsl:choose>
  526.                                                                                     </td>
  527.                                                                                     <td height="29" width="205">
  528.                                                                                         <xsl:for-each select="description">
  529.                                                                                             <div>
  530.                                                                                                 <xsl:apply-templates />
  531.                                                                                             </div>
  532.                                                                                         </xsl:for-each>
  533.                                                                                     </td>
  534.                                                                                 </tr>
  535.                                                                             </xsl:for-each>
  536.                                                                         </tbody>
  537.                                                                     </table>
  538.                                                                 </xsl:if>
  539.                                                             </xsl:for-each>
  540.                                                         </xsl:when>
  541.                                                         <xsl:otherwise>
  542.                                                             <xsl:for-each select="expense-item">
  543.                                                                 <xsl:if test="position()=1">
  544.                                                                     <table border="0">
  545.                                                                         <thead>
  546.                                                                             <tr bgcolor="#C0C0C0">
  547.                                                                                 <td bgcolor="white" width="66" />
  548.                                                                                 <td width="110">
  549.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Type</span>
  550.                                                                                 </td>
  551.                                                                                 <td width="122">
  552.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Expense To</span>
  553.                                                                                 </td>
  554.                                                                                 <td width="130">
  555.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Date </span>
  556.                                                                                     <span style="font-size:x-small; font-style:italic; font-weight:bold; ">(yyyy-mm-dd)</span>
  557.                                                                                 </td>
  558.                                                                                 <td width="150">
  559.                                                                                     <span style="font-size:x-small; font-weight:bold; ">Expense</span>
  560.                                                                                 </td>
  561.                                                                             </tr>
  562.                                                                         </thead>
  563.                                                                         <tbody>
  564.                                                                             <xsl:for-each select="../expense-item">
  565.                                                                                 <tr bgcolor="#E0E0E0">
  566.                                                                                     <td bgcolor="white" height="29" width="66" />
  567.                                                                                     <td height="29" width="110">
  568.                                                                                         <xsl:for-each select="@type">
  569.                                                                                             <select size="0">
  570.                                                                                                 <option value="Meal">
  571.                                                                                                     <xsl:if test=".='Meal'">
  572.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  573.                                                                                                     </xsl:if>Meal</option>
  574.                                                                                                 <option value="Lodging">
  575.                                                                                                     <xsl:if test=".='Lodging'">
  576.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  577.                                                                                                     </xsl:if>Lodging</option>
  578.                                                                                                 <option value="Travel">
  579.                                                                                                     <xsl:if test=".='Travel'">
  580.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  581.                                                                                                     </xsl:if>Travel</option>
  582.                                                                                                 <option value="Parking">
  583.                                                                                                     <xsl:if test=".='Parking'">
  584.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  585.                                                                                                     </xsl:if>Parking</option>
  586.                                                                                                 <option value="Entertainment">
  587.                                                                                                     <xsl:if test=".='Entertainment'">
  588.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  589.                                                                                                     </xsl:if>Entertainment</option>
  590.                                                                                                 <option value="Misc">
  591.                                                                                                     <xsl:if test=".='Misc'">
  592.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  593.                                                                                                     </xsl:if>Misc</option>
  594.                                                                                             </select>
  595.                                                                                         </xsl:for-each>
  596.                                                                                     </td>
  597.                                                                                     <td height="29" width="122">
  598.                                                                                         <xsl:for-each select="@expto">
  599.                                                                                             <select size="0">
  600.                                                                                                 <option value="Development">
  601.                                                                                                     <xsl:if test=".='Development'">
  602.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  603.                                                                                                     </xsl:if>Development</option>
  604.                                                                                                 <option value="Marketing">
  605.                                                                                                     <xsl:if test=".='Marketing'">
  606.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  607.                                                                                                     </xsl:if>Marketing</option>
  608.                                                                                                 <option value="Accounting">
  609.                                                                                                     <xsl:if test=".='Accounting'">
  610.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  611.                                                                                                     </xsl:if>Accounting</option>
  612.                                                                                                 <option value="Sales">
  613.                                                                                                     <xsl:if test=".='Sales'">
  614.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  615.                                                                                                     </xsl:if>Sales</option>
  616.                                                                                                 <option value="Operations">
  617.                                                                                                     <xsl:if test=".='Operations'">
  618.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  619.                                                                                                     </xsl:if>Operations</option>
  620.                                                                                                 <option value="Support">
  621.                                                                                                     <xsl:if test=".='Support'">
  622.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  623.                                                                                                     </xsl:if>Support</option>
  624.                                                                                                 <option value="IT">
  625.                                                                                                     <xsl:if test=".='IT'">
  626.                                                                                                         <xsl:attribute name="selected">1</xsl:attribute>
  627.                                                                                                     </xsl:if>IT</option>
  628.                                                                                             </select>
  629.                                                                                         </xsl:for-each>
  630.                                                                                     </td>
  631.                                                                                     <td height="29" width="130">
  632.                                                                                         <xsl:for-each select="Date">
  633.                                                                                             <xsl:apply-templates />
  634.                                                                                         </xsl:for-each>
  635.                                                                                     </td>
  636.                                                                                     <td align="right" height="29" width="150">
  637.                                                                                         <table border="0" width="100%">
  638.                                                                                             <tbody>
  639.                                                                                                 <tr>
  640.                                                                                                     <td align="left">
  641.                                                                                                         <xsl:for-each select="expense">
  642.                                                                                                             <xsl:apply-templates />
  643.                                                                                                         </xsl:for-each>
  644.                                                                                                     </td>
  645.                                                                                                     <td align="right">
  646.                                                                                                         <xsl:choose>
  647.                                                                                                             <xsl:when test=" /expense-report/@currency  = "USD"">
  648.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">$</span>
  649.                                                                                                             </xsl:when>
  650.                                                                                                             <xsl:when test=" /expense-report/@currency  = "UKP"">
  651.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">┬ú</span>
  652.                                                                                                             </xsl:when>
  653.                                                                                                             <xsl:when test=" /expense-report/@currency  = "Euro"">
  654.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">Γé¼</span>
  655.                                                                                                             </xsl:when>
  656.                                                                                                             <xsl:when test=" /expense-report/@currency = "JPY"">
  657.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">┬Ñ</span>
  658.                                                                                                             </xsl:when>
  659.                                                                                                             <xsl:when test=" /expense-report/@currency = "AUD"">
  660.                                                                                                                 <span style="font-family:Verdana; font-size:x-small; font-weight:bold; ">AU</span>
  661.                                                                                                                 <span style="font-family:Verdana; font-weight:bold; ">$</span>
  662.                                                                                                             </xsl:when>
  663.                                                                                                         </xsl:choose>
  664.                                                                                                     </td>
  665.                                                                                                 </tr>
  666.                                                                                             </tbody>
  667.                                                                                         </table>
  668.                                                                                     </td>
  669.                                                                                 </tr>
  670.                                                                             </xsl:for-each>
  671.                                                                         </tbody>
  672.                                                                     </table>
  673.                                                                 </xsl:if>
  674.                                                             </xsl:for-each>
  675.                                                         </xsl:otherwise>
  676.                                                     </xsl:choose>
  677.                                                 </td>
  678.                                             </tr>
  679.                                         </tbody>
  680.                                     </table>
  681.                                     <xsl:choose>
  682.                                         <xsl:when test="sum(/expense-report/expense-item/expense)>100">
  683.                                             <table border="0" width="100%">
  684.                                                 <tbody>
  685.                                                     <tr>
  686.                                                         <td align="left" colspan="2" width="153">
  687.                                                             <span style="font-size:x-small; ">This expense report has exceeded </span>
  688.                                                             <span style="font-size:x-small; font-weight:bold; ">100</span>
  689.                                                             <span style="font-size:x-small; "> </span>
  690.                                                             <xsl:for-each select="@currency">
  691.                                                                 <span style="font-size:x-small; ">
  692.                                                                     <xsl:value-of select="." />
  693.                                                                 </span>
  694.                                                             </xsl:for-each>
  695.                                                             <span style="font-size:x-small; "> which under corporate policy requires approval of you direct superior.  All forms must be presented in triplicate and be sumitted to the human resouces department server in its current XML form.</span>
  696.                                                         </td>
  697.                                                     </tr>
  698.                                                     <tr>
  699.                                                         <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " height="101" valign="bottom" width="153">
  700.                                                             <table border="0" width="100%">
  701.                                                                 <tbody>
  702.                                                                     <tr>
  703.                                                                         <td />
  704.                                                                     </tr>
  705.                                                                     <tr>
  706.                                                                         <td>Date</td>
  707.                                                                     </tr>
  708.                                                                 </tbody>
  709.                                                             </table>
  710.                                                         </td>
  711.                                                         <td style="border-color:#D3D3D3; border-style:solid; border-width:1pt; " height="101" valign="bottom">
  712.                                                             <table border="0" width="100%">
  713.                                                                 <tbody>
  714.                                                                     <tr>
  715.                                                                         <td />
  716.                                                                     </tr>
  717.                                                                     <tr>
  718.                                                                         <td>Signature</td>
  719.                                                                     </tr>
  720.                                                                 </tbody>
  721.                                                             </table>
  722.                                                         </td>
  723.                                                     </tr>
  724.                                                 </tbody>
  725.                                             </table>
  726.                                         </xsl:when>
  727.                                         <xsl:otherwise />
  728.                                     </xsl:choose>
  729.                                 </td>
  730.                             </tr>
  731.                         </tbody>
  732.                     </table>
  733.                 </xsl:for-each>
  734.             </body>
  735.         </html>
  736.     </xsl:template>
  737.     <xsl:template match="italic">
  738.         <span style="font-style:italic; ">
  739.             <xsl:apply-templates />
  740.         </span>
  741.     </xsl:template>
  742.     <xsl:template match="strong">
  743.         <span style="font-weight:bold; ">
  744.             <xsl:apply-templates />
  745.         </span>
  746.     </xsl:template>
  747. </xsl:stylesheet>
  748.