Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <html>
- <body>
- <h2>Horas proyectadas</h2>
- <table cellspacing="0" cellpadding="3">
- <xsl:for-each select="datas/LabWorkShiftDailyPlan-jitrixArray">
- <tr >
- <xsl:for-each select="*">
- <xsl:if test="position() != 1">
- <td style="border: 1px solid black">
- <xsl:choose>
- <xsl:when test="string(number(.)) != 'NaN'">
- <xsl:value-of select="format-number(., '0.00')" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="." />
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement