| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> |
|---|
| 3 | <xsl:stylesheet |
|---|
| 4 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 5 | version="1.0"> |
|---|
| 6 | |
|---|
| 7 | <xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml-declaration="yes"/> |
|---|
| 8 | |
|---|
| 9 | <!-- Match the root of the XML render the three views --> |
|---|
| 10 | <xsl:template match="/"> |
|---|
| 11 | <entry> |
|---|
| 12 | <body> |
|---|
| 13 | <xsl:for-each select="/clientsplugin/milestones/milestone"> |
|---|
| 14 | <xsl:variable name="milestone"><xsl:value-of select="./name" /></xsl:variable> |
|---|
| 15 | <fieldset style="border: 1px solid #333; margin: 0.3em; margin-top: 1em;"> |
|---|
| 16 | <legend style="margin-left: 2em; padding: 3px;">Release: <xsl:value-of select="$milestone" /></legend> |
|---|
| 17 | <div style="margin: 1em 1em 0;"> |
|---|
| 18 | <xsl:if test="./description != ''"> |
|---|
| 19 | <p><xsl:value-of select="./description" /></p> |
|---|
| 20 | </xsl:if> |
|---|
| 21 | <p><b>Expected Due Date:</b> <xsl:value-of select="./due" /></p> |
|---|
| 22 | </div> |
|---|
| 23 | |
|---|
| 24 | <table style="border-collapse:collapse; width:100%"> |
|---|
| 25 | <tr> |
|---|
| 26 | <th></th> |
|---|
| 27 | <th style="text-align:center;" >Estimated Hours</th> |
|---|
| 28 | <th style="text-align:center;" >Hours Worked</th> |
|---|
| 29 | <th style="text-align:center;" >Status</th> |
|---|
| 30 | </tr> |
|---|
| 31 | <xsl:for-each select="/clientsplugin/summary/ticket/milestone[.=$milestone]/.."> |
|---|
| 32 | <tr style="<xsl:if test="position() mod 2 = 0">background-color: #B6E3EC</xsl:if>"> |
|---|
| 33 | <td style="padding:5px;"> |
|---|
| 34 | <xsl:value-of select="./summary" /> |
|---|
| 35 | </td> |
|---|
| 36 | <td style="text-align:center;padding:5px;" > |
|---|
| 37 | <xsl:value-of select="./estimatedhours" /> |
|---|
| 38 | </td> |
|---|
| 39 | <td style="text-align:center;padding: 5px;" > |
|---|
| 40 | <xsl:value-of select="./totalhours" /> |
|---|
| 41 | </td> |
|---|
| 42 | <td style="text-align:center;padding: 5px;" > |
|---|
| 43 | <xsl:value-of select="./status" /> |
|---|
| 44 | </td> |
|---|
| 45 | </tr> |
|---|
| 46 | </xsl:for-each> |
|---|
| 47 | </table> |
|---|
| 48 | </fieldset> |
|---|
| 49 | </xsl:for-each> |
|---|
| 50 | </body> |
|---|
| 51 | </entry> |
|---|
| 52 | </xsl:template> |
|---|
| 53 | </xsl:stylesheet> |
|---|