From: Jeff J. <jef...@us...> - 2006-08-05 16:40:20
|
jeffjensen 06/08/05 09:40:19 Modified: tasks/src/plugin-resources tasks.jsl Log: Reformat only; no code changes. Revision Changes Path 1.6 +189 -117 maven-plugins/tasks/src/plugin-resources/tasks.jsl Index: tasks.jsl =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/tasks/src/plugin-resources/tasks.jsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- tasks.jsl 5 Aug 2006 04:05:13 -0000 1.5 +++ tasks.jsl 5 Aug 2006 16:40:19 -0000 1.6 @@ -1,120 +1,192 @@ <?xml version="1.0"?> - -<jsl:stylesheet - select="$doc" - xmlns:j="jelly:core" - xmlns:jsl="jelly:jsl" - xmlns:x="jelly:xml" - xmlns="dummy" trim="false"> - <jsl:template match="document"> - <document> - <jsl:applyTemplates select="*"/> - </document> - </jsl:template> - - <jsl:template match="body" trim="false"> - <body> - <!-- Index of categories --> - <section name="Task Categories"> - <table> - <tr><th style='width:50px'>Category</th><th>Description</th><th style='width:50px'>Owner</th></tr> - <x:forEach select="category"> - <tr> - <j:set var="name"><x:expr select="@name"/></j:set> - <j:set var="description"><x:expr select="@description"/></j:set> - <j:set var="owner"><x:expr select="@owner"/></j:set> - <td><a href="#${name}">${name}</a></td> - <td>${description}</td> - <td><a href="team-list.html#${owner}">${owner}</a></td> - </tr> - </x:forEach> - </table> - </section> - - <!-- Category details --> - <x:forEach select="category"> - <j:set var="category"><x:expr select="@name"/></j:set> - <section name="Tasks : ${category}"> - <a name="${category}"/> - <!-- Tasks for the category --> - <table> - <tr><th style='width:60px'>Creator</th><th style='width:60px'>Assigned to</th><th>Task</th><th style='width:50px'>Start Date</th><th style='width:50px'>End Date</th><th style='width:30px'>Effort</th><th style='width:50px'>Status</th><th>Version</th></tr> - <x:forEach var="task" select="task"> - <j:set var="creator"><x:expr select="@creator"/></j:set> - <j:if test="${empty(creator)}"> - <j:set var="creator">Unknown</j:set> - </j:if> - <j:set var="assignedto"><x:expr select="@assignedto"/></j:set> - <j:set var="startdate"><x:expr select="@startdate"/></j:set> - <j:set var="enddate"><x:expr select="@enddate"/></j:set> - <j:set var="effort"><x:expr select="@effort"/></j:set> - <j:set var="status"><x:expr select="@status"/></j:set> - <j:if test="${empty(status)}"> - <j:set var="status">Not started</j:set> - </j:if> - <j:set var="version"><x:expr select="@version"/></j:set> - <tr> - <td><a href="team-list.html#${creator}">${creator}</a></td> - <td><a href="team-list.html#${assignedto}">${assignedto}</a></td> - <td><jsl:applyTemplates select="$task"/></td> - <td>${startdate}</td> - <td>${enddate}</td> - <td>${effort}</td> - <td>${status}</td> - <td>${version}</td> - </tr> - </x:forEach> - </table> - - <!-- Subcategories --> - <x:forEach select="subcategory"> - <j:set var="subcategory"><x:expr select="@name"/></j:set> - <subsection name="Tasks : ${category} - ${subcategory}"> - <!-- Tasks for the subcategory --> - <table> - <tr><th style='width:60px'>Creator</th><th style='width:60px'>Assigned to</th><th>Task</th><th style='width:50px'>Start Date</th><th style='width:50px'>End Date</th><th style='width:30px'>Effort</th><th style='width:50px'>Status</th><th>Version</th></tr> - <x:forEach var="task" select="task"> - <j:set var="creator"><x:expr select="@creator"/></j:set> - <j:if test="${empty(creator)}"> - <j:set var="creator">Unknown</j:set> - </j:if> - <j:set var="assignedto"><x:expr select="@assignedto"/></j:set> - <j:set var="startdate"><x:expr select="@startdate"/></j:set> - <j:set var="enddate"><x:expr select="@enddate"/></j:set> - <j:set var="effort"><x:expr select="@effort"/></j:set> - <j:set var="status"><x:expr select="@status"/></j:set> - <j:if test="${empty(status)}"> - <j:set var="status">Not started</j:set> - </j:if> - <j:set var="version"><x:expr select="@version"/></j:set> - <tr> - <td><a href="team-list.html#${creator}">${creator}</a></td> - <td><a href="team-list.html#${assignedto}">${assignedto}</a></td> - <td><jsl:applyTemplates select="$task"/></td> - <td>${startdate}</td> - <td>${enddate}</td> - <td>${effort}</td> - <td>${status}</td> - <td>${version}</td> - </tr> - </x:forEach> - </table> - </subsection> - </x:forEach> - </section> +<jsl:stylesheet select="$doc" xmlns:j="jelly:core" xmlns:jsl="jelly:jsl" + xmlns:x="jelly:xml" xmlns="dummy" trim="false"> + + <jsl:template match="document"> + <document> + <jsl:applyTemplates select="*"/> + </document> + </jsl:template> + + <jsl:template match="body" trim="false"> + <body> + <!-- Index of categories --> + <section name="Task Categories"> + <table> + <tr> + <th style='width:50px'>Category</th> + <th>Description</th> + <th style='width:50px'>Owner</th> + </tr> + <x:forEach select="category"> + <tr> + <j:set var="name"> + <x:expr select="@name"/> + </j:set> + <j:set var="description"> + <x:expr select="@description"/> + </j:set> + <j:set var="owner"> + <x:expr select="@owner"/> + </j:set> + <td> + <a href="#${name}">${name}</a> + </td> + <td>${description}</td> + <td> + <a href="team-list.html#${owner}">${owner}</a> + </td> + </tr> + </x:forEach> + </table> + </section> + + <!-- Category details --> + <x:forEach select="category"> + <j:set var="category"> + <x:expr select="@name"/> + </j:set> + <section name="Tasks : ${category}"> + <a name="${category}"/> + <!-- Tasks for the category --> + <table> + <tr> + <th style='width:60px'>Creator</th> + <th style='width:60px'>Assigned to</th> + <th>Task</th> + <th style='width:50px'>Start Date</th> + <th style='width:50px'>End Date</th> + <th style='width:30px'>Effort</th> + <th style='width:50px'>Status</th> + <th>Version</th> + </tr> + <x:forEach var="task" select="task"> + <j:set var="creator"> + <x:expr select="@creator"/> + </j:set> + <j:if test="${empty(creator)}"> + <j:set var="creator">Unknown</j:set> + </j:if> + <j:set var="assignedto"> + <x:expr select="@assignedto"/> + </j:set> + <j:set var="startdate"> + <x:expr select="@startdate"/> + </j:set> + <j:set var="enddate"> + <x:expr select="@enddate"/> + </j:set> + <j:set var="effort"> + <x:expr select="@effort"/> + </j:set> + <j:set var="status"> + <x:expr select="@status"/> + </j:set> + <j:if test="${empty(status)}"> + <j:set var="status">Not started</j:set> + </j:if> + <j:set var="version"> + <x:expr select="@version"/> + </j:set> + <tr> + <td> + <a href="team-list.html#${creator}">${creator}</a> + </td> + <td> + <a href="team-list.html#${assignedto}">${assignedto}</a> + </td> + <td> + <jsl:applyTemplates select="$task"/> + </td> + <td>${startdate}</td> + <td>${enddate}</td> + <td>${effort}</td> + <td>${status}</td> + <td>${version}</td> + </tr> </x:forEach> - </body> - </jsl:template> - - <!-- copy any other elements through --> - <jsl:template match="*" trim="false"> - <jsl:copy trim="false"> - <jsl:applyTemplates trim="false"/> - </jsl:copy> - </jsl:template> - - <!-- element values don't pass through as text --> - <jsl:template match="@*"/> - -</jsl:stylesheet> + </table> + + <!-- Subcategories --> + <x:forEach select="subcategory"> + <j:set var="subcategory"> + <x:expr select="@name"/> + </j:set> + <subsection name="Tasks : ${category} - ${subcategory}"> + <!-- Tasks for the subcategory --> + <table> + <tr> + <th style='width:60px'>Creator</th> + <th style='width:60px'>Assigned to</th> + <th>Task</th> + <th style='width:50px'>Start Date</th> + <th style='width:50px'>End Date</th> + <th style='width:30px'>Effort</th> + <th style='width:50px'>Status</th> + <th>Version</th> + </tr> + <x:forEach var="task" select="task"> + <j:set var="creator"> + <x:expr select="@creator"/> + </j:set> + <j:if test="${empty(creator)}"> + <j:set var="creator">Unknown</j:set> + </j:if> + <j:set var="assignedto"> + <x:expr select="@assignedto"/> + </j:set> + <j:set var="startdate"> + <x:expr select="@startdate"/> + </j:set> + <j:set var="enddate"> + <x:expr select="@enddate"/> + </j:set> + <j:set var="effort"> + <x:expr select="@effort"/> + </j:set> + <j:set var="status"> + <x:expr select="@status"/> + </j:set> + <j:if test="${empty(status)}"> + <j:set var="status">Not started</j:set> + </j:if> + <j:set var="version"> + <x:expr select="@version"/> + </j:set> + <tr> + <td> + <a href="team-list.html#${creator}">${creator}</a> + </td> + <td> + <a href="team-list.html#${assignedto}">${assignedto}</a> + </td> + <td> + <jsl:applyTemplates select="$task"/> + </td> + <td>${startdate}</td> + <td>${enddate}</td> + <td>${effort}</td> + <td>${status}</td> + <td>${version}</td> + </tr> + </x:forEach> + </table> + </subsection> + </x:forEach> + </section> + </x:forEach> + </body> + </jsl:template> + + <!-- copy any other elements through --> + <jsl:template match="*" trim="false"> + <jsl:copy trim="false"> + <jsl:applyTemplates trim="false"/> + </jsl:copy> + </jsl:template> + + <!-- element values don't pass through as text --> + <jsl:template match="@*"/> + +</jsl:stylesheet> \ No newline at end of file |