diff options
Diffstat (limited to 'tools/resources')
-rw-r--r-- | tools/resources/stylesheets/announcement2readme.xsl | 89 | ||||
-rw-r--r-- | tools/resources/stylesheets/announcement2txt.xsl | 174 | ||||
-rw-r--r-- | tools/resources/stylesheets/bugzilla2patchqueue.xsl | 36 | ||||
-rw-r--r-- | tools/resources/stylesheets/changelog.xsl | 95 | ||||
-rw-r--r-- | tools/resources/stylesheets/patchqueue2text4dev.xsl | 68 | ||||
-rw-r--r-- | tools/resources/stylesheets/patchqueue2xdocs.xsl | 111 |
6 files changed, 573 insertions, 0 deletions
diff --git a/tools/resources/stylesheets/announcement2readme.xsl b/tools/resources/stylesheets/announcement2readme.xsl new file mode 100644 index 0000000000..63cbdefd07 --- /dev/null +++ b/tools/resources/stylesheets/announcement2readme.xsl @@ -0,0 +1,89 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:output method="html" indent="yes"/> + + <xsl:template match="changes"> + <xsl:variable name="version" select="@version"/> + <xsl:apply-templates select="document(@file,/)/changes/release[attribute::version=string($version)]"/> + </xsl:template> + + <xsl:template match="announcement"> + <style> + body { background-color: #FFFFFF } + p { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } + li,ul { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } + div { font-size: 10pt; font-family: Helvetica, Arial, sans-serif; font-style:italic } + h1 { font-size: 14pt; font-family: Helvetica, Arial, sans-serif; font-weight: bold } + h2 { font-size: 12pt; font-family: Helvetica, Arial, sans-serif; font-weight: bold } + h3 { font-size: 10pt; font-family: Helvetica, Arial, sans-serif; font-weight: bold } + A:link { color: #0000A0 } /* unvisited link */ + A:visited { color: #A00000 } /* visited links */ + A:active { color: #00A000 } /* active links */ + </style> + + <a name="sig"><h2>PGP Signatures</h2></a> + + <p>Many of the distribution kits have been digitally signed (using + PGP). If so, there will be an accompanying + <samp><em>distribution</em>.asc</samp> file in the same directory as + the distribution. The PGP keys can be found in the distribution + directory at <<a href="http://jakarta.apache.org/builds/jakarta-avalon/release/KEYS"> + <samp>http://jakarta.apache.org/builds/jakarta-avalon/release/KEYS</samp></a>>.</p> + + <xsl:variable name="filename"><xsl:value-of + select="project/downloads/@name"/>-<xsl:value-of + select="project/changes/@version"/>-bin.tar.gz</xsl:variable> + + <pre>Always test available signatures, <i>e.g.</i>, +> pgpk -a KEYS +> pgpv <xsl:value-of select="$filename"/>.asc +<i>or</i>, +> pgp -ka KEYS +> pgp <xsl:value-of select="$filename"/>.asc +<i>or</i>, +> gpg --import KEYS +> gpg --verify <xsl:value-of select="$filename"/>.asc +</pre> + + <xsl:for-each select="project"> + <xsl:if test="downloads"> + <h2>About <xsl:value-of select="title"/></h2> + <xsl:apply-templates select="."/> + </xsl:if> + </xsl:for-each> + + </xsl:template> + + <xsl:template match="project"> + + <p>For more information about <xsl:value-of select="title"/>, please go to + <a><xsl:attribute name="href"><xsl:value-of select="@site"/></xsl:attribute> + <xsl:value-of select="@site"/></a>.</p> + + <!-- print out ChangeLog if present --> + <xsl:if test="changes"> + <h3>ChangeLog for <xsl:value-of select="title"/></h3> + <xsl:apply-templates select="changes"/> + </xsl:if> + </xsl:template> + + <xsl:template match="ulink"> + <a href="{@uri}"><xsl:value-of select="."/></a> + </xsl:template> + + <xsl:template match="release"> + <ul> + <xsl:for-each select="action"> + <li> + <xsl:value-of select="normalize-space(.)"/> + <xsl:if test="@dev"> + <xsl:text>[</xsl:text><xsl:value-of select="@dev"/><xsl:text>]</xsl:text> + </xsl:if> + </li> + </xsl:for-each> + </ul> + </xsl:template> + +</xsl:stylesheet> diff --git a/tools/resources/stylesheets/announcement2txt.xsl b/tools/resources/stylesheets/announcement2txt.xsl new file mode 100644 index 0000000000..9b03cc12b4 --- /dev/null +++ b/tools/resources/stylesheets/announcement2txt.xsl @@ -0,0 +1,174 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:output method="text" indent="no"/> + + <xsl:template match="changes"> + <xsl:variable name="version" select="@version"/> + <xsl:apply-templates select="document(@file,/)/changes/release[attribute::version=string($version)]"/> + </xsl:template> + + <xsl:template name="print-title"> + <xsl:param name="title"/> +<xsl:variable name="text" select="normalize-space($title)"/> +<xsl:value-of select="$text"/><xsl:text> +</xsl:text> + <xsl:call-template name="line"> + <xsl:with-param name="len" select="string-length($text)"/> + </xsl:call-template> + <xsl:text> +</xsl:text> + </xsl:template> + + <xsl:template match="announcement"> + <text> + <xsl:call-template name="print-title"> + <xsl:with-param name="title"><xsl:value-of select="title"/> Released</xsl:with-param> + </xsl:call-template> + <xsl:call-template name="word-wrap"> + <xsl:with-param name="text" select="normalize-space(abstract)"/> + <xsl:with-param name="count" select="0"/> + </xsl:call-template> + <xsl:text> + +</xsl:text> + <xsl:for-each select="project"> + <xsl:call-template name="print-title"> + <xsl:with-param name="title">About <xsl:value-of select="title"/></xsl:with-param> + </xsl:call-template> + <xsl:apply-templates select="."/> + <xsl:text> + +</xsl:text> + </xsl:for-each> + </text> + </xsl:template> + + <xsl:template match="project"> + <xsl:choose> + <xsl:when test="description/para"> + <xsl:for-each select="description/para"> + <xsl:call-template name="word-wrap"> + <xsl:with-param name="text"> + <xsl:apply-templates select="."/> + </xsl:with-param> + <xsl:with-param name="count" select="0"/> + </xsl:call-template> + <xsl:text> + +</xsl:text> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="word-wrap"> + <xsl:with-param name="text"> + <xsl:apply-templates select="description"/> + </xsl:with-param> + <xsl:with-param name="count" select="0"/> + </xsl:call-template> + <xsl:text> +</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text> +For more information about </xsl:text> + <xsl:value-of select="title"/> + <xsl:text>, please go to +</xsl:text> + <xsl:value-of select="@site"/> + + <!-- print out ChangeLog if present --> + <xsl:if test="changes"> + <xsl:text> + +ChangeLog for </xsl:text> + <xsl:value-of select="title"/> + <xsl:text> + +</xsl:text> + <xsl:apply-templates select="changes"/> + </xsl:if> + + <!-- print out Downloads if present --> + <xsl:if test="downloads"> + <xsl:text> +Downloads for </xsl:text><xsl:value-of select="title"/> available at + +<xsl:value-of select="downloads/@base"/>/latest + </xsl:if> + + </xsl:template> + + <xsl:template match="para"> + <xsl:apply-templates/> + <xsl:text> +</xsl:text> + </xsl:template> + + <xsl:template match="ulink"> + <xsl:value-of select="."/> + <xsl:text> (</xsl:text> + <xsl:value-of select="@uri"/> + <xsl:text>)</xsl:text> + </xsl:template> + + <xsl:template match="release"> + <xsl:for-each select="action"> + <xsl:text>*) </xsl:text> + <xsl:call-template name="word-wrap"> + <xsl:with-param name="text" select="."/> + <xsl:with-param name="count" select="0"/> + </xsl:call-template><xsl:text> </xsl:text> + <xsl:if test="@dev"> + <xsl:text>[</xsl:text><xsl:value-of select="@dev"/><xsl:text>]</xsl:text> + </xsl:if> + <xsl:text> + +</xsl:text> + </xsl:for-each> + </xsl:template> + + <xsl:template name="line"> + <xsl:param name="len"/> + <xsl:if test="number($len) > 0"> + <xsl:text>-</xsl:text> + <xsl:call-template name="line"> + <xsl:with-param name="len" select="number($len)-1"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + <xsl:template name="word-wrap"> + <xsl:param name="text"/> + <xsl:param name="count"/> + <xsl:param name="mytext" select="normalize-space($text)"/> + <xsl:choose> + <xsl:when test="$count > 40"> + <xsl:text> +</xsl:text> + <xsl:call-template name="word-wrap"> + <xsl:with-param name="text" select="$mytext"/> + <xsl:with-param name="count" select="0"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="not(contains($mytext,' '))"> + <xsl:text> </xsl:text> + <xsl:value-of select="$mytext"/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="word" select="substring-before($mytext,' ')"/> + <xsl:variable name="remainder" select="substring-after($mytext,' ')"/> + <xsl:text> </xsl:text> + <xsl:value-of select="$word"/> + <xsl:if test="string-length($word) > 0"> + <xsl:call-template name="word-wrap"> + <xsl:with-param name="text" select="$remainder"/> + <xsl:with-param name="count" select="$count + string-length($word)"/> + </xsl:call-template> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> diff --git a/tools/resources/stylesheets/bugzilla2patchqueue.xsl b/tools/resources/stylesheets/bugzilla2patchqueue.xsl new file mode 100644 index 0000000000..5ebb1a9137 --- /dev/null +++ b/tools/resources/stylesheets/bugzilla2patchqueue.xsl @@ -0,0 +1,36 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:html="http://www.w3.org/1999/xhtml"> + +<!-- @author <a href="mailto:barozzi@nicolaken.com">Nicola Ken Barozzi</a> --> + +<xsl:template match="html:body"> + <patch-queue> + <xsl:apply-templates/> + </patch-queue> +</xsl:template> + +<xsl:template match="html:tr"> + <xsl:if test="contains(@class,'th')"> + <bug> + <xsl:attribute name="id"><xsl:value-of select="html:td[1]/html:a"/></xsl:attribute> + <xsl:attribute name="url">http://nagoya.apache.org/bugzilla/<xsl:value-of select="html:td[1]/html:a/@href"/></xsl:attribute> + <xsl:attribute name="severity"><xsl:value-of select="html:td[2]"/></xsl:attribute> + <xsl:attribute name="priority"><xsl:value-of select="html:td[3]"/></xsl:attribute> + <xsl:attribute name="platform"><xsl:value-of select="html:td[4]"/></xsl:attribute> + <xsl:attribute name="owner"><xsl:value-of select="html:td[5]"/></xsl:attribute> + <xsl:attribute name="status"><xsl:value-of select="html:td[6]"/></xsl:attribute> + <xsl:attribute name="resolution"><xsl:value-of select="html:td[7]"/></xsl:attribute> + <xsl:attribute name="summary"><xsl:value-of select="html:td[8]"/></xsl:attribute> + </bug> + </xsl:if> +</xsl:template> + + <xsl:template match="@*|*|text()|processing-instruction()"> + <xsl:apply-templates select="@*|*|text()|processing-instruction()"/> + </xsl:template> + +</xsl:stylesheet> + diff --git a/tools/resources/stylesheets/changelog.xsl b/tools/resources/stylesheets/changelog.xsl new file mode 100644 index 0000000000..20f7cf9fb6 --- /dev/null +++ b/tools/resources/stylesheets/changelog.xsl @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:output indent="yes"/> + + <xsl:param name="module">module</xsl:param> + <xsl:param name="cvsweb">cvsweb</xsl:param> + + <xsl:template match="/"> + + <html> + <head> + <link rel="stylesheet" type="text/css" href="../../../../html/javadoc.css" title="Style"></link> + </head> + <body bgcolor="white"> + <h1>Change Log</h1> + + <xsl:apply-templates select="changelog/entry"> + <xsl:sort order="descending" select="date" /> + </xsl:apply-templates> + + </body> + </html> + + </xsl:template> + + <xsl:template match="entry"> + + <h2> + <xsl:call-template name="escape-return"> + <xsl:with-param name="string"><xsl:value-of select="msg"/></xsl:with-param> + </xsl:call-template> + </h2> + <p> + <b> + <xsl:apply-templates select="date"/> + by <xsl:value-of disable-output-escaping="yes" select="author"/> + </b> + </p> + <p> + <xsl:apply-templates select="file"/> + </p> + <hr/> + + </xsl:template> + + <xsl:template match="date"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="weekday"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="time"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="file"> + <br/><a> + <xsl:choose> + <xsl:when test="string-length(prevrevision) = 0 "> + <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?rev=<xsl:value-of select="revision" />&content-type=text/x-cvsweb-markup</xsl:attribute> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?r1=<xsl:value-of select="revision" />&r2=<xsl:value-of select="prevrevision"/>&diff_format=h</xsl:attribute> + </xsl:otherwise> + </xsl:choose> + <xsl:value-of select="name" /> + </a> + </xsl:template> + + <xsl:template name="escape-return"> + <xsl:param name="string"/> + <!-- must be a better way to define a carrige return --> + <xsl:variable name="return"><xsl:text> +</xsl:text> + </xsl:variable> + <xsl:choose> + <xsl:when test="contains($string, $return)"> + <xsl:value-of select="substring-before($string, $return)"/><br/> + <xsl:call-template name="escape-return"> + <xsl:with-param name="string"> + <xsl:value-of select="substring-after($string, $return)"/> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> + diff --git a/tools/resources/stylesheets/patchqueue2text4dev.xsl b/tools/resources/stylesheets/patchqueue2text4dev.xsl new file mode 100644 index 0000000000..0ed5685e95 --- /dev/null +++ b/tools/resources/stylesheets/patchqueue2text4dev.xsl @@ -0,0 +1,68 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<!-- @author <a href="mailto:barozzi@nicolaken.com">Nicola Ken Barozzi</a> --> + + <xsl:output method="text"/> + + <xsl:template match="/">----------------------------------------------------------- + This mail is generated automatically using + Jakarta Ant. Contents are automatically + downloaded from Apache's Bugzilla. +----------------------------------------------------------- + Please do not reply to this mail. +----------------------------------------------------------- + +*********************************************************** + COCOON PATCH QUEUE UPDATE + + patches in queue: <xsl:value-of select="count(patch-queue/bug)"/> +*********************************************************** + + <xsl:for-each select="patch-queue/bug"> +----------------------------------------------------------- +<xsl:value-of select="@id"/>:<xsl:value-of select="@summary"/> +----------------------------------------------------------- +<xsl:value-of select="@url"/> + +REVIEWER: <xsl:value-of select="@owner"/> +RESOLUTION: <xsl:value-of select="@resolution"/> +STATUS: <xsl:value-of select="@status"/> + + </xsl:for-each> + +*************************that's it!************************ + +------------------------patch HOWTO------------------------ + +Send patches to http://nagoya.apache.org/bugzilla/ +specifying [PATCH] in the summary. +Bugzilla sends a mail automatically to this list. +Reviewers will mark it FIXED there when applied. +Patches not sent to Bugzilla will not be reviewed. +----------------------------------------------------------- +This file is generated and updated automatically at least +once a week, and the data is taken from Bugzilla. +If you don't find the patch you submitted to bugzilla +after one week, please notify cocoon-dev@xml.apache.org +for assistance. +----------------------------------------------------------- +There is usually a HEAD branch and a previous-version +branch that are maintained. Where will the patch go? +1. If it is a bug fix it should go to both branches +2. If something is totally new it goes into HEAD scratchpad. +3. Something in between, but does not break backward + compatibility _may_ go into both (and may not) +4. For everything else, a vote is required so + first it may go into HEAD, and then be VOTEd in order + to sync this into branch. +Please note that structural changes have to be VOTEd first. + </xsl:template> + + <xsl:template match="@*|*|text()|processing-instruction()"> + <xsl:apply-templates select="@*|*|text()|processing-instruction()"/> + </xsl:template> + +</xsl:stylesheet> diff --git a/tools/resources/stylesheets/patchqueue2xdocs.xsl b/tools/resources/stylesheets/patchqueue2xdocs.xsl new file mode 100644 index 0000000000..52d21f609e --- /dev/null +++ b/tools/resources/stylesheets/patchqueue2xdocs.xsl @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<!-- @author <a href="mailto:barozzi@nicolaken.com">Nicola Ken Barozzi</a> --> + + <xsl:template match="/"> + + <xsl:text disable-output-escaping="yes"> + <![CDATA[ + <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" + "dtd/document-v10.dtd"> + ]]> + <!-- this file is automatically generated by build patchqueue-xdocs --> + </xsl:text> + + <document> + <header> + <title>Patch Queue</title> + <authors> + <person name="Robin Green" email="greenrd@hotmail.com"/> + <person name="Nicola Ken Barozzi" email="barozzi@nicolaken.com"/> + </authors> + </header> + + <body> + + <s1 title="Introduction"> + + <p> + This is an <strong>informal</strong> list - in chronological order - + of some of the noteworthy patches that have been posted + to the <link href="mailto:cocoon-dev@xml.apache.org">cocoon-dev</link> mailing list. + These patches are not (yet) part of the Apache Cocoon project, but need reviewing for possible + inclusion. This system was instituted because, due to the large volume of mail and + the lack of time of the committers, some patches tended to get forgotten about. This + queue does not guarantee that any patch will be reviewed within a reasonable time frame, + but it does at least make them easier to find! + </p> + + <p><strong>Reviewers wanted!</strong> - If you have time to review and/or test these patches, + we would be grateful for your time. Please post comments to the cocoon-dev mailing lists. + </p> + + <p> + Before submitting a patch, please read the page on <connect href="contrib.xml">Third-Party + Contributions</connect>. The preferred submission method for patches is: + </p> + + <ul> + <li>Post to cocoon-dev@xml.apache.org</li> + <li>Describe the patch, the reason for it and (if necessary) why this is important.</li> + <li>Generate the patch in <code>diff -u</code> format from CVS</li> + <li>Also generate a documentation patch or new file, if this is something that should be documented. + </li> + <li>Post as an attachment rather than inline (unless it is trivially small).</li> + </ul> + + <p>Following the above guidelines will facilitate your patch being reviewed + and applied efficiently.</p> + + </s1> + + <s1 title="Patch Queue"> + + <p><strong> [Under Construction] </strong> Archive links will be added later. + <strong>Please do not bother the patch submitters/authors</strong> without first reading the + relevant post(s) in the <connect href="mail-archives.xml">mailing list archives.</connect> + </p> + + <p>Vapourware will not be listed.</p> + + <table> + <tr> + <th>id<!--and Link--></th> + <th>Summary</th> + <th>Reviewer</th> + <th>Resolution</th> + <th>Status</th> + </tr> + <xsl:for-each select="patch-queue/bug"> + <tr> + <th> + <connect> + <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute> + <xsl:value-of select="@id"/> + </connect> + </th> + <th><xsl:value-of select="@summary"/></th> + <th><xsl:value-of select="@owner"/></th> + <th><xsl:value-of select="@resolution"/></th> + <th><xsl:value-of select="@status"/></th> + </tr> + </xsl:for-each> + </table> + + <p>See also additional list of patches to be added in <connect href="todo.xml">To Do</connect>. + </p> + + </s1> + </body> + </document> + + </xsl:template> + + <xsl:template match="@*|*|text()|processing-instruction()"> + <xsl:apply-templates select="@*|*|text()|processing-instruction()"/> + </xsl:template> + +</xsl:stylesheet> |