You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(157) |
Nov
(121) |
Dec
(19) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(34) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <rga...@us...> - 2002-10-28 17:16:53
|
Update of /cvsroot/csms/csms-core/src/documentation/xdocs
In directory usw-pr-cvs1:/tmp/cvs-serv13565
Modified Files:
book.xml
Log Message:
Start of the manual - now need to wrte it!
Index: book.xml
===================================================================
RCS file: /cvsroot/csms/csms-core/src/documentation/xdocs/book.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** book.xml 22 Oct 2002 14:44:24 -0000 1.5
--- book.xml 28 Oct 2002 17:16:48 -0000 1.6
***************
*** 16,19 ****
--- 16,20 ----
<menu-item label="Introduction" href="index.html"/>
<menu-item label="Download/Install" href="downloadAndInstall/index.html"/>
+ <menu-item label="Manual" href="manual/index.html"/>
</menu>
|
|
From: <rga...@us...> - 2002-10-28 17:16:33
|
Update of /cvsroot/csms/csms-core/src/documentation/xdocs/downloadAndInstall
In directory usw-pr-cvs1:/tmp/cvs-serv13473
Modified Files:
book.xml
Log Message:
Start of the manual - now need to wrte it!
Index: book.xml
===================================================================
RCS file: /cvsroot/csms/csms-core/src/documentation/xdocs/downloadAndInstall/book.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** book.xml 28 Oct 2002 13:04:51 -0000 1.2
--- book.xml 28 Oct 2002 17:16:29 -0000 1.3
***************
*** 17,20 ****
--- 17,21 ----
<menu-item label="Download/Install" href="index.html"/>
<menu-item label="Configuration" href="configuration.html"/>
+ <menu-item label="Manual" href="../manual/index.html"/>
</menu>
|
|
From: <rga...@us...> - 2002-10-28 17:16:21
|
Update of /cvsroot/csms/csms-core/src/documentation/xdocs/manual
In directory usw-pr-cvs1:/tmp/cvs-serv13356
Added Files:
index.xml book.xml
Log Message:
Start of the manual - now need to wrte it!
--- NEW FILE: index.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
"./dtd/document-v11.dtd">
<document>
<header>
<title>CSMS - Manual</title>
<authors>
<person id="rdg" name="Ross D. Gardler" email="ro...@sa..." />
</authors>
</header>
<body>
<section>
<title>Community Sports Management System - Manual</title>
<p>Documentation has not yet been moved over from our Wiki site, you can
view what there is
<link href="http://www.fanfoot.com/wiki/Wiki.jsp?page=AutomatedScoring">
over there</link>
.</p>
</section>
</body>
</document>
--- NEW FILE: book.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//APACHE//DTD Cocoon Documentation Book V1.0//EN" "dtd/book-cocoon-v10.dtd">
<book software="Community Sports Management System"
title="CSMS Community Home"
copyright="@year@ WkWyW.net"
xmlns:xlink="http://www.w3.org/1999/xlink">
<menu label="Community">
<menu-item label="Project Home" href="http://sourceforge.net/projects/csms"/>
<!--<menu-item label="License" href="license.html"/>-->
<menu-item label="Constitution" href="../constitution.html"/>
</menu>
<menu label="Docs">
<menu-item label="Introduction" href="../index.html"/>
<menu-item label="Download/Install" href="../downloadAndInstall/index.html"/>
<menu-item label="Manual" href="index.html"/>
</menu>
<menu label="Code">
<menu-item label="Javadocs" href="../javadocs/"/>
<menu-item label="Java Source Ref" href="../javasrc/"/>
<menu-item label="Code Style Checks" href="../checkstyle/index.html"/>
<menu-item label="Dependencies" href="../jdepend/index.html"/>
<menu-item label="Unit tests" href="../junit/"/>
</menu>
</book>
|
|
From: <rga...@us...> - 2002-10-28 17:00:20
|
Update of /cvsroot/csms/csms-core/src/documentation/xdocs/manual In directory usw-pr-cvs1:/tmp/cvs-serv5647/manual Log Message: Directory /cvsroot/csms/csms-core/src/documentation/xdocs/manual added to the repository |
|
From: <rga...@us...> - 2002-10-28 13:54:26
|
Update of /cvsroot/csms/csms-core/src/resources/conf
In directory usw-pr-cvs1:/tmp/cvs-serv32558
Added Files:
Scores2HTML.xsl ScoringConfig.xsl footballEvents.xml
players.xml
Log Message:
Added initial configuration files for Fanfoot fantasy football
--- NEW FILE: Scores2HTML.xsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Document : Scores2HTML.xsl
Created on : 24 September 2002, 18:20
Author : rgardler
Description:
Transforms a scores XML document into HTML
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text/html"/>
<!-- Create the keys for the players -->
<xsl:key name="players" match = "/scores/player" use="@name"/>
<!-- template rule matching source root element -->
<xsl:template match="/">
<html>
<body>
<h1>Fanfoot Scores</h1>
<table>
<xsl:apply-templates select="scores/player[generate-id()=generate-id(key('players',@name))]/@name"
mode="summary"/>
</table>
<br/>
<table>
<tr><th>Errors</th></tr>
<xsl:apply-templates select="scores/error"/>
</table>
<br/>
<xsl:apply-templates select="scores/player[generate-id()=generate-id(key('players',@name))]/@name"
mode="detail"/>
</body>
</html>
</xsl:template>
<xsl:template match="@name" mode="summary">
<xsl:variable name="name"><xsl:value-of select="."/></xsl:variable>
<tr>
<td><xsl:value-of select="."/></td>
<td><xsl:value-of select="sum(/scores/player[@name=$name]/points)"/></td>
</tr>
</xsl:template>
<xsl:template match="@name" mode="detail">
<xsl:variable name="name"><xsl:value-of select="."/></xsl:variable>
<table>
<tr>
<th colspan='2'><xsl:value-of select="."/></th>
</tr>
<xsl:apply-templates select="key('players',.)" mode="detail"/>
<tr>
<th>Total</th>
<th>
<xsl:value-of select="sum(/scores/player[@name=$name]/points)"/>
</th>
</tr>
</table>
</xsl:template>
<xsl:template match="player" mode="detail">
<tr>
<td><xsl:value-of select="event/type"/></td>
<td><xsl:value-of select="points"/></td>
</tr>
</xsl:template>
<xsl:template match="error">
<tr>
<td><xsl:value-of select="."/></td>
</tr>
</xsl:template>
</xsl:stylesheet>
--- NEW FILE: ScoringConfig.xsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Document : BBCScoringConfigURL.xsl
Created on : 24 September 2002, 14:07
Author : rgardler
Description:
Transforms an Events XML document into a score XML document
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="text/xml"/>
<!-- fixme the following pathname should be an URL -->
<xsl:variable name="playersDataSource">http://www.fanfoot.com/test/players.xml</xsl:variable>
<!-- match everything not match elsewhere and do nothing with it! -->
<xsl:template match="*"/>
<!-- template rule matching source root element -->
<xsl:template match="/">
<scores>
<!-- 4 points for every goal scored. -->
<xsl:call-template name="goalScorers"/>
<!-- 2 points for every goal-assist -->
<xsl:call-template name="goalAssists"/>
<!-- 1 point for any player playing 45 minutes or more of a match (excludes injury time). -->
<xsl:call-template name="appearance"/>
<!-- 4 points for a Goalkeeper, Full Back or Centre Back who does not concede a goal whilst on the pitch, providing they play for 70 minutes or more. -->
<xsl:call-template name="cleanSheet"/>
<!-- Goalkeepers, Full Backs and Centre Backs will lose 1 point for every goal conceded whilst they are on the pitch. -->
<xsl:call-template name="goalsConceeded"/>
<!-- Any player receiving a Yellow Card will lose 1 point for each time they receive a card (i.e. first offence -1 pt., second offence -1 pt. (total -2 pts.)). -->
<xsl:call-template name="yellowCards"/>
<!-- Any player receiving a straight Red Card will lose 3 points. -->
<xsl:call-template name="sendingOffs"/>
</scores>
</xsl:template>
<!-- 4 points for every goal scored. -->
<xsl:template name="goalScorers">
<xsl:for-each select="//event[type='goal']">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="./player"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Goal</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<!-- 2 points for every goal-assist -->
<xsl:template name="goalAssists">
<xsl:for-each select="//event[type='assist']">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="./player"/></xsl:with-param>
<xsl:with-param name="points">2</xsl:with-param>
<xsl:with-param name="eventType">Assist</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<!-- 1 point for any player playing 45 minutes or more of a match (excludes injury time). -->
<xsl:template name="appearance">
<xsl:for-each select="//event[type='teamStarter'] | //event[type='substituteStarter']">
<xsl:variable name="playerSurname"><xsl:value-of select="./player"/></xsl:variable>
<xsl:variable name="playerName">
<xsl:call-template name="getPlayerFullName">
<xsl:with-param name="playerSurname"><xsl:value-of select="$playerSurname"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="starts-with($playerName, 'ERROR')">
<error>
<xsl:value-of select="concat('Unable to assign appearance points (', $playerName, ')')"/>
</error>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="timeOnPitch">
<xsl:call-template name="calculateTimeOnPitch">
<xsl:with-param name="playerFullName" select="$playerName"/>
<xsl:with-param name="playerSurname" select="$playerSurname"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$timeOnPitch > 2699">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerName"/></xsl:with-param>
<xsl:with-param name="points">1</xsl:with-param>
<xsl:with-param name="eventType">Appearance</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
<!-- 4 points for a Goalkeeper, Full Back or Centre Back who does not concede a goal whilst on the pitch, providing they play for 70 minutes or more. -->
<xsl:template name="cleanSheet">
<xsl:for-each select="//event[type='result']">
<xsl:variable name="homeTeam"><xsl:value-of select="homeTeam"/></xsl:variable>
<xsl:variable name="homeScore"><xsl:value-of select="homeScore"/></xsl:variable>
<xsl:variable name="awayTeam"><xsl:value-of select="awayTeam"/></xsl:variable>
<xsl:variable name="awayScore"><xsl:value-of select="awayScore"/></xsl:variable>
<xsl:for-each select="//event[type='teamStarter'] | //event[type='substituteStarter']">
<xsl:variable name="currentTeam"><xsl:value-of select="team"/></xsl:variable>
<xsl:variable name="playerFullName">
<xsl:call-template name="getPlayerFullName">
<xsl:with-param name="playerSurname"><xsl:value-of select="player"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="playerPosition">
<xsl:call-template name="getPlayerPosition">
<xsl:with-param name="playerSurname"><xsl:value-of select="player"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="timeOnPitch">
<xsl:call-template name="calculateTimeOnPitch">
<xsl:with-param name="playerFullName" select="$playerFullName"/>
<xsl:with-param name="playerSurname" select="player"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$timeOnPitch > 4199">
<xsl:choose>
<xsl:when test="$currentTeam = $awayTeam">
<xsl:if test="$homeScore = 0">
<xsl:choose>
<xsl:when test="$playerPosition = 'Goalkeeper'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$currentTeam"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Goalkeeper Clean Sheet</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Full Back'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$currentTeam"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Full Back Clean Sheet</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Centre Back'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$currentTeam"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Centre Back Clean Sheet</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Midfield'">
</xsl:when>
<xsl:when test="$playerPosition = 'Forward'">
</xsl:when>
<xsl:otherwise>
<error>
<xsl:value-of select="concat('Unable to determine player position to award clean sheet bonus (', $playerFullName, ' of ', $currentTeam, ')')"/>
</error>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:when>
<xsl:when test="$currentTeam = $homeTeam">
<xsl:if test="$awayScore = 0">
<xsl:choose>
<xsl:when test="$playerPosition = 'Goalkeeper'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$currentTeam"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Goalkeeper Clean Sheet</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Full Back'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$currentTeam"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Full Back Clean Sheet</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Centre Back'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$currentTeam"/></xsl:with-param>
<xsl:with-param name="points">4</xsl:with-param>
<xsl:with-param name="eventType">Centre Back Clean Sheet</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Midfield'">
</xsl:when>
<xsl:when test="$playerPosition = 'Forward'">
</xsl:when>
<xsl:otherwise>
<error>
<xsl:value-of select="concat('Unable to determine player position to award clean sheet bonus (', $playerFullName, ' of ', $currentTeam, ')')"/>
</error>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
<!-- Goalkeepers, Full Backs and Centre Backs will lose 1 point for every goal conceded whilst they are on the pitch. -->
<xsl:template name="goalsConceeded">
<xsl:for-each select="//event[type='goal']">
<xsl:variable name="goalMinutes"><xsl:value-of select="normalTimeMinutes"/></xsl:variable>
<xsl:variable name="scoringTeam">
<xsl:call-template name="getPlayerTeam">
<xsl:with-param name="playerFullName"><xsl:value-of select="player"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:for-each select="//event[type='teamStarter'] | //event[type='substituteStarter']">
<xsl:variable name="playerFullName">
<xsl:call-template name="getPlayerFullName">
<xsl:with-param name="playerSurname"><xsl:value-of select="player"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="playerTeam">
<xsl:call-template name="getPlayerTeam">
<xsl:with-param name="playerSurname"><xsl:value-of select="player"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="starts-with($scoringTeam, 'ERROR')">
<error>
<xsl:value-of select="concat('Unable to deduct conceeded goal points becuase cannot identify scoring team (', $scoringTeam, ')')"/>
</error>
</xsl:when>
<xsl:when test="starts-with($playerTeam, 'ERROR')">
<error>
<xsl:value-of select="concat('Unable to deduct conceeded goal points becuase cannot identify scoring team (', $playerTeam, ')')"/>
</error>
</xsl:when>
<xsl:when test="$playerTeam != $scoringTeam">
<!-- get player start time -->
<xsl:variable name="onMinutes">
<xsl:choose>
<!-- if the player was a teamStarter then start time is 00:00 -->
<xsl:when test="self::node()[type='teamStarter']">00</xsl:when>
<!-- if player was a teamSubstitute and they were subbed on then start time is xx:xx -->
<xsl:when test="//event[type='substitution' and playerOn=$playerFullName]"><xsl:value-of select="//event[type='substitution' and playerOn=$playerFullName]/normalTimeMinutes"/></xsl:when>
<!-- otherwise the player did not play at all -->
<xsl:otherwise>Did Not Play</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- get stop time -->
<xsl:variable name="offMinutes">
<xsl:choose>
<!-- if the player was subbed off then their stop time is xx:xx -->
<xsl:when test="//event[type='substitution' and playerOff=$playerFullName]"><xsl:value-of select="//event[type='substitution' and playerOff=$playerFullName]/normalTimeMinutes"/></xsl:when>
<!-- if the player was sent off then their stop time is xx:xx -->
<xsl:when test="//event[type='sendingOff' and player=$playerFullName]"><xsl:value-of select="//event[type='sendingOff' and player=$playerFullName]/normalTimeMinutes"/></xsl:when>
<!-- otherwise the stop time was 90:00 -->
<xsl:otherwise>90</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- test to see if the player was on the pitch when the goal was scored -->
<xsl:if test="$offMinutes != 'Did Not Play'">
<xsl:if test="$goalMinutes < $offMinutes and $goalMinutes > onMinutes">
<xsl:variable name="playerPosition">
<xsl:call-template name="getPlayerPosition">
<xsl:with-param name="playerSurname"><xsl:value-of select="player"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$playerPosition = 'Goalkeeper'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$playerTeam"/></xsl:with-param>
<xsl:with-param name="points">-1</xsl:with-param>
<xsl:with-param name="eventType">Goalkeeper Conceeded Goal</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Full Back'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$playerTeam"/></xsl:with-param>
<xsl:with-param name="points">-1</xsl:with-param>
<xsl:with-param name="eventType">Full Back Conceeded Goal</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Centre Back'">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="$playerFullName"/></xsl:with-param>
<xsl:with-param name="playersTeam"><xsl:value-of select="$playerTeam"/></xsl:with-param>
<xsl:with-param name="points">-1</xsl:with-param>
<xsl:with-param name="eventType">Centre Back Conceeded Goal</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:when test="$playerPosition = 'Midfield'">
</xsl:when>
<xsl:when test="$playerPosition = 'Forward'">
</xsl:when>
<xsl:otherwise>
<error>
<xsl:value-of select="concat('Unable to determine player position to deduct conceeded goal points (', $playerFullName, ' of ', $playerTeam, ')')"/>
</error>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
<!-- Any player receiving a Yellow Card will lose 1 point for each time they receive a card (i.e. first offence -1 pt., second offence -1 pt. (total -2 pts.)). -->
<xsl:template name="yellowCards">
<xsl:for-each select="//event[type='booking']">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="player"/></xsl:with-param>
<xsl:with-param name="points">-1</xsl:with-param>
<xsl:with-param name="eventType">Yellow Card</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<!-- Any player receiving a straight Red Card will lose 3 points. -->
<!-- FIXME ensure a player sent off for two yellows does not get the -3 penalty, just the two -1's for the yellows -->
<!-- FIXME ensure a player recieveing 1 yellow and 1 red gets - 4 points (-1 + -3) -->
<xsl:template name="sendingOffs">
<xsl:for-each select="//event[type='sendingOff']">
<xsl:call-template name="getPointsNode">
<xsl:with-param name="playerName"><xsl:value-of select="player"/></xsl:with-param>
<xsl:with-param name="points">-3</xsl:with-param>
<xsl:with-param name="eventType">Sending Off</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<!-- Return the full player name -->
<xsl:template name="getPlayerFullName">
<xsl:param name="playerSurname"/>
<xsl:variable name="playerFirstName">
<xsl:value-of select="document($playersDataSource)/players/player[surname=$playerSurname]/firstName[@type='main']"/>
</xsl:variable>
<!-- Return the result -->
<xsl:choose>
<xsl:when test="string-length($playerFirstName) > 0"><xsl:value-of select="concat($playerFirstName, ' ', $playerSurname)"/></xsl:when>
<xsl:otherwise><xsl:value-of select="concat('ERROR: Unknown Player (', $playerSurname, ')')"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Return the player position -->
<xsl:template name="getPlayerPosition">
<xsl:param name="playerSurname"/>
<xsl:variable name="playerPosition">
<xsl:value-of select="document($playersDataSource)/players/player[surname=$playerSurname]/position"/>
</xsl:variable>
<!-- Return the result -->
<xsl:choose>
<xsl:when test="string-length($playerPosition) > 0"><xsl:value-of select="$playerPosition"/></xsl:when>
<xsl:otherwise><xsl:value-of select="concat('ERROR: Unknown Player Position (surname = ', $playerSurname, ')')"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Return the player team -->
<xsl:template name="getPlayerTeam">
<xsl:param name="playerFullName"/>
<xsl:param name="playerSurname"/>
<xsl:variable name="playerTeam">
<xsl:choose>
<xsl:when test="string-length($playerSurname) > 0">
<xsl:value-of select="document($playersDataSource)/players/player[surname=$playerSurname]/team"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="surname"><xsl:value-of select="substring-after($playerFullName, ' ')"/></xsl:variable>
<xsl:value-of select="document($playersDataSource)/players/player[surname=$surname]/team"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Return the result -->
<xsl:choose>
<xsl:when test="string-length($playerTeam) > 0"><xsl:value-of select="$playerTeam"/></xsl:when>
<xsl:otherwise><xsl:value-of select="concat('ERROR: Unknown team for ', $playerFullName, $playerSurname, ')')"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Return the number of seconds a player was on the pitch -->
<xsl:template name="calculateTimeOnPitch">
<xsl:param name="playerFullName"/>
<xsl:param name="playerSurname"/>
<!-- get start time -->
<xsl:variable name="startMinutes">
<xsl:choose>
<!-- if the player started then their start time is 00:00 -->
<xsl:when test="//event[type='teamStarter' and player=$playerSurname]">0</xsl:when>
<!-- if the player was subbed on then their start time is xx:xx -->
<xsl:when test="//event[type='substitution' and playerOn=$playerFullName]"><xsl:value-of select="//event[type='substitution' and playerOn=$playerFullName]/normalTimeMinutes"/></xsl:when>
<!-- otherwise the player Did not play -->
<xsl:otherwise>Did not play</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="startSeconds">
<xsl:choose>
<!-- if the player started then their start time is 00:00 -->
<xsl:when test="//event[type='teamStarter' and player=$playerSurname]">0</xsl:when>
<!-- if the player was subbed on then their start time is xx:xx -->
<xsl:when test="//event[type='substitution' and playerOn=$playerFullName]"><xsl:value-of select="//event[type='substitution' and playerOn=$playerFullName]/normalTimeSeconds"/></xsl:when>
<!-- otherwise the player Did not play -->
<xsl:otherwise>Did not play</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- get stop time -->
<xsl:variable name="endMinutes">
<xsl:choose>
<!-- if the player was subbed off then their stop time is xx:xx -->
<xsl:when test="//event[type='substitution' and playerOff=$playerFullName]"><xsl:value-of select="//event[type='substitution' and playerOff=$playerFullName]/normalTimeMinutes"/></xsl:when>
<!-- if the player was sent off then their stop time is xx:xx -->
<xsl:when test="//event[type='sendingOff' and player=$playerFullName]"><xsl:value-of select="//event[type='sendingOff' and player=$playerFullName]/normalTimeMinutes"/></xsl:when>
<!-- otherwise the stop time was 90:00 -->
<xsl:otherwise>90</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="endSeconds">
<xsl:choose>
<!-- if the player was subbed off then their stop time is xx:xx -->
<xsl:when test="//event[type='substitution' and playerOff=$playerFullName]"><xsl:value-of select="//event[type='substitution' and playerOff=$playerFullName]/normalTimeSeconds"/></xsl:when>
<!-- if the player was sent off then their stop time is xx:xx -->
<xsl:when test="//event[type='sendingOff' and player=$playerFullName]"><xsl:value-of select="//event[type='sendingOff' and player=$playerFullName]/normalTimeSeconds"/></xsl:when>
<!-- otherwise the stop time was 90:00 -->
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="minutesAsSeconds">
<xsl:choose>
<xsl:when test="$startMinutes != 'Did not Play'"><xsl:value-of select="($endMinutes - $startMinutes) * 60"/></xsl:when>
<xsl:otherwise>Did not play</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="seconds">
<xsl:choose>
<xsl:when test="$startSeconds != 'Did not Play'"><xsl:value-of select="($endSeconds - $startSeconds)"/></xsl:when>
<xsl:otherwise>Did not play</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Finally return the time the player was on the pitch in seconds -->
<xsl:choose>
<xsl:when test="$minutesAsSeconds"><xsl:value-of select="$minutesAsSeconds + $seconds"/></xsl:when>
<xsl:otherwise>Did not play</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Return a Points Node representing a scoring event -->
<xsl:template name="getPointsNode">
<xsl:param name="playerName"/>
<xsl:param name="playersTeam"/>
<xsl:param name="points"/>
<xsl:param name="eventType"/>
<player>
<xsl:attribute name="name">
<xsl:value-of select="$playerName"/>
</xsl:attribute>
<xsl:attribute name="team">
<xsl:value-of select="$playersTeam"/>
</xsl:attribute>
<points><xsl:value-of select="$points"/></points>
<event>
<type><xsl:value-of select="$eventType"/></type>
</event>
</player>
</xsl:template>
</xsl:stylesheet>
--- NEW FILE: footballEvents.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : footballEvents.xml
Created on : 21 September 2002, 11:13
Author : rgardler
Description:
A descrption of the events that can be found
in a real life English Rules Football game that
may have an influence on the Fantasy game.
This configuration file is parsed by the automated
scoring system (org.fanfoot.scoring) in order to
extract event information from a textual commentary
of a live game.
-->
<!--
Template Regular Expressions in common use:
Skip whole commentary sections: [a-zA-Z\s\(\)\.,\-:]
Player Names: (?:(?:[Mac|Mc|A-Z][a-z]*\s)(?!\d)){1,3}
-->
<events type="match">
<!-- Get the data for the UID of this match -->
<UID type="date_competition_homeTeam_awayTeam">
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="date">[A-Z][a-z]*,\s\d?\d\s[A-Z][a-z]*,\s\d\d\d\d</part>
<part name="competition">[\s]*Barclaycard\sPremiership[\s]*</part>
<part name="homeTeam">[A-Z][a-zA-Z\s]*[\s]*</part>
<unwantedPart>\d[\s]*</unwantedPart>
<unwantedPart>-[\s]*</unwantedPart>
<unwantedPart>\d[\s]*</unwantedPart>
<part name="awayTeam">(?:[A-Z][a-z]*\s)*</part>
</pattern>
</UID>
<!-- Extract the default information for this match -->
<event type="result">
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="date">[A-Z][a-z]*,\s\d?\d\s[A-Z][a-z]*,\s\d\d\d\d</part>
<part name="competition">[\s]*Barclaycard\sPremiership[\s]*</part>
<part name="homeTeam">[A-Z][a-zA-Z\s]*[\s]*</part>
<part name="homeScore">\d[\s]*</part>
<unwantedPart>-[\s]*</unwantedPart>b
<part name="awayScore">\d</part>
<unwantedPart>[\s]*</unwantedPart>
<part name="awayTeam">(?:[A-Z][a-z]*\s)*</part>
</pattern>
</event>
<!-- Extract goal events -->
<event type="goal">
<duplicateDetection>
<part name="normalTimeMinutes"/>
<part name="normalTimeSeconds"/>
<part name="injuryTimeMinutes"/>
<part name="injuryTimeSeconds"/>
<part name="player"/>
</duplicateDetection>
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>\s[Gg]oal\s-\s</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][a-z]*\s)(?!\d)){1,3}</part>
</pattern>
</event>
<event type="assist">
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s\.\(\)\d-,']*[Aa]ssist\s?\(?[a-zA-Z]*\)?\s?by\s?</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>
</pattern>
</event>
<event type="booking">
<duplicateDetection>
<part name="normalTimeMinutes"/>
<part name="normalTimeSeconds"/>
<part name="injuryTimeMinutes"/>
<part name="injuryTimeSeconds"/>
<part name="player"/>
</duplicateDetection>
<!-- Get a booking that is the first sentence in the commentary snippet -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>\s*Booking\s*</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>
<unwantedPart>[^)]*\)\s*[Bb]ooked\sfor\s</unwantedPart>
<part name="reason">[^\.]*</part>
</pattern>
<!-- Get a booking that is the second sentence in the commentary snippet -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[^\.]*\.\s*</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>
<unwantedPart>[^)]*\)\s*[Bb]ooked\sfor\s</unwantedPart>
<part name="reason">[^\.]*</part>
</pattern>
<!-- Get a booking that is the third sentence in the commentary snippet -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[^\.]*\.\s*</unwantedPart>
<unwantedPart>[^\.]*\.\s*</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>
<unwantedPart>[^)]*\)\s*[Bb]ooked\sfor\s</unwantedPart>
<part name="reason">[^\.]*</part>
</pattern>
<!-- Get a booking that is the fourth sentence in the commentary snippet -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[^\.]*\.\s*</unwantedPart>
<unwantedPart>[^\.]*\.\s*</unwantedPart>
<unwantedPart>[^\.]*\.\s*</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>
<unwantedPart>[^)]*\)\s*[Bb]ooked\sfor\s</unwantedPart>
<part name="reason">[^\.]*</part>
</pattern>
</event>
<event type="sendingOff">
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>\s[Ss]ent\s[Oo]ff\s</unwantedPart>
<part name="player">(?:(?:[Mac|Mc|A-Z][a-z]*\s)(?!\d)){1,3}</part>
</pattern>
</event>
<event type="substitution">
<!-- The first substitution in a commentary slot -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s\(\)\.,\-]*[Ss]ubstitution\s?:\s?</unwantedPart>
<part name="playerOff">(?:(?:[Mac|Mc|A-Z][a-z]*\s)){1,3}</part>
<unwantedPart>replaced\sby\s</unwantedPart>
<part name="playerOn">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>]
<unwantedPart>\s?\(\s?</unwantedPart>
<part name="reason">[a-zA-Z\s]*</part>
<unwantedPart>\s?\)</unwantedPart>
</pattern>
<!-- The second substitution in a commentary slot -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s\(\)\.,\-]*[Ss]ubstitution\s?:\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s\(\)\.,\-]*[Ss]ubstitution\s?:\s</unwantedPart>
<part name="playerOff">(?:(?:[Mac|Mc|A-Z][a-z]*\s)){1,3}</part>
<unwantedPart>replaced\sby\s</unwantedPart>
<part name="playerOn">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>]
<unwantedPart>\s?\(\s?</unwantedPart>
<part name="reason">[a-zA-Z\s]*</part>
<unwantedPart>\s?\)</unwantedPart>
</pattern>
<!-- The third substitution in a commentary slot -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z]+\s?[a-zA-Z]*\s?[Ss]ubstitution\s?:\s</unwantedPart>
<part name="playerOff">(?:(?:[Mac|Mc|A-Z][a-z]*\s)){1,3}</part>
<unwantedPart>replaced\sby\s</unwantedPart>
<part name="playerOn">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>]
<unwantedPart>\s?\(\s?</unwantedPart>
<part name="reason">[a-zA-Z\s]*</part>
<unwantedPart>\s?\)</unwantedPart>
</pattern>
<!-- The fourth substitution in a commentary slot -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z]+\s?[a-zA-Z]*\s?[Ss]ubstitution\s?:\s</unwantedPart>
<part name="playerOff">(?:(?:[Mac|Mc|A-Z][a-z]*\s)){1,3}</part>
<unwantedPart>replaced\sby\s</unwantedPart>
<part name="playerOn">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>]
<unwantedPart>\s?\(\s?</unwantedPart>
<part name="reason">[a-zA-Z\s]*</part>
<unwantedPart>\s?\)</unwantedPart>
</pattern>
<!-- The fifth substitution in a commentary slot -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z]+\s?[a-zA-Z]*\s?[Ss]ubstitution\s?:\s</unwantedPart>
<part name="playerOff">(?:(?:[Mac|Mc|A-Z][a-z]*\s)){1,3}</part>
<unwantedPart>replaced\sby\s</unwantedPart>
<part name="playerOn">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>]
<unwantedPart>\s?\(\s?</unwantedPart>
<part name="reason">[a-zA-Z\s]*</part>
<unwantedPart>\s?\)</unwantedPart>
</pattern>
<!-- The sixth substitution in a commentary slot -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<part name="normalTimeMinutes">\d\d?</part>
<unwantedPart>:</unwantedPart>
<part name="normalTimeSeconds">\d\d</part>
<unwantedPart>\s*\(?</unwantedPart>
<part name="injuryTimeMinutes">\d?\d?</part>
<unwantedPart>:?</unwantedPart>
<part name="injuryTimeSeconds">\d?\d?</part>
<unwantedPart>\)?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z\s]*:[a-zA-Z\s]*\([a-zA-Z\)]*\.\s?</unwantedPart>
<unwantedPart>[a-zA-Z]+\s?[a-zA-Z]*\s?[Ss]ubstitution\s?:\s</unwantedPart>
<part name="playerOff">(?:(?:[Mac|Mc|A-Z][a-z]*\s)){1,3}</part>
<unwantedPart>replaced\sby\s</unwantedPart>
<part name="playerOn">(?:(?:[Mac|Mc|A-Z][A-Za-z']*\s)(?!\))){1,3}</part>]
<unwantedPart>\s?\(\s?</unwantedPart>
<part name="reason">[a-zA-Z\s]*</part>
<unwantedPart>\s?\)</unwantedPart>
</pattern>
</event>
<event type="teamStarter">
<!-- Team 1 - Player 1 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 2 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 3 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 4 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 5 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 6 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 7 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 8 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 9 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 10 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 1 - Player 11 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>.*\d\d?:\d\d</unwantedPart>
<unwantedPart>(?:[^\.]*\.)*\s*</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
<unwantedPart>Subs:</unwantedPart>
</pattern>
<!-- Team 2 - Player 1 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 2 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 3 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 4 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 5 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 6 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 7 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 8 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 9 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:\s*(?:[a-zA-z]*\s*,\s*){4,}[a-zA-z]*\s*</unwantedPart>
<unwantedPart>(?![a-zA-Z,\s]*Ref:)</unwantedPart>
<part name="team">(?:(?:[A-Z][a-z]*)\s)*</part>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<unwantedPart>[^,]*,</unwantedPart>
<part name="player">[^,]*</part>
</pattern>
<!-- Team 2 - Player 10 -->
<pattern>
<sourceType>BBC Text Commentary</sourceType>
<unwantedPart>Subs:...
[truncated message content] |
|
From: <rga...@us...> - 2002-10-28 13:50:40
|
Update of /cvsroot/csms/csms-core/src/resources/conf In directory usw-pr-cvs1:/tmp/cvs-serv31615/conf Log Message: Directory /cvsroot/csms/csms-core/src/resources/conf added to the repository |
|
From: <rga...@us...> - 2002-10-28 13:50:22
|
Update of /cvsroot/csms/csms-core/src/resources In directory usw-pr-cvs1:/tmp/cvs-serv31507/resources Log Message: Directory /cvsroot/csms/csms-core/src/resources added to the repository |
|
From: <rga...@us...> - 2002-10-28 13:04:54
|
Update of /cvsroot/csms/csms-core/src/documentation/xdocs/downloadAndInstall
In directory usw-pr-cvs1:/tmp/cvs-serv12091
Modified Files:
book.xml
Added Files:
configuration.xml
Log Message:
Added info about configuring the application (unfortunately this doesn't work on Linux yet, untested on WIndows)
--- NEW FILE: configuration.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
"./dtd/document-v11.dtd">
<document>
<header>
<title>CSMS - Configuration</title>
<authors>
<person id="rdg" name="Ross D. Gardler" email="ro...@sa..." />
</authors>
</header>
<body>
<section>
<title>Introduction</title>
<p>Currently the Community Sports Management System consists
of the very beginnings of one of the sports modules. This module
provides facilites to manage a fantasy Football (that's Soccer to
our American friends), However, this module can easily be adapted
to provide other Fantasy Sports games by providing additional
configuration files that define the rules for the game.</p>
<p>These configuration files are, in the default installation,
loaded from the internet, however, you can configure the locations they
are loaded from in the configuraiton dialog of the GUI interface as described below. Example
configuration files (the same ones available on the Internet are avilable in
the <code>src/resources/conf</code> directory of the source distributions. If you
wish to fix any bugs found in the online config files, please configure your
application to use these local files, edit them and supply patches to us
via the <link href="http://sourceforge.net/tracker/?atid=509510&group_id=65029&func=browse">patch tracking system</link>. In fact, changing the settings
to the local versions of the files will make the system run faster since it will not
have to download the files from the Internet, however, you will not automatically
benifit from fixes in the files.</p>
<fixme author="rdg">Move all docs about the config files to here from the wiki site. In the
meantime, visitors can view the docs on <link href="http://www.fanfoot.com/wiki/Wiki.jsp?page=AutomatedScoring">our Wkii</link></fixme>
</section>
<section>
<title>Configuring The Fantasy Sports Module</title>
<p>The following preferneces will define where the configuration files will be loaded from.
You can change the default settings by selecting the <code>Preferences</code> option in the
<code>Configuration</code> menu.</p>
<table>
<caption>Config File Load Paths</caption>
<tr>
<th>Preference Name</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td>EventConfigurationFile</td>
<td>The URL from which the Event configuration file should be loaded.
This file defines a set of regular expression patterns that are used to extract
events from an information source concerning a real sports game. This file
is used to generate Events.xml a file that describes all the events in a real game
that may result in a scoring opportunity in the fantasy game.</td>
<td>http://www.fanfoot.com/test/footballEvents.xml</td>
</tr>
<tr>
<td>ScoringConfigurationFile</td>
<td>The URL from which to load the Scoring Configuration file will be loaded.
This file defines how events in real games are converted nto scores in the fantasy game.
It is an XSL file that processes the Events.xml file. When Events.xml is processed
with this stylesheet it should produce Scores.xml, a file representing all the
scoring events in a game.</td>
<td>http://www.fanfoot.com/test/ScoringConfig.xsl</td>
</tr>
<tr>
<td>Scores2HTMLStylsheet</td>
<td>The URL from which to download an XSL file used to convert the Scores.xml file
to an HTML file for display in the application.</td>
<td>http://www.fanfoot.com/test/Scores2HTML.xsl</td>
</tr>
</table>
<section>
<title>Misc Config Options</title>
<table>
<caption>Misc Config Options</caption>
<tr>
<th>Preference Name</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td>debug</td>
<td>Defines whether the appliation runs in debug mode or not.</td>
<td>true</td>
</tr>
</table>
</section>
</section>
</body>
</document>
Index: book.xml
===================================================================
RCS file: /cvsroot/csms/csms-core/src/documentation/xdocs/downloadAndInstall/book.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** book.xml 22 Oct 2002 14:45:28 -0000 1.1
--- book.xml 28 Oct 2002 13:04:51 -0000 1.2
***************
*** 16,19 ****
--- 16,20 ----
<menu-item label="Introduction" href="../index.html"/>
<menu-item label="Download/Install" href="index.html"/>
+ <menu-item label="Configuration" href="configuration.html"/>
</menu>
|
|
From: <rga...@us...> - 2002-10-28 13:03:31
|
Update of /cvsroot/csms/csms-core/lib In directory usw-pr-cvs1:/tmp/cvs-serv11574 Added Files: saafe-commons-0.1.0-dev-20021028.jar Removed Files: saafe-commons-0.1.0-dev-20021027.jar Log Message: Moving to a new build (improves preference handling) --- NEW FILE: saafe-commons-0.1.0-dev-20021028.jar --- (This appears to be a binary file; contents omitted.) --- saafe-commons-0.1.0-dev-20021027.jar DELETED --- |
|
From: <rga...@us...> - 2002-10-28 00:23:18
|
Update of /cvsroot/csms/csms-core
In directory usw-pr-cvs1:/tmp/cvs-serv12182
Modified Files:
centibuild.xml
Log Message:
CHanged the execution directory to reflect recent changes in Centipede
Index: centibuild.xml
===================================================================
RCS file: /cvsroot/csms/csms-core/centibuild.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** centibuild.xml 27 Oct 2002 21:18:31 -0000 1.8
--- centibuild.xml 28 Oct 2002 00:23:15 -0000 1.9
***************
*** 97,106 ****
<target name="run" depends="os-type, dist-bin">
<if>
<equals arg1="${isUnix}" arg2="true" />
<then>
! <exec executable="${basedir}/dist/bin/bin/csms"
! dir="${basedir}/dist/bin/bin" />
</then>
</if>
--- 97,107 ----
<target name="run" depends="os-type, dist-bin">
+ <echo>Execute directory is ${project.work.dir}/centipede/dist-bin</echo>
<if>
<equals arg1="${isUnix}" arg2="true" />
<then>
! <exec executable="${project.work.dir}/centipede/dist-bin/bin/csms"
! dir="${project.work.dir}/centipede/dist-bin/bin" />
</then>
</if>
***************
*** 110,115 ****
<then>
! <exec executable="${basedir}/dist/bin/bin/csms.bat"
! dir="${basedir}/dist/bin/bin" />
</then>
</if>
--- 111,116 ----
<then>
! <exec executable="${project.work.dir}/centipede/dist-bin/bin/csms.bat"
! dir="${project.work.dir}/centipede/dist-bin/bin" />
</then>
</if>
|
|
From: <rga...@us...> - 2002-10-27 23:50:14
|
Update of /cvsroot/csms/csms-core/lib In directory usw-pr-cvs1:/tmp/cvs-serv22548 Added Files: saafe-commons-0.1.0-dev-20021027.jar Removed Files: saafe-commons-0.1.0-alpha-dev-200210171832.jar Log Message: Upgrading to the latest jar, now enables editing of preference files --- NEW FILE: saafe-commons-0.1.0-dev-20021027.jar --- (This appears to be a binary file; contents omitted.) --- saafe-commons-0.1.0-alpha-dev-200210171832.jar DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:46:02
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/css
In directory usw-pr-cvs1:/tmp/cvs-serv19654
Added Files:
common.css page.css
Log Message:
Moving the skin into the new location required by Centipede
--- NEW FILE: common.css ---
html body, body div, body p, body th, body td, body li, body dl, body dd, input, select, textarea {
font-family: Arial, Helvetica, sans-serif;
}
p, ul, ol, dl {
margin-top: .67em;
margin-bottom: .67em;
}
table { width: 100%; font-size: 11px; }
caption {
text-align: center;
font-size: 16px;
text-weight: bold;
color: black;
background-color: #EEEEFF;}
th { text-align: center; text-weight: bold; background-color: #EEEEFF;}
td { font-family: Arial, Helvetica, sans-serif;
font-size: 11pt;}
th.body-table {
background-color: #BBBBFF;
}
td.body-table {
background-color: #EEEEFF;
vertical-align: top;
}
form {
margin-top: 0;
margin-bottom: 0;
}
body {
background-color: white;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-size: 11pt;
margin: 0px;
padding: 10px;
}
p {
text-align: justify;
}
div {
margin: 0px;
padding: 0px;
}
h1, h2, h3, h4, h5, h6 {
page-break-after: avoid;
color: black;
font-family: Verdana, Arial, sans-serif;
font-weight: bold;
padding: 0px;
margin: 0px;
margin-left: 40px;
}
h1 {
border: 1px solid #003366;
font-size: 18pt;
padding: 2px;
margin-bottom: 10px;
text-align: center;
background-color: #EEEEFF;
margin-left: 0px;
}
h2 {
font-size: 16pt;
}
h3 {
font-size: 14pt;
color: #000033;
}
h4 {
font-size: 12pt;
color: #000066;
}
h5 {
font-size: 11pt;
font-style: italic;
text-align: center;
color: #333399;
margin-left: 0px;
}
h6 {
font-size: 10pt;
text-align: center;
font-weight: normal;
color: #3333CC;
margin-left: 0px;
}
a, a:visited {
color: #336699;
}
a:hover, a:active {
color: #003366;;
}
#breadcrumbs {
border-top: 1px solid #003366;
border-bottom: 1px solid #003366;
margin-top: 10px;
margin-bottom: 20px;
padding-top: 0px;
padding-bottom: 2px;
padding-left: 10px;
font-size: 10pt;
font-weight: bold;
}
#menu {
border: 1px solid #003366;
width: 175px;
}
#menu h4 {
margin: 0px;
padding-left: 5px;
padding-top: 2px;
padding-bottom: 2px;
color: black;
text-align: left;
font-style: normal;
font-size: 10pt;
background-color: #EEEEFF;
}
#submenu h4 {
margin: 0px;
padding-left: 5px;
padding-top: 2px;
padding-bottom: 2px;
color: black;
text-align: left;
font-style: normal;
font-size: 10pt;
background-color: #EEEEFF;
}
#submenu ul {
margin-top: 5px;
margin-bottom: 5px;
}
#authors {
font-size: 10px;
text-align: right;
}
#footer {
border-top: 1px solid #003366;
margin-top: 20px;
padding: 3px;
text-align: center;
font-size: 9pt;
font-style: italic;
}
#metric {
background-color: #EEEEFF;
border-top: 1px solid #003366;
}
a.breadcrumbs, a.breadcrumbs:visited, a.menu, a.menu:visited {
font-size: 10pt;
font-weight: bold;
text-decoration: none;
}
a.breadcrumbs:hover, a.breadcrumbs:active, a.menu:hover, a.menu:active {
text-decoration: underline;
}
.section {
margin-left: 40px;
}
.code {
font-family: Courier, Courier New, monospace;
padding: 4px;
border: 1px solid #003366;
}
.code, pre {
font-size: 11px;
}
.section .code {
margin-left: -40px;
}
.section .section .code {
margin-left: -80px;
}
.fixed {
font-family: Courier, Courier New, monospace;
}
@media print {
body td {
font-family: Times New Roman, Zurich Bt, serif;
font-size: 10pt;
}
#menu h4 {
margin-left: 0px;
}
.code {
page-break-inside: avoid;
}
p ul {
page-break-inside: avoid;
}
.section .code {
margin-left: 0px;
}
#menu {
display: none;
width: 0px;
}
#contents div {
margin: 0px;
}
}
.content { padding: 5px 5px 5px 10px; }
.frame { width: 95%; margin: 5px 20px 5px 20px; font-size: 11px; }
.frame .content { margin: 0px; }
.note { border: solid 1px #A0C9F5; background-color: #f0f0ff; }
.note .label { background-color: #A0C9F5; color: #ffffff; }
.warning { border: solid 1px #D00000; background-color: #fff0f0; }
.warning .label { background-color: #D00000; color: #ffffff; }
.fixme { border: solid 1px #C6C650; background-color: #FAF9C3; }
.fixme .label { background-color: #C6C650; color: #ffffff; }
--- NEW FILE: page.css ---
body { background-color: #FFFFFF; margin: 0px 0px 0px 0px; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif}
form { margin: 0px; padding: 0px; border: 0px; }
ul,ol { margin: 10px 5px 10px 40px; padding: 0px; }
li { margin: 2px 0px 2px 0px; }
dl { margin: 10px 5px 10px 20px; padding: 0px; }
dt { font-weight: bold; margin: 5px 0px 0px 0px; }
table { border: 0px; width: 100%; }
td { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif }
img { border: 0px; }
pre { padding: 10px 10px 10px 10px; margin-bottom: 0px }
a:link { color: #0F3660 }
a:visited { color: #880000 }
a:active { font-weight: bold }
a:hover { color: #880000; }
.path { font-size: 10px; background-color: #CFDCED; border-bottom-color: #4A6D8C; border-bottom-style: solid; border-bottom-width: 2px; padding: 2px; }
.path .current { font-weight: bold; }
.top { background-color: #294563; }
.top img { margin: 5px; }
.topline { background-color: #4C6C8F; }
.navbar { background-color: #CFDCED; color: #4C6C8F; font-weight: bold; border-bottom-color: #4A6D8C; border-bottom-style: solid; border-bottom-width: 1px; padding: 2px;}
.search { font-size: 13px; color: #ffffff; margin-right: 10px; padding: 10px 5px 3px 5px; background-color: #4A6D8C; }
.tabs { font-size: 12px; background-color: #294563; padding: 2px 7px 5px 7px; }
.tabs .tab { background-color: #CFDCED; padding: 4px 6px 4px 6px;}
.tabs .current { background-color: #4C6C8F; font-weight: bold; padding: 5px 6px 6px 6px; ; color: #FFFFFF}
.copyright { text-align: center; font-size: 10px; background-color: #CFDCED; border-top-color: #4A6D8C; border-top-style: solid; border-top-width: 1px; padding: 2px; }
.menu { background-color: #4C6C8F; margin: 0px; padding: 3px 8px 5px 3px;}
.menu a:link { color: #FFFFFF }
.menu a:visited { color: #FFFFFF }
.menu a:active { font-weight: bold }
.menu a:hover { color: #880000; }
.menu ul { margin: 0px 0px 0px 20px; padding: 0px; }
.menu li .chapter { list-style-image: url('images/chapter.gif'); font-weight: bold }
.menu li .open { list-style-image: url('images/chapter_open.gif'); font-weight: bold }
.menu li .page { list-style-image: url('images/page.gif') }
.menu li .current { list-style-image: url('images/current.gif'); color: #FFD700; font-weight: bold; }
.content { padding: 5px 5px 5px 10px; }
.frame { width: 100%; margin: 5px 20px 5px 20px; font-size: 11px; }
.frame .content { margin: 0px; }
.note { border: solid 1px #7099C5; background-color: #f0f0ff; }
.note .label { background-color: #7099C5; color: #ffffff; }
.warning { border: solid 1px #D00000; background-color: #fff0f0; }
.warning .label { background-color: #D00000; color: #ffffff; }
.fixme { border: solid 1px #C6C600; background-color: #FAF9C3; }
.fixme .label { background-color: #C6C600; color: #ffffff; }
.code { border-color: #CFDCED; border-style: solid; border-width: 1px; }
table.table { width: 100%; font-size: 11px; background-color: #7099C5; color: #ffffff; }
.table caption { text-align: left; text-weight: bold; color: black; }
.table th { text-align: center; text-weight: bold; }
.table td { background-color: #f0f0ff; color: black; }
.dida { font-size: 9px; }
.figure {}
.icon {}
.highlight { background-color: yellow; }
.minitoc {font-size: 8pt; margin: 5px 5px 5px 40px;}
|
|
From: <rga...@us...> - 2002-10-27 23:45:48
|
Update of /cvsroot/csms/csms-core/src/documentation/override/forrest/skins/csms-site/css In directory usw-pr-cvs1:/tmp/cvs-serv19527 Removed Files: common.css page.css Log Message: Moving the skin into the new location required by Centipede --- common.css DELETED --- --- page.css DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:45:38
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/images In directory usw-pr-cvs1:/tmp/cvs-serv19352 Added Files: chapter.gif note.gif page.gif chapter_open.gif singlepage.gif centipede-logo-small.gif built-with-cocoon.gif printer.gif krysalis-logo-small.gif current.gif ant_logo_medium.gif void.gif Log Message: Moving the skin into the new location required by Centipede --- NEW FILE: chapter.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: note.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: page.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: chapter_open.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: singlepage.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: centipede-logo-small.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: built-with-cocoon.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: printer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: krysalis-logo-small.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: current.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant_logo_medium.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: void.gif --- (This appears to be a binary file; contents omitted.) |
|
From: <rga...@us...> - 2002-10-27 23:45:24
|
Update of /cvsroot/csms/csms-core/src/documentation/override/forrest/skins/csms-site/images In directory usw-pr-cvs1:/tmp/cvs-serv19223 Removed Files: ant_logo_medium.gif built-with-cocoon.gif centipede-logo-small.gif chapter.gif chapter_open.gif current.gif krysalis-logo-small.gif note.gif page.gif printer.gif singlepage.gif void.gif Log Message: Moving the skin into the new location required by Centipede --- ant_logo_medium.gif DELETED --- --- built-with-cocoon.gif DELETED --- --- centipede-logo-small.gif DELETED --- --- chapter.gif DELETED --- --- chapter_open.gif DELETED --- --- current.gif DELETED --- --- krysalis-logo-small.gif DELETED --- --- note.gif DELETED --- --- page.gif DELETED --- --- printer.gif DELETED --- --- singlepage.gif DELETED --- --- void.gif DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:45:14
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/images In directory usw-pr-cvs1:/tmp/cvs-serv19089 Added Files: favicon.ico Log Message: Moving the skin into the new location required by Centipede --- NEW FILE: favicon.ico --- (This appears to be a binary file; contents omitted.) |
|
From: <rga...@us...> - 2002-10-27 23:45:03
|
Update of /cvsroot/csms/csms-core/src/documentation/override/forrest/skins/csms-site/images In directory usw-pr-cvs1:/tmp/cvs-serv18903 Removed Files: favicon.ico Log Message: Moving the skin into the new location required by Centipede --- favicon.ico DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:44:53
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/images In directory usw-pr-cvs1:/tmp/cvs-serv18774 Added Files: add.jpg remove.jpg update.jpg Log Message: Moving the skin into the new location required by Centipede --- NEW FILE: add.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: remove.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: update.jpg --- (This appears to be a binary file; contents omitted.) |
|
From: <rga...@us...> - 2002-10-27 23:44:42
|
Update of /cvsroot/csms/csms-core/src/documentation/override/forrest/skins/csms-site/images In directory usw-pr-cvs1:/tmp/cvs-serv18665 Removed Files: add.jpg remove.jpg update.jpg Log Message: Moving the skin into the new location required by Centipede --- add.jpg DELETED --- --- remove.jpg DELETED --- --- update.jpg DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:44:32
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/xslt/html In directory usw-pr-cvs1:/tmp/cvs-serv18475 Added Files: book2menu.xsl document2html.xsl site2xhtml.xsl Log Message: Moving the skin into the new location required by Centipede --- NEW FILE: book2menu.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="resource"/> <xsl:template match="book"> <menu> <xsl:apply-templates/> </menu> </xsl:template> <xsl:template match="project"> </xsl:template> <!-- <xsl:template match="menu[position()=1]"> <xsl:apply-templates/> </xsl:template> --> <xsl:template match="menu"> <div id="submenu"> <h4><xsl:value-of select="@label"/></h4> <ul> <xsl:apply-templates/> </ul> </div> </xsl:template> <xsl:template match="menu-item"> <li> <xsl:if test="not(@type) or @type!='hidden'"> <xsl:choose> <xsl:when test="@href=$resource"> <xsl:value-of select="@label"/> </xsl:when> <xsl:otherwise> <a href="{@href}"><xsl:value-of select="@label"/></a> </xsl:otherwise> </xsl:choose> </xsl:if> </li> </xsl:template> <xsl:template match="external"> <xsl:if test="not(@type) or @type!='hidden'"> <li> <a href="{@href}"><xsl:value-of select="@label"/></a> </li> </xsl:if> </xsl:template> <xsl:template match="node()|@*" priority="-1"/> </xsl:stylesheet> --- NEW FILE: document2html.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- ====================================================================== --> <!-- document section --> <!-- ====================================================================== --> <xsl:template match="/"> <!-- checks if this is the included document to avoid neverending loop --> <xsl:if test="not(book)"> <document> <xsl:choose> <xsl:when test="document/header/title"> <title><xsl:value-of select="document/header/title"/></title> </xsl:when> <xsl:otherwise> <title>NO TITLE</title> </xsl:otherwise> </xsl:choose> <body> <xsl:apply-templates/> <xsl:if test="/document/header/authors"> <div id="authors"> <xsl:for-each select="/document/header/authors/person"> <xsl:choose> <xsl:when test="position()=1">by </xsl:when> <xsl:otherwise>, </xsl:otherwise> </xsl:choose> <xsl:value-of select="@name" /> </xsl:for-each> </div> </xsl:if> </body> </document> </xsl:if> <xsl:if test="book"> <xsl:apply-templates/> </xsl:if> </xsl:template> <!-- ====================================================================== --> <!-- header section --> <!-- ====================================================================== --> <xsl:template match="header"> <!-- ignore on general document --> </xsl:template> <!-- ====================================================================== --> <!-- body section --> <!-- ====================================================================== --> <xsl:template match="section"> <xsl:variable name = "level" select = "count(ancestor::section)+1" /> <xsl:choose> <xsl:when test="$level=1"> <h2><xsl:value-of select="./title"/></h2> </xsl:when> <xsl:when test="$level=2"> <h3><xsl:value-of select="./title"/></h3> </xsl:when> <xsl:when test="$level=3"> <h4><xsl:value-of select="./title"/></h4> </xsl:when> <xsl:otherwise> <h5><xsl:value-of select="./title"/></h5> </xsl:otherwise> </xsl:choose> <div class="section"><xsl:apply-templates/></div> </xsl:template> <xsl:template match="title"> <!-- Do nothing - handled in the section template --> </xsl:template> <!-- ====================================================================== --> <!-- footer section --> <!-- ====================================================================== --> <xsl:template match="footer"> <!-- ignore on general documents --> </xsl:template> <!-- ====================================================================== --> <!-- paragraph section --> <!-- ====================================================================== --> <xsl:template match="p"> <p><xsl:apply-templates/></p> </xsl:template> <xsl:template match="note"> <p><i><xsl:apply-templates/></i></p> </xsl:template> <xsl:template match="source"> <div class="code"><pre><xsl:apply-templates/></pre></div> </xsl:template> <xsl:template match="fixme | note | warning"> <div class="frame {local-name()}"> <div class="label"> <xsl:choose> <xsl:when test="local-name() = 'note'">Note</xsl:when> <xsl:when test="local-name() = 'warning'">Warning</xsl:when> <xsl:otherwise> Fixme (<xsl:value-of select="@author" />) </xsl:otherwise> </xsl:choose> </div> <div class="content"> <xsl:apply-templates /> </div> </div> </xsl:template> <!-- ====================================================================== --> <!-- list section --> <!-- ====================================================================== --> <xsl:template match="ul|ol|dl"> <blockquote> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </blockquote> </xsl:template> <xsl:template match="li"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="sl"> <ul> <xsl:apply-templates/> </ul> </xsl:template> <xsl:template match="dt"> <li> <strong><xsl:value-of select="."/></strong> <xsl:text> - </xsl:text> <xsl:apply-templates select="dd"/> </li> </xsl:template> <!-- ====================================================================== --> <!-- table section --> <!-- ====================================================================== --> <xsl:template match="table"> <table class="body-table"> <caption><xsl:value-of select="caption"/></caption> <xsl:apply-templates/> </table> </xsl:template> <xsl:template match="tr"> <tr class="body-table"><xsl:apply-templates/></tr> </xsl:template> <xsl:template match="th"> <th class="body-table" colspan="{@colspan}" rowspan="{@rowspan}"> <b><xsl:apply-templates/></b>  </th> </xsl:template> <xsl:template match="td"> <td class="body-table" colspan="{@colspan}" rowspan="{@rowspan}"> <xsl:apply-templates/>  </td> </xsl:template> <xsl:template match="tn"> <tn class="body-table" colspan="{@colspan}" rowspan="{@rowspan}">   </tn> </xsl:template> <xsl:template match="caption"> <!-- ignore since already used --> </xsl:template> <!-- ====================================================================== --> <!-- markup section --> <!-- ====================================================================== --> <xsl:template match="strong"> <b><xsl:apply-templates/></b> </xsl:template> <xsl:template match="em"> <i><xsl:apply-templates/></i> </xsl:template> <xsl:template match="code"> <span class="fixed"><xsl:apply-templates/></span> </xsl:template> <xsl:template match="sup"> <sup><xsl:apply-templates/></sup> </xsl:template> <xsl:template match="sub"> <sub><xsl:apply-templates/></sub> </xsl:template> <!-- ====================================================================== --> <!-- images section --> <!-- ====================================================================== --> <xsl:template match="figure"> <p> <xsl:choose> <xsl:when test="string(@width) and string(@height)"> <img src="{@src}" alt="{@alt}" width="{@width}" height="{@height}"/> </xsl:when> <xsl:otherwise> <img src="{@src}" alt="{@alt}"/> </xsl:otherwise> </xsl:choose> </p> </xsl:template> <xsl:template match="img"> <img src="{@src}" alt="{@alt}"/> </xsl:template> <xsl:template match="icon"> <img src="{@src}" alt="{@alt}"/> </xsl:template> <!-- ====================================================================== --> <!-- links section --> <!-- ====================================================================== --> <xsl:template match="link"> <a href="{@href}"><xsl:apply-templates/></a> </xsl:template> <xsl:template match="connect"> <xsl:apply-templates/> </xsl:template> <xsl:template match="jump"> <a href="{@href}#{@anchor}"><xsl:apply-templates/></a> </xsl:template> <xsl:template match="fork"> <a href="{@href}" target="_blank"><xsl:apply-templates/></a> </xsl:template> <xsl:template match="anchor"> <a name="{@id}"><xsl:comment>anchor</xsl:comment></a> </xsl:template> <!-- ====================================================================== --> <!-- specials section --> <!-- ====================================================================== --> <xsl:template match="br"> <br/> </xsl:template> </xsl:stylesheet> --- NEW FILE: site2xhtml.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <head> <title><xsl:value-of select="/site/document/title"/></title> <link rel="stylesheet" type="text/css" href="skin/common.css" /> </head> <body> <!-- header --> <div id="header"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td id="jakartaLogoTD" valign="middle" align="left"><a href="@group-logo.href@"><img id="jakartaLogo" src="@group-logo.src@" border="0"/></a></td> <td id="projectLogoTD" valign="middle" align="right"><a href="@project-logo.href@"><img id="projectLogo" src="@project-logo.src@" border="0"/></a></td> </tr> </table></div> <!-- end header --> <!-- breadcrumb trail (javascript-generated) --> <div id="breadcrumbs"> <a href="@link1.href@" class="menu">@link1@ ></a> <a href="@link2.href@" class="menu">@link2@ ></a> <a href="@link3.href@" class="menu">@link3@</a> <script language="JavaScript1.2" type="text/javascript"> <!-- function sentenceCase(str) { var lower = str.toLowerCase(); return lower.substr(0,1).toUpperCase() + lower.substr(1); } function getDirsAsArray() { var trail = document.location.pathname.split("/"); var lastdir = (trail[trail.length-1].indexOf(".html") != -1)? trail.length-2 : trail.length-1; var urlprefix = "/avalon/"; var postfix = " >"; for(var i = 1; i <= lastdir; i++) { document.writeln('<a href=' + urlprefix + trail[i] + ' class="menu">' + sentenceCase(trail[i]) + '</a>'+postfix); urlprefix += trail[i] + "/"; if(i == lastdir-1) postfix = ":"; } } getDirsAsArray(); // --> </script> </div> <!-- end breadcrumb trail --> <!-- main section of page --> <div id="main"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <!-- menu --> <div id="menu"> <xsl:copy-of select="/site/menu/node()|@*"/> </div> <!-- end menu column --> </td> <!-- spacer --> <td width="10"> </td> <td valign="top" width="100%"> <!-- contents column --> <!-- contents --> <div id="title"><h1><xsl:value-of select="/site/document/title"/></h1></div> <div id="contents"> <xsl:copy-of select="/site/document/body/node()|@*"/> </div> <!-- end contents column --> <script language="JavaScript"> <![CDATA[<!-- document.write("last modified: " + document.lastModified); // -->]]> </script> </td> </tr> </table></div> <!-- end main section of page --> <!-- footer --> <div id="footer"> Copyright ©@year@ @vendor@. All Rights Reserved. </div> <a href="http://jakarta.apache.org/ant/"><img align="right" src="skin/images/ant_logo_medium.gif" alt="Ant Logo" border="0"/></a> <a href="http://xml.apache.org/cocoon/"><img align="right" src="skin/images/built-with-cocoon.gif" alt="Cocoon Logo" border="0"/></a> <a href="http://www.krysalis.org/centipede/"><img align="right" src="skin/images/centipede-logo-small.gif" alt="Krysalis Centipede Logo" border="0"/></a> <a href="http://sourceforge.net/projects/csms"><img src="http://sourceforge.net/sflogo.php?&group_id=65029&type=5" width="210" height="62" border="0" alt="SourceForge.net Logo"/></a> <!-- end footer --> </body> </html> </xsl:template> </xsl:stylesheet> |
|
From: <rga...@us...> - 2002-10-27 23:44:18
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/xslt/fo In directory usw-pr-cvs1:/tmp/cvs-serv18298 Added Files: document2fo.xsl Log Message: Moving the skin into the new location required by Centipede --- NEW FILE: document2fo.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> <xsl:output method="xml"/> <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="first-page" page-height="11in" page-width="8.5in" margin-top="1in" margin-bottom="1in" margin-left="1.25in" margin-right="1in"> <fo:region-body margin-top="0.5in" margin-bottom=".5in"/> <fo:region-after region-name="first-footer" extent=".5in" display-align="before"/> </fo:simple-page-master> <fo:simple-page-master master-name="even-page" page-height="11in" page-width="8.5in" margin-top="1in" margin-bottom="1in" margin-left="1.25in" margin-right="1in"> <fo:region-before region-name="even-header" extent="0.5in" border-bottom="0.5pt solid"/> <fo:region-body margin-top="0.5in" margin-bottom=".5in"/> <fo:region-after region-name="even-footer" extent=".5in" display-align="before"/> </fo:simple-page-master> <fo:simple-page-master master-name="odd-page" page-height="11in" page-width="8.5in" margin-top="1in" margin-bottom="1in" margin-left="1.25in" margin-right="1in"> <fo:region-before region-name="odd-header" extent="0.5in" border-bottom="0.5pt solid"/> <fo:region-body margin-top="0.5in" margin-bottom=".5in"/> <fo:region-after region-name="odd-footer" extent=".5in" display-align="before"/> </fo:simple-page-master> <fo:page-sequence-master master-name="book"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference page-position="first" master-reference="first-page"/> <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-page"/> <fo:conditional-page-master-reference odd-or-even="even" master-reference="even-page"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="book"> <xsl:apply-templates/> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="document"> <fo:title><xsl:value-of select="header/title"/></fo:title> <fo:static-content flow-name="first-footer"> <fo:block border-top="0.25pt solid" padding-before="6pt" text-align="center"> <xsl:apply-templates select="footer"/> </fo:block> <fo:block text-align="start"> Page <fo:page-number/> </fo:block> </fo:static-content> <fo:static-content flow-name="even-header"> <fo:block text-align="end" font-style="italic"> <xsl:value-of select="header/title"/> </fo:block> </fo:static-content> <fo:static-content flow-name="even-footer"> <fo:block border-top="0.25pt solid" padding-before="6pt" text-align="center"> <xsl:apply-templates select="footer"/> </fo:block> <fo:block text-align="end"> Page <fo:page-number/> </fo:block> </fo:static-content> <fo:static-content flow-name="odd-header"> <fo:block text-align="start" font-style="italic"> <xsl:value-of select="header/title"/> </fo:block> </fo:static-content> <fo:static-content flow-name="odd-footer"> <fo:block border-top="0.25pt solid" padding-before="6pt" text-align="center"> <xsl:apply-templates select="footer"/> </fo:block> <fo:block text-align="start"> Page <fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block padding-before="24pt" padding-after="24pt" font-size="24pt" font-weight="bold"> <xsl:value-of select="header/title"/> </fo:block> <fo:block text-align="justify" padding-before="18pt" padding-after="18pt"> <xsl:apply-templates/> </fo:block> </fo:flow> </xsl:template> <xsl:template match="abstract"> <fo:block font-size="12pt" text-align="center" space-before="20pt" space-after="25pt" width="7.5in" font-family="serif" font-style="italic"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="notice"> <fo:block font-size="10pt" text-align="left" space-before="20pt" width="7.5in" font-family="serif" border-top="0.25pt solid" border-bottom="0.25pt solid" padding-before="6pt" padding-after="6pt"> NOTICE: <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="section"> <xsl:param name="level">0</xsl:param> <xsl:variable name="size" select="16-(number($level)*2)"/> <fo:block font-family="serif" font-size="{$size}pt" font-weight="bold" space-before="12pt"> <xsl:number format="1.1.1.1.1.1.1" count="section" level="multiple"/> <xsl:text> </xsl:text> <xsl:value-of select="title"/> </fo:block> <xsl:apply-templates> <xsl:with-param name="level" select="number($level)+1"/> </xsl:apply-templates> </xsl:template> <xsl:template match="title"> <!-- do nothing as titles are handled in their parent templates --> </xsl:template> <xsl:template match="subtitle"> <xsl:param name="level">0</xsl:param> <xsl:variable name="size" select="16-(number($level)*1.5)"/> <fo:block font-weight="bold" font-size="{$size}pt"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="p"> <fo:block space-before="4pt" space-after="4pt" font-family="serif"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="source"> <fo:block font-family="monospace" font-size="10pt" background-color="#f0f0f0" white-space-collapse="false" text-align="start"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="ol|ul"> <fo:list-block provisional-distance-between-starts="18pt" provisional-label-separation="3pt" text-align="start"> <xsl:apply-templates/> </fo:list-block> </xsl:template> <xsl:template match="ol/li"> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block> <xsl:number format="1."/> </fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block> <xsl:apply-templates/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> <xsl:template match="ul/li"> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>•</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block> <xsl:apply-templates/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> <xsl:template match="dl"> <fo:list-block provisional-distance-between-starts="18pt" provisional-label-separation="3pt" text-align="start"> <xsl:apply-templates/> </fo:list-block> </xsl:template> <xsl:template match="dt"> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block font-weight="bold"> <xsl:apply-templates/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> <xsl:template match="dd"> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block></fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block> <xsl:apply-templates/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> <xsl:template match="strong"> <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline> </xsl:template> <xsl:template match="em"> <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline> </xsl:template> <xsl:template match="code"> <fo:inline font-family="monospace"><xsl:apply-templates/></fo:inline> </xsl:template> <xsl:template match="warning"> <fo:block margin-left="0.25in" margin-right="0.25in" font-weight="bold" font-size="10pt" font-family="serif" space-before="10pt" border-before-style="solid" border-start-style="solid" border-end-style="solid" border-color="#D00000" background-color="#D00000" color="#ffffff"> Warning: <xsl:value-of select="title"/> </fo:block> <fo:block margin-left="0.25in" margin-right="0.25in" font-family="serif" font-size="8pt" border-after-style="solid" border-start-style="solid" border-end-style="solid" border-color="#D00000" background-color="#fff0f0" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt" space-after="10pt"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="note"> <fo:block margin-left="0.25in" margin-right="0.25in" font-weight="bold" font-size="10pt" color="#ffffff" font-family="serif" space-before="10pt" border-before-style="solid" border-start-style="solid" border-end-style="solid" border-color="#A0C9F5" background-color="#A0C9F5"> Note: <xsl:value-of select="title"/> </fo:block> <fo:block margin-left="0.25in" margin-right="0.25in" font-family="serif" font-size="8pt" space-after="10pt" border-after-style="solid" border-start-style="solid" border-end-style="solid" border-color="#A0C9F5" background-color="#F0F0FF" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="fixme"> <fo:block margin-left="0.25in" margin-right="0.25in" font-weight="bold" font-size="10pt" color="#FFFFFF" font-family="serif" space-before="10pt" border-before-style="solid" border-start-style="solid" border-end-style="solid" border-color="#C6C650" background-color="#C6C650"> FIXME (<xsl:value-of select="@author"/>): <xsl:value-of select="title"/> </fo:block> <fo:block margin-left="0.25in" margin-right="0.25in" font-family="serif" font-size="8pt" space-after="10pt" border-after-style="solid" border-start-style="solid" border-end-style="solid" border-color="#C6C650" background-color="#FFF0F0" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="link"> <fo:basic-link external-destination="{@href}"><xsl:apply-templates/></fo:basic-link> </xsl:template> <xsl:template match="figure"> <!-- FIXME: Images are not found at the moment --> <fo:external-graphic src="build/work/resources/{@src}"/> <!-- alt text and credits need inserting --> </xsl:if> </xsl:template> <xsl:template match="table"> <!-- FIXME: Apache FOP must have column widths specified at present, this section can be removed when this limitation is removed from Fop. Unfortunately, this means that each column is a fixed width, but at least the table displays! --> <xsl:variable name="max-number-columns"> <xsl:for-each select="tr"> <xsl:sort select="count(td|th)" data-type="number" order="descending"/> <xsl:if test="position() = 1"> <xsl:value-of select="count(td|th)"/> </xsl:if> </xsl:for-each> </xsl:variable> <xsl:variable name="column-width"> <xsl:value-of select="6.25 div number($max-number-columns)"/>in </xsl:variable> <fo:table> <fo:table-column> <xsl:attribute name="column-width"> <xsl:value-of select="$column-width"/> </xsl:attribute> <xsl:attribute name="number-columns-repeated"> <xsl:value-of select="number($max-number-columns)"/> </xsl:attribute> </fo:table-column> <!-- End of hack for Fop support (if removing this hack, remember you need the <fo:table> element) --> <fo:table-body font-size="10pt" font-family="sans-serif"> <xsl:apply-templates select="tr"/> </fo:table-body> </fo:table> <!-- FIXME: Apache Fop does not support the caption element yet. This hack will display the table caption accordingly. --> <xsl:if test="caption"> <fo:block text-align="center" font-weight="bold"> Table <xsl:text> </xsl:text> <xsl:number count="table" level="multiple"/> <xsl:text>: </xsl:text> <xsl:value-of select="caption"/> </fo:block> </xsl:if> </xsl:template> <xsl:template match="tr"> <fo:table-row> <xsl:apply-templates/> </fo:table-row> </xsl:template> <xsl:template match="th"> <fo:table-cell padding-before="4pt" padding-after="4pt" padding-start="4pt" padding-end="4pt" background-color="#A0C9F5"> <xsl:attribute name="number-columns-spanned"> <xsl:value-of select="@colspan"/> </xsl:attribute> <xsl:attribute name="number-rows-spanned"> <xsl:value-of select="@rowspan"/> </xsl:attribute> <fo:block text-align="center"> <xsl:apply-templates/> </fo:block> </fo:table-cell> </xsl:template> <xsl:template match="td"> <fo:table-cell padding-before="4pt" padding-after="4pt" padding-start="4pt" padding-end="4pt" border="1pt solid #A0C9F5"> <xsl:attribute name="number-columns-spanned"> <xsl:value-of select="@colspan"/> </xsl:attribute> <xsl:attribute name="number-rows-spanned"> <xsl:value-of select="@rowspan"/> </xsl:attribute> <fo:block> <xsl:apply-templates/> </fo:block> </fo:table-cell> </xsl:template> <xsl:template match="legal"> <fo:inline font-size="8pt"> <xsl:apply-templates/> </fo:inline> </xsl:template> <!-- ====================================================================== --> <!-- Local Extensions section --> <!-- ====================================================================== --> <xsl:template match="citation"> <fo:inline> [<xsl:value-of select="@def"/>] </fo:inline> </xsl:template> </xsl:stylesheet> |
|
From: <rga...@us...> - 2002-10-27 23:44:03
|
Update of /cvsroot/csms/csms-core/src/documentation/override/forrest/skins/csms-site/xslt/html In directory usw-pr-cvs1:/tmp/cvs-serv18135 Removed Files: book2menu.xsl document2html.xsl site2xhtml.xsl Log Message: Moving the skin into the new location required by Centipede --- book2menu.xsl DELETED --- --- document2html.xsl DELETED --- --- site2xhtml.xsl DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:43:53
|
Update of /cvsroot/csms/csms-core/src/documentation/override/forrest/skins/csms-site/xslt/fo In directory usw-pr-cvs1:/tmp/cvs-serv18008 Removed Files: document2fo.xsl Log Message: Moving the skin into the new location required by Centipede --- document2fo.xsl DELETED --- |
|
From: <rga...@us...> - 2002-10-27 23:40:11
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/xslt/html In directory usw-pr-cvs1:/tmp/cvs-serv15321/html Log Message: Directory /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/xslt/html added to the repository |
|
From: <rga...@us...> - 2002-10-27 23:39:48
|
Update of /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/xslt/fo In directory usw-pr-cvs1:/tmp/cvs-serv15058/fo Log Message: Directory /cvsroot/csms/csms-core/src/documentation/override/skins/csms-site/xslt/fo added to the repository |