You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2002/06/30 11:08:45 UTC
cvs commit: jakarta-avalon-apps/site/tools announcement2header.xsl announcement2readme.xsl announcement2site.xsl announcement2txt.xsl
hammant 2002/06/30 02:08:45
Modified: db/src/xdocs book.xml
demo/src/xdocs book.xml
ftpserver/src/xdocs book.xml
hsql/src/xdocs book.xml
httpproxy/src/xdocs book.xml
overlord/src/xdocs book.xml
sevak/src/xdocs book.xml
simpleserver/src/xdocs book.xml
site build.xml
xcommander/src/xdocs book.xml
Added: site/src/xdocs announcement.xml changes.xml
site/tools announcement2header.xsl announcement2readme.xsl
announcement2site.xsl announcement2txt.xsl
Log:
Repointing of downloadables.
Revision Changes Path
1.7 +1 -1 jakarta-avalon-apps/db/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/db/src/xdocs/book.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- book.xml 6 Jun 2002 18:46:14 -0000 1.6
+++ book.xml 30 Jun 2002 09:08:44 -0000 1.7
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.8 +1 -1 jakarta-avalon-apps/demo/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/demo/src/xdocs/book.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- book.xml 6 Jun 2002 18:46:15 -0000 1.7
+++ book.xml 30 Jun 2002 09:08:44 -0000 1.8
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
<menu label="Demo Components">
1.7 +1 -1 jakarta-avalon-apps/ftpserver/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/xdocs/book.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- book.xml 6 Jun 2002 18:46:15 -0000 1.6
+++ book.xml 30 Jun 2002 09:08:44 -0000 1.7
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
<menu label="Implementations">
<menu-item label="Core FTP Server" source="coreserver.xml"/>
1.7 +1 -1 jakarta-avalon-apps/hsql/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/hsql/src/xdocs/book.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- book.xml 6 Jun 2002 18:46:15 -0000 1.6
+++ book.xml 30 Jun 2002 09:08:45 -0000 1.7
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.8 +1 -1 jakarta-avalon-apps/httpproxy/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/httpproxy/src/xdocs/book.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- book.xml 6 Jun 2002 18:46:15 -0000 1.7
+++ book.xml 30 Jun 2002 09:08:45 -0000 1.8
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.6 +1 -1 jakarta-avalon-apps/overlord/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/overlord/src/xdocs/book.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- book.xml 6 Jun 2002 18:46:15 -0000 1.5
+++ book.xml 30 Jun 2002 09:08:45 -0000 1.6
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.3 +1 -1 jakarta-avalon-apps/sevak/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/sevak/src/xdocs/book.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- book.xml 29 Jun 2002 17:46:23 -0000 1.2
+++ book.xml 30 Jun 2002 09:08:45 -0000 1.3
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.6 +1 -1 jakarta-avalon-apps/simpleserver/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/simpleserver/src/xdocs/book.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- book.xml 6 Jun 2002 18:46:15 -0000 1.5
+++ book.xml 30 Jun 2002 09:08:45 -0000 1.6
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.9 +40 -1 jakarta-avalon-apps/site/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/site/build.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- build.xml 29 Jun 2002 17:49:53 -0000 1.8
+++ build.xml 30 Jun 2002 09:08:45 -0000 1.9
@@ -11,7 +11,7 @@
<property name="name" value="apps"/>
<property name="Name" value="Apps"/>
- <property name="version" value="0.7"/>
+ <property name="version" value="0.6"/>
<property name="year" value="1999-2002"/>
<!-- Set the properties for intermediate directory -->
@@ -38,6 +38,12 @@
<property name="dist.base" value="distributions"/>
+ <property name="announce2txt" value="tools/announcement2txt.xsl"/>
+ <property name="announce2header" value="tools/announcement2header.xsl"/>
+ <property name="announce2readme" value="tools/announcement2readme.xsl"/>
+ <property name="announce2site" value="tools/announcement2site.xsl"/>
+
+
<path id="tools.class.path">
<pathelement location="${junit.jar}"/>
<pathelement location="${tools.jar}"/>
@@ -223,5 +229,38 @@
</copy>
</target>
+
+ <!-- Create the announcements and HEADER.html -->
+ <target name="announcement">
+
+ <filter token="Name" value="${Near}"/>
+ <filter token="name" value="${near}"/>
+ <filter token="version" value="${version}"/>
+ <filter token="year" value="${year}"/>
+ <filter token="status" value="${status}"/>
+ <filter token="release" value="${release}"/>
+ <filter token="short-version" value="${short.version}"/>
+
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${dist.base}" />
+
+ <copy todir="${build.dir}" filtering="on">
+ <fileset dir="${xdocs.dir}">
+ <include name="announcement.xml"/>
+ <include name="changes.xml"/>
+ </fileset>
+ </copy>
+
+ <style style="${announce2txt}" in="${build.dir}/announcement.xml" out="Announcement.txt"/>
+ <style style="${announce2header}" in="${build.dir}/announcement.xml"
+ out="dist/HEADER.html"/>
+ <style style="${announce2readme}" in="${build.dir}/announcement.xml"
+ out="dist/README.html"/>
+ <style style="${announce2site}" in="${build.dir}/announcement.xml"
+ out="jakarta-news.xml"/>
+
+ </target>
+
+
</project>
1.6 +1 -1 jakarta-avalon-apps/xcommander/src/xdocs/book.xml
Index: book.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/xcommander/src/xdocs/book.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- book.xml 6 Jun 2002 18:46:16 -0000 1.5
+++ book.xml 30 Jun 2002 09:08:45 -0000 1.6
@@ -10,7 +10,7 @@
<menu label="About">
<menu-item label="Overview" href="index.html"/>
<menu-item type="external" label="API Docs" href="http://hack.hack"/>
- <menu-item type="external" id="downloads" label="Download" href="http://cvs.apache.org/~hammant/apps/"/>
+ <menu-item type="external" id="downloads" label="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-apps/"/>
</menu>
</book>
1.1 jakarta-avalon-apps/site/src/xdocs/announcement.xml
Index: announcement.xml
===================================================================
<?xml version="1.0"?>
<announcement>
<title>Avalon Applications</title>
<project site="http://jakarta.apache.org/avalon">
<title>Avalon</title>
<description>
The Avalon project is Apache's Java Server Framework. It is
separated into six sub projects: Framework, Excalibur, LogKit,
Cornerstone, Phoenix and Applications. Its purpose is to simplify
server side programming for Java based projects. It
formalizes serveral best of breed practices and patterns for
server side programming.
</description>
</project>
<project site="http://jakarta.apache.org/avalon/apps">
<title>Avalon Applications</title>
<description>
<para>
Avalon Applications are an assortment of applications and demos for the
Avalon Phoenix micro kernel.
</para>
</description>
<changes version="@version@" file="changes.xml"/>
<downloads name="Avalon Apps" base="http://jakarta.apache.org/builds/jakarta-avalon-apps"/>
</project>
</announcement>
1.1 jakarta-avalon-apps/site/src/xdocs/changes.xml
Index: changes.xml
===================================================================
<?xml version="1.0"?>
<changes title="Avalon Applications - History of Changes">
<properties>
<title>Changes</title>
</properties>
<devs>
<author name="Paul_Hammant@yahoo.com" email="hammant@apache.org" id="PH"/>
</devs>
<release version="1.0" date="Unreleased">
<action dev="PH" type="add">
First cut of various applications.
</action>
</release>
</changes>
1.1 jakarta-avalon-apps/site/tools/announcement2header.xsl
Index: announcement2header.xsl
===================================================================
<?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>
<h1 align="center"><xsl:value-of select="title"/><xsl:text> Released</xsl:text></h1>
<xsl:apply-templates select="abstract"/>
<xsl:for-each select="project">
<h2>About <xsl:value-of select="title"/></h2>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:template>
<xsl:template match="project">
<p><xsl:apply-templates select="description"/></p>
<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="abstract">
<div align="center">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="para">
<p><xsl:apply-templates/></p>
</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>
1.1 jakarta-avalon-apps/site/tools/announcement2readme.xsl
Index: announcement2readme.xsl
===================================================================
<?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>
<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>
1.1 jakarta-avalon-apps/site/tools/announcement2site.xsl
Index: announcement2site.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:my-ext="ext1"
extension-element-prefixes="my-ext"
>
<xsl:output method="xml" indent="yes"/>
<!--The component and its script are in the lxslt namespace and define the
implementation of the extension.-->
<lxslt:component prefix="my-ext" elements="timelapse" functions="getdate">
<lxslt:script lang="javascript">
var month = new Array (
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
);
function getdate()
{
var d = new Date();
var mo = month[d.getMonth()];
var dy = d.getDate();
var yr = d.getFullYear();
var dateString = dy + " " + mo + " " + yr;
return dateString;
}
</lxslt:script>
</lxslt:component>
<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">
<h3><xsl:value-of select="my-ext:getdate()"/> - <xsl:value-of select="title"/><xsl:text> Released</xsl:text></h3>
<xsl:apply-templates select="abstract"/>
<xsl:for-each select="project">
<p><b>About <xsl:value-of select="title"/>:</b>
<xsl:apply-templates select="."/>
</p>
</xsl:for-each>
<hr noshade="" size="1"/>
</xsl:template>
<xsl:template match="project">
<xsl:apply-templates select="description"/>
<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>
<!-- ignore changelog for site -->
</xsl:template>
<xsl:template match="abstract">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="description">
<xsl:choose>
<xsl:when test="para">
<xsl:apply-templates select="para[position()=1]/node()"/>
<xsl:apply-templates select="para[position()>1]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="para">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="ulink">
<a href="{@uri}"><xsl:value-of select="."/></a>
</xsl:template>
</xsl:stylesheet>
1.1 jakarta-avalon-apps/site/tools/announcement2txt.xsl
Index: announcement2txt.xsl
===================================================================
<?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>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>