| <?xml version="1.0"?> |
| |
| <xsl:stylesheet version="1.0" |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:iplog="http://www.eclipse.org/projects/xml/iplog"> |
| |
| <xsl:template match="/"> |
| <html> |
| <body> |
| <style> |
| table,td,th {border-width:1px;border-style:solid} |
| th {border-color:#7A79A7; background-color:#7A79A7} |
| table {cellpadding: 0; cellspacing: 0} |
| </style> |
| <h1>IP Log for the |
| <xsl:for-each select="iplog:iplog/iplog:project"> |
| <a href="http://www.eclipse.org/projects/project.php?id={@id}"> |
| <xsl:choose> |
| <xsl:when test="@name"> |
| <xsl:value-of select="@name" /> |
| </xsl:when> |
| <xsl:otherwise> |
| <xsl:value-of select="@id" /> |
| </xsl:otherwise> |
| </xsl:choose> |
| </a> Project<xsl:if test="@version">, version <xsl:value-of select="@version"/></xsl:if> |
| </xsl:for-each> |
| </h1> |
| <p>This Log includes information about the following projects:</p> |
| <ul> |
| <xsl:for-each select="iplog:iplog/iplog:project"> |
| <li><a href="http://www.eclipse.org/projects/project.php?id={@id}"><xsl:value-of select="@name" /></a></li> |
| </xsl:for-each> |
| <xsl:for-each select="iplog:iplog/iplog:includes"> |
| <li><a href="http://www.eclipse.org/projects/project.php?id={@id}"><xsl:value-of select="@name" /></a></li> |
| </xsl:for-each> |
| </ul> |
| |
| <xsl:if test="count(iplog:iplog/iplog:consumes)>0"> |
| <p>This project consumes the following Eclipse projects:</p> |
| <ul> |
| <xsl:for-each select="iplog:iplog/iplog:consumes"> |
| <li> |
| <a |
| href="http://www.eclipse.org/projects/project.php?id={@id}"> |
| <xsl:value-of select="@name" /> |
| </a> |
| </li> |
| </xsl:for-each> |
| </ul> |
| </xsl:if> |
| |
| <h2>Licenses</h2> |
| <ul> |
| <xsl:for-each select="iplog:iplog/iplog:license"> |
| <li> |
| <xsl:choose> |
| <xsl:when test="@description"> |
| <xsl:value-of select="@description" /> |
| </xsl:when> |
| <xsl:otherwise> |
| <xsl:value-of select="@id" /> |
| </xsl:otherwise> |
| </xsl:choose> |
| |
| </li> |
| </xsl:for-each> |
| </ul> |
| |
| <!-- Third-party Code (Contribution Questionnaires) --> |
| |
| <h2>Third-Party Code</h2> |
| <table> |
| <tr> |
| <th>CQ</th> |
| <th>Third-Party Code</th> |
| <th>License</th> |
| <th>Use</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:cq[@state='active']"> |
| <xsl:sort select="@id" data-type="number" /> |
| <tr> |
| <td> |
| <a href="https://dev.eclipse.org/ipzilla/show_bug.cgi?id={@id}"> |
| <xsl:value-of select="@id" /> |
| </a> |
| </td> |
| <td> |
| <xsl:value-of select="@description" /> |
| </td> |
| <td> |
| <xsl:value-of select="@license" /> |
| </td> |
| <td> |
| <xsl:value-of select="@use" /> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </table> |
| |
| <xsl:if test="count(iplog:iplog/iplog:cq[@state='prereq'])>0"> |
| <h2>Pre-Req Dependencies</h2> |
| <table> |
| <tr> |
| <th>CQ</th> |
| <th>Third-Party Code</th> |
| <th>License</th> |
| <th>Dependencies</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:cq[@state='prereq']"> |
| <xsl:sort select="@id" data-type="number" /> |
| <tr> |
| <td> |
| <a href="https://dev.eclipse.org/ipzilla/show_bug.cgi?id={@id}"> |
| <xsl:value-of select="@id" /> |
| </a> |
| </td> |
| <td> |
| <xsl:value-of select="@description" /> |
| </td> |
| <td> |
| <xsl:value-of select="@license" /> |
| </td> |
| <td> |
| <xsl:choose> |
| <xsl:when test="@use='exempt_prereq'"> |
| Exempt pre-req |
| </xsl:when> |
| <xsl:when test="@use='workswith'"> |
| Works with |
| </xsl:when> |
| <xsl:otherwise> |
| Pre-req |
| </xsl:otherwise> |
| </xsl:choose> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </table> |
| </xsl:if> |
| |
| <xsl:if test="count(iplog:iplog/iplog:cq[@state='unused'])>0"> |
| <h2>Unused Approved Contributions</h2> |
| <table> |
| <tr> |
| <th>CQ</th> |
| <th>Third-Party Code</th> |
| <th>License</th> |
| <th>Use</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:cq[@state='unused']"> |
| <xsl:sort select="@id" data-type="number" /> |
| <tr> |
| <td> |
| <a href="https://dev.eclipse.org/ipzilla/show_bug.cgi?id={@id}"> |
| <xsl:value-of select="@id" /> |
| </a> |
| </td> |
| <td> |
| <xsl:value-of select="@description" /> |
| </td> |
| <td> |
| <xsl:value-of select="@license" /> |
| </td> |
| <td> |
| <xsl:value-of select="@use" /> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </table> |
| </xsl:if> |
| |
| <xsl:if test="count(iplog:iplog/iplog:cq[@state='pending'])>0"> |
| <h2>Pending Contribution Questionnaires</h2> |
| <table> |
| <tr> |
| <th>CQ</th> |
| <th>Third-Party Code</th> |
| <th>License</th> |
| <th>Use</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:cq[@state='pending']"> |
| <xsl:sort select="@id" data-type="number" /> |
| <tr> |
| <td> |
| <a href="https://dev.eclipse.org/ipzilla/show_bug.cgi?id={@id}"> |
| <xsl:value-of select="@id" /> |
| </a> |
| </td> |
| <td> |
| <xsl:value-of select="@description" /> |
| </td> |
| <td> |
| <xsl:value-of select="@license" /> |
| </td> |
| <td> |
| <xsl:value-of select="@use" /> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </table> |
| </xsl:if> |
| |
| <!-- Committers --> |
| |
| <h2>Committers Past and Present</h2> |
| <xsl:if test="count(iplog:iplog/iplog:committer[@hasCommits='true'])>0"> |
| <!-- What if this is false? Should probably print something like "No active committers" --> |
| <h3>Active Committers</h3> |
| <table> |
| <tr> |
| <th>Name</th> |
| <th>Committer ID</th> |
| <th>Organization</th> |
| <th>Active?</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:committer[@hasCommits='true']"> |
| <xsl:sort select="@lastName" data-type="text" /> |
| <tr> |
| <td> |
| <xsl:value-of select="@firstName" /> |
| <xsl:text> </xsl:text> |
| <xsl:value-of select="@lastName" /> |
| </td> |
| <td> |
| <xsl:value-of select="@id" /> |
| </td> |
| <td> |
| <xsl:value-of select="@affiliation" /> |
| </td> |
| <td> |
| <xsl:choose> |
| <xsl:when test="@active='true'"> |
| Yes |
| </xsl:when> |
| <xsl:otherwise> |
| No |
| </xsl:otherwise> |
| </xsl:choose> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </table> |
| </xsl:if> |
| |
| <xsl:if test="count(iplog:iplog/iplog:committer[@hasCommits!='true'])>0"> |
| <h3>Never Active</h3> |
| <table> |
| <tr> |
| <th>Name</th> |
| <th>Committer ID</th> |
| <th>Organization</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:committer[@hasCommits!='true']"> |
| <xsl:sort select="@lastName" data-type="text" /> |
| <tr> |
| <td> |
| <xsl:value-of select="@firstName" /> |
| <xsl:text> </xsl:text> |
| <xsl:value-of select="@lastName" /> |
| </td> |
| <td> |
| <xsl:value-of select="@id" /> |
| </td> |
| <td> |
| <xsl:value-of select="@affiliation" /> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </table> |
| </xsl:if> |
| |
| <!-- Contributors --> |
| |
| <h2>Contributors and Their Contributions</h2> |
| |
| <table> |
| <tr> |
| <th>Contribution</th> |
| <th>Size</th> |
| <th>Description</th> |
| </tr> |
| <xsl:for-each select="iplog:iplog/iplog:contributor"> |
| <xsl:sort select="@name" data-type="text" /> |
| <tr> |
| <td colspan="3"> |
| <xsl:value-of select="@name" /> |
| </td> |
| </tr> |
| <xsl:for-each select="iplog:contribution"> |
| <tr> |
| <td> |
| <a href="{@url}"> |
| <xsl:value-of select="@id" /> |
| </a> |
| </td> |
| <td> |
| <xsl:value-of select="@size" /> |
| </td> |
| <td> |
| <xsl:value-of select="@description" /> |
| </td> |
| </tr> |
| </xsl:for-each> |
| </xsl:for-each> |
| </table> |
| |
| </body> |
| </html> |
| </xsl:template> |
| |
| </xsl:stylesheet> |