Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.   <xsl:template match="/">
  4.     <html>
  5.     <body>
  6.       <h2>Horas proyectadas</h2>
  7.       <table cellspacing="0" cellpadding="3">
  8.         <xsl:for-each select="datas/LabWorkShiftDailyPlan-jitrixArray">
  9.           <tr >
  10.             <xsl:for-each select="*">
  11.               <xsl:if test="position() != 1">
  12.                 <td style="border: 1px solid black">
  13.                   <xsl:choose>
  14.                     <xsl:when test="string(number(.)) != 'NaN'">
  15.                       <xsl:value-of select="format-number(., '0.00')" />
  16.                     </xsl:when>
  17.                     <xsl:otherwise>
  18.                       <xsl:value-of select="." />
  19.                     </xsl:otherwise>
  20.                   </xsl:choose>
  21.                 </td>
  22.               </xsl:if>
  23.             </xsl:for-each>
  24.           </tr>
  25.         </xsl:for-each>
  26.       </table>
  27.     </body>
  28.   </html>
  29. </xsl:template>
  30. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement