- From: CVS User fsasaki <cvsmail@w3.org>
- Date: Sun, 20 Jan 2013 19:08:23 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt In directory gil:/tmp/cvs-serv11933/tools/xslt Modified Files: disco-for-its20.xsl Log Message: small update to comments handling --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/disco-for-its20.xsl 2013/01/11 08:36:42 1.15 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/disco-for-its20.xsl 2013/01/20 19:08:23 1.16 @@ -7,7 +7,7 @@ <xsl:variable name="stage">Last Call</xsl:variable> <xsl:variable name="productnum">6</xsl:variable> <xsl:variable name="commentsPeriodStartDate" as="xs:date">2012-12-06</xsl:variable> - <xsl:variable name="commentsPeriodEndDate" as="xs:date">2013-01-18</xsl:variable> + <xsl:variable name="commentsPeriodEndDate" as="xs:date">2013-01-19</xsl:variable> <xsl:preserve-space elements="*"/> <xsl:output method="xhtml" encoding="utf-8" indent="yes" @@ -19,14 +19,13 @@ select="database/issues/issue[product=$productnum and xs:date(created) >= $commentsPeriodStartDate and xs:date(created) <= $commentsPeriodEndDate]"/> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> - <meta http-equiv="content-type" content= - "text/html; charset=utf-8" /> + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title><xsl:copy-of select="$worktitle"/> Disposition of <xsl:copy-of select="$stage"/> Comments</title> <style type="text/css"> table.overview tr {background: #ddd;} *.description { border-width:1px; border-style:solid; border-color:blue; padding:2.5em; text-align:justify; width: 100%; } table.issues-table {empty-cells: show;} - *.unknown {color: red;} </style> + *.unknown {color: red;} *.duplicate { color: grey; text-decoration: line-through}</style> </head> <body> <div class="head"> @@ -42,8 +41,8 @@ >MultilingualWeb-LT Working Group</a> addressed the comments submitted during the <a href="{$draftURI}"><xsl:copy-of select="$worktitle" /><xsl:text> </xsl:text><xsl:copy-of select="$stage"/></a> period, - starting <xsl:value-of select="$commentsPeriodStartDate"/> and ending (after extension) - <xsl:value-of select="$commentsPeriodEndDate"/>.</p> + starting <xsl:value-of select="$commentsPeriodStartDate"/> and ending (after + extension) <xsl:value-of select="$commentsPeriodEndDate"/>.</p> <p>Please send detailed comments on this document to <a href="mailto:public-multilingualweb-lt-comments@w3.org" @@ -58,12 +57,15 @@ <h2>Summary</h2> <p>Total number of comments: <xsl:value-of select="count($comments)"/>.</p> + <xsl:variable name="duplicate" + select="$comments[notes/note[contains(description,'DUPLICATE-OF:')]]"/> + <p>Duplicates: <xsl:value-of select="count($duplicate)"/>.</p> <xsl:variable name="acceptedIssues" select="$comments[contains(substring-after(notes/note[contains(description,'RESOLUTION:')][last()]/description,'RESOLUTION:'),'accepted')]"/> <xsl:variable name="rejectedIssues" select="$comments[contains(substring-after(notes/note[contains(description,'RESOLUTION:')][last()]/description,'RESOLUTION:'),'rejected')]"/> <xsl:variable name="wgDecisionUnknown" - select="($comments except $acceptedIssues) except $rejectedIssues"/> + select="($comments except $acceptedIssues except $duplicate) except $rejectedIssues"/> <xsl:variable name="reviewerSatisfied" select="$comments[contains(substring-after(notes/note[contains(description,'COMMENTER-RESPONSE:')][last()]/description,'COMMENTER-RESPONSE:'),' satisfied')]"/> <xsl:variable name="reviewerNotSatisfied" @@ -106,14 +108,27 @@ <li> <xsl:text>Accepted issues: </xsl:text> <xsl:for-each select="$acceptedIssues"> - <a href="{concat('#issue-',id)}"><xsl:value-of select="concat('issue-',id)"/></a> + <a href="{concat('#issue-',id)}"> + <xsl:value-of select="concat('issue-',id)"/> + </a> <xsl:text> </xsl:text> </xsl:for-each> </li> <li> <xsl:text>Rejected issues: </xsl:text> <xsl:for-each select="$rejectedIssues"> - <a href="{concat('#issue-',id)}"><xsl:value-of select="concat('issue-',id)"/></a> + <a href="{concat('#issue-',id)}"> + <xsl:value-of select="concat('issue-',id)"/> + </a> + <xsl:text> </xsl:text> + </xsl:for-each> + </li> + <li> + <xsl:text>Duplicates: </xsl:text> + <xsl:for-each select="$duplicate"> + <a href="{concat('#issue-',id)}"> + <xsl:value-of select="concat('issue-',id)"/> + </a> <xsl:text> </xsl:text> </xsl:for-each> </li> @@ -127,70 +142,96 @@ <th>Change type<br/>("editorial" or "substantive" or "none")</th> <th>Decision details</th> </tr> - <xsl:for-each select="$comments"> - <xsl:variable name="resolution" - select="substring-after(notes/note[contains(description,'RESOLUTION:')][last()]/description,'RESOLUTION:')"/> - <xsl:variable name="commentors-response" - select="substring-after(notes/note[contains(description,'COMMENTER-RESPONSE:')][last()]/description,'COMMENTER-RESPONSE:')"/> - <xsl:variable name="change-type" - select="substring-after(notes/note[contains(description,'CHANGE-TYPE:')][last()]/description,'CHANGE-TYPE:')"/> - <xsl:variable name="decision-details" select="substring-after(notes/note[contains(description,'DECISION-DETAILS:')][last()]/description,'DECISION-DETAILS:')"/> - <tr> - <td> - <a - href="{concat('https://www.w3.org/International/multilingualweb/lt/track/issues/',id)}"> - <xsl:attribute name="id">issue-<xsl:value-of select="id" - /></xsl:attribute> - <xsl:value-of select="concat('issue-',id)"/></a>: <xsl:value-of - select="title"/> - </td> - <td> - <xsl:value-of select="created"/> - </td> - <td> - <xsl:choose> - <xsl:when test="contains($resolution,'accepted')" - >accepted</xsl:when> - <xsl:when test="contains($resolution,'rejected')" - >rejected</xsl:when> - <xsl:otherwise> - <span class="unknown">unknown</span> - </xsl:otherwise> - </xsl:choose> - </td> - <td> - <xsl:choose> - <xsl:when test="contains($commentors-response,'unsatisfied')" - >unsatisfied</xsl:when> - <xsl:when test="contains($commentors-response,' satisfied')" - >satisfied</xsl:when> - <xsl:otherwise> - <span class="unknown">unknown</span> - </xsl:otherwise> - </xsl:choose> - </td> - <td> - <xsl:choose> - <xsl:when test="contains($change-type,'editorial')" - >editorial</xsl:when> - <xsl:when test="contains($change-type,'substantive')" - >substantive</xsl:when> - <xsl:when test="contains($change-type,'none')">none</xsl:when> - <xsl:otherwise> - <span class="unknown">unknown</span> - </xsl:otherwise> - </xsl:choose> - </td> - <td> - <xsl:choose> - <xsl:when test="$decision-details"><xsl:value-of select="$decision-details"></xsl:value-of></xsl:when> - <xsl:otherwise>-</xsl:otherwise> - </xsl:choose> - </td> - </tr> - </xsl:for-each> + <xsl:apply-templates select="$comments"/> </table> </body> </html> </xsl:template> + <xsl:template match="issue[contains(notes,'DUPLICATE-OF:')]"> + <xsl:variable name="mainIssue" + select="translate(substring-after(notes/note[contains(description,'DUPLICATE-OF:')][last()]/description,'DUPLICATE-OF:'),' ','')"/> + <tr class="duplicate"> + <td> + <a + href="{concat('https://www.w3.org/International/multilingualweb/lt/track/issues/',id)}"> + <xsl:attribute name="id">issue-<xsl:value-of select="id"/></xsl:attribute> + <xsl:value-of select="concat('issue-',id)"/></a>: <xsl:value-of select="title"/> + </td> + <td> + <xsl:value-of select="created"/> + </td> + <td>n/a</td> + <td>n/a</td> + <td>n/a</td> + <td>Duplicate of <a href="{concat('#',$mainIssue)}"><xsl:value-of select="$mainIssue" + /></a></td> + </tr> + </xsl:template> + <xsl:template match="issue"> + <xsl:variable name="resolution" + select="substring-after(notes/note[contains(description,'RESOLUTION:')][last()]/description,'RESOLUTION:')"/> + <xsl:variable name="commentors-response" + select="substring-after(notes/note[contains(description,'COMMENTER-RESPONSE:')][last()]/description,'COMMENTER-RESPONSE:')"/> + <xsl:variable name="change-type" + select="substring-after(notes/note[contains(description,'CHANGE-TYPE:')][last()]/description,'CHANGE-TYPE:')"/> + <xsl:variable name="decision-details" + select="substring-after(notes/note[contains(description,'DECISION-DETAILS:')][last()]/description,'DECISION-DETAILS:')"/> + <xsl:variable name="relatedComments" select="notes/note[contains(description,'RELATED-COMMENT:')]"></xsl:variable> + <tr> + <td> + <a + href="{concat('https://www.w3.org/International/multilingualweb/lt/track/issues/',id)}"> + <xsl:attribute name="id">issue-<xsl:value-of select="id"/></xsl:attribute> + <xsl:value-of select="concat('issue-',id)"/></a>: <xsl:value-of select="title"/> + <xsl:if test="$relatedComments"> + [Related comments: + <xsl:for-each select="$relatedComments"> + <xsl:variable name="relatedComment" select="translate(substring-after(description,'RELATED-COMMENT:'),' ','')"/> + <a href="{concat('#',$relatedComment)}"><xsl:value-of select="$relatedComment"/></a> + </xsl:for-each>] + </xsl:if> + </td> + <td> + <xsl:value-of select="created"/> + </td> + <td> + <xsl:choose> + <xsl:when test="contains($resolution,'accepted')">accepted</xsl:when> + <xsl:when test="contains($resolution,'rejected')">rejected</xsl:when> + <xsl:otherwise> + <span class="unknown">unknown</span> + </xsl:otherwise> + </xsl:choose> + </td> + <td> + <xsl:choose> + <xsl:when test="contains($commentors-response,'unsatisfied')" + >unsatisfied</xsl:when> + <xsl:when test="contains($commentors-response,' satisfied')" + >satisfied</xsl:when> + <xsl:otherwise> + <span class="unknown">unknown</span> + </xsl:otherwise> + </xsl:choose> + </td> + <td> + <xsl:choose> + <xsl:when test="contains($change-type,'editorial')">editorial</xsl:when> + <xsl:when test="contains($change-type,'substantive')">substantive</xsl:when> + <xsl:when test="contains($change-type,'none')">none</xsl:when> + <xsl:otherwise> + <span class="unknown">unknown</span> + </xsl:otherwise> + </xsl:choose> + </td> + <td> + <xsl:choose> + <xsl:when test="$decision-details"> + <xsl:value-of select="$decision-details"/> + </xsl:when> + <xsl:otherwise>-</xsl:otherwise> + </xsl:choose> + </td> + </tr> + </xsl:template> </xsl:transform>
Received on Sunday, 20 January 2013 19:08:24 UTC