<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:variable name="z">5</xsl:variable>

<xsl:template match="/">

<html>
<head>
<title></title>

<link rel="stylesheet" type="text/css" href="output.css" title="Style"/>

</head>
<body>

<table class="issuesTableHeader">
<tr><td class="tdLeft"><xsl:value-of select="java/array/void/object/void[@property='header']"/></td></tr>
<tr><td class="tdTitle" colspan="2">課題票一覧</td></tr>
<tr>
<td class="tdLeft">全<xsl:value-of select="java/array/void/object/void[@property='issueNum']"/>件</td>
<td class="tdRight">作成日時:<xsl:value-of select="java/array/void/object/void[@property='nowDate']"/></td>
</tr>
</table>

<table class="issuesTable">

<tr>
<th>種別</th>
<th>課題票ID</th>
<th>タイトル</th>
<th>カテゴリ</th>
<th>優先度</th>
<th>ステータス</th>
<th>担当者</th>
<th>起票日時</th>
</tr>

<xsl:for-each select="java/array/void/object">
<xsl:sort select="void[@property='createDate']" data-type="text" order="descending"/>

<xsl:choose>
<xsl:when test="void[@property='statusValue'] = 5">
	<tr class="issuesTrColor">
	<xsl:if test="void[@property='deadline'] = 0">
		<td class="issuesTdType"></td>
	</xsl:if>
	<xsl:if test="void[@property='deadline'] = 1">
		<td class="issuesTdType"><img src="warning1.gif"></img></td>
	</xsl:if>
	<xsl:if test="void[@property='deadline'] = 2">
		<td class="issuesTdType"><img src="error1.gif"></img></td>
	</xsl:if>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='issueID']"/></td>
	<td class="issuesTdTitle"><xsl:value-of select="void[@property='title']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='category']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='priority']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='status']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='assigned']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='createDate']"/></td>
</tr>
</xsl:when>
<xsl:otherwise>
	<tr>
	<xsl:if test="void[@property='deadline'] = 0">
		<td class="issuesTdType"></td>
	</xsl:if>
	<xsl:if test="void[@property='deadline'] = 1">
		<td class="issuesTdType"><img src="warning1.gif"></img></td>
	</xsl:if>
	<xsl:if test="void[@property='deadline'] = 2">
		<td class="issuesTdType"><img src="error1.gif"></img></td>
	</xsl:if>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='issueID']"/></td>
	<td class="issuesTdTitle"><xsl:value-of select="void[@property='title']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='category']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='priority']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='status']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='assigned']"/></td>
	<td class="issuesTdOther"><xsl:value-of select="void[@property='createDate']"/></td>
</tr>
</xsl:otherwise>
</xsl:choose>

</xsl:for-each>

</table><br></br>

<div class="issuesCase">
<div>凡例</div>
<div><img src="error1.gif"></img>完了期限を過ぎた課題</div>
<div><img src="warning1.gif"></img>完了期限に迫った課題（あと<xsl:value-of select="java/array/void/object/void[@property='limit']"/>日）</div>
</div><br></br>

<hr class="issuesHr"></hr>

<table class="issuesTableHeader">
<tr><td class="tdRight"><xsl:value-of select="java/array/void/object/void[@property='footer']"/></td></tr>
</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet> 