www cleanup mega commit:
- Move includes.nav*.sgml to share/sgml/navibar.ent and
<lang>/share/sgml/nabibar.l10n.ent.
- Move includes.sgml and includes.xsl to
share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent,
and <lang>?share/sgml/header.l10n.ent.
- Move most of XSLT libraries to share/sgml/*.xsl and
<lang>/share/sgml/*.xsl.
- Move news.xml and other *.xml files for the similar purpose
to share/sgml/*.xml and <lang>/share/sgml/*.xml.
- Switch to use a custom DTD for HTML document. Now we use
"-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is
HTML 4.01 + some entities previously pulled via
"<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line.
The location of entity file will be resolved by using catalog file.
- Add DOCTYPE declearation to XML documents. This makes the followings
possible:
* Use of &foo; entities for SGML in an XML file instead of defining
{$foo} as the same content.
* &symbolic; entities for Latin characters.
- Duplicated information between SGML and XML, or English and
translated doc, has been removed as much as possible.
This commit is contained in:
parent
fb0b3eec96
commit
cfd9e12239
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=28473
529 changed files with 4335 additions and 4252 deletions
|
|
@ -1,10 +1,9 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [
|
||||
<!DOCTYPE HTML PUBLIC "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN" [
|
||||
<!ENTITY base CDATA "../..">
|
||||
<!ENTITY date "$FreeBSD: www/en/events/2002/bsdcon-devsummit.sgml,v 1.10 2003/10/17 16:51:08 ceri Exp $">
|
||||
<!ENTITY date "$FreeBSD: www/en/events/2002/bsdcon-devsummit.sgml,v 1.11 2005/10/04 17:22:00 blackend Exp $">
|
||||
<!ENTITY email 'hackers'>
|
||||
<!ENTITY title "BSDCon 2002 FreeBSD Developer Summit">
|
||||
<!ENTITY % navincludes SYSTEM "../../includes.navabout.sgml"> %navincludes;
|
||||
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
||||
<!ENTITY % navinclude.about "INCLUDE">
|
||||
<!ENTITY % developers SYSTEM "../../developers.sgml"> %developers;
|
||||
]>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [
|
||||
<!DOCTYPE HTML PUBLIC "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN" [
|
||||
<!ENTITY base CDATA "../..">
|
||||
<!ENTITY date "$FreeBSD: www/en/events/2002/usenix-devsummit.sgml,v 1.13 2004/04/04 21:49:39 phantom Exp $">
|
||||
<!ENTITY date "$FreeBSD: www/en/events/2002/usenix-devsummit.sgml,v 1.14 2005/10/04 17:22:00 blackend Exp $">
|
||||
<!ENTITY email 'hackers'>
|
||||
<!ENTITY break '<hr><center>BREAK</center><hr>'>
|
||||
<!ENTITY title "Usenix 2002 FreeBSD Developer Summit III">
|
||||
<!ENTITY % navincludes SYSTEM "../../includes.navabout.sgml"> %navincludes;
|
||||
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
||||
<!ENTITY % navinclude.about "INCLUDE">
|
||||
<!ENTITY % developers SYSTEM "../../developers.sgml"> %developers;
|
||||
]>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [
|
||||
<!DOCTYPE HTML PUBLIC "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN" [
|
||||
<!ENTITY base CDATA "../..">
|
||||
<!ENTITY date "$FreeBSD: www/en/events/2003/bsdcon-devsummit.sgml,v 1.1 2003/09/22 07:41:56 murray Exp $">
|
||||
<!ENTITY date "$FreeBSD: www/en/events/2003/bsdcon-devsummit.sgml,v 1.2 2005/10/04 17:22:00 blackend Exp $">
|
||||
<!ENTITY email 'hackers'>
|
||||
<!ENTITY title "BSDCon 2003 FreeBSD Developer Summit">
|
||||
<!ENTITY % navincludes SYSTEM "../../includes.navabout.sgml"> %navincludes;
|
||||
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
||||
<!ENTITY % navinclude.about "INCLUDE">
|
||||
<!ENTITY % developers SYSTEM "../../developers.sgml"> %developers;
|
||||
]>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/events/Makefile,v 1.10 2005/10/04 18:28:28 hrs Exp $
|
||||
# $FreeBSD: www/en/events/Makefile,v 1.11 2005/10/05 04:55:34 murray Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
|
|
@ -9,40 +9,13 @@
|
|||
|
||||
SUBDIR= 2002
|
||||
SUBDIR+= 2003
|
||||
DATE?= /bin/date
|
||||
TR?= /usr/bin/tr
|
||||
|
||||
DATA= events.css
|
||||
|
||||
CLEANFILES+= curdate.xml
|
||||
XMLDOCS+= events:${XSL_EVENTS}:${XML_EVENTS_EVENTS}:
|
||||
DEPENDSET.events= events
|
||||
|
||||
XMLLINT?= /usr/local/bin/xmllint # Part of textproc/libxml2.
|
||||
|
||||
XMLDOCS+= events
|
||||
DEPENDSET.events= events curdate.xml
|
||||
SRCS.events= ../includes.xsl curdate.xml
|
||||
|
||||
XMLDOCS+= events_ics:${WEB_PREFIX}/share/sgml/events2ics.xsl:events.xml:events.ics
|
||||
|
||||
lint:
|
||||
${XMLLINT} ${XMLLINTOPTS} --valid -o /dev/null ${.CURDIR}/events.xml
|
||||
|
||||
.if !make(install)
|
||||
.PHONY: curdate.xml
|
||||
.endif
|
||||
curdate.xml:
|
||||
@${ECHO} "Generating ${.TARGET}"
|
||||
@${ECHO_CMD} '<?xml version="1.0"?>' > ${.TARGET}
|
||||
@${ECHO_CMD} '<curdate>' >> ${.TARGET}
|
||||
@${ECHO_CMD} -n ' <year>' >> ${.TARGET}
|
||||
@${DATE} +%Y | ${TR} -d "\n" >> ${.TARGET}
|
||||
@${ECHO_CMD} '</year>' >> ${.TARGET}
|
||||
@${ECHO_CMD} -n ' <month>' >> ${.TARGET}
|
||||
@${DATE} +%m | ${TR} -d "\n" >> ${.TARGET}
|
||||
@${ECHO_CMD} '</month>' >> ${.TARGET}
|
||||
@${ECHO_CMD} -n ' <day>' >> ${.TARGET}
|
||||
@${DATE} +%d | ${TR} -d "\n" >> ${.TARGET}
|
||||
@${ECHO_CMD} '</day>' >> ${.TARGET}
|
||||
@${ECHO_CMD} '</curdate>' >> ${.TARGET}
|
||||
XMLDOCS+= events_ics:${XSL_EVENTS_ICS}:${XML_EVENTS_EVENTS}:events.ics
|
||||
DEPENDSET.events_ics= events
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
|
|
|||
|
|
@ -1,83 +0,0 @@
|
|||
<!-- Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
<!-- DTD for events.xml on the FreeBSD website. -->
|
||||
|
||||
<!ELEMENT events (cvs:keywords?, event+)>
|
||||
|
||||
<!ELEMENT event (name?, url?, startdate, enddate, location, description?, link*)>
|
||||
<!ATTLIST event id ID #REQUIRED>
|
||||
|
||||
<!ELEMENT name (#PCDATA)>
|
||||
<!ELEMENT url (#PCDATA)>
|
||||
<!--
|
||||
Meaning of type attribute:
|
||||
freebsd-website:
|
||||
The URL is relative to the FreeBSD website root.
|
||||
The URL should start with a single "/".
|
||||
absolute:
|
||||
Normal absolute URL.
|
||||
-->
|
||||
<!ATTLIST url type (absolute|freebsd-website) "absolute">
|
||||
|
||||
<!ELEMENT startdate (year,month,day)>
|
||||
<!ELEMENT enddate (year,month,day)>
|
||||
<!ELEMENT year (#PCDATA)>
|
||||
<!ELEMENT month (#PCDATA)>
|
||||
<!ELEMENT day (#PCDATA)>
|
||||
|
||||
<!ELEMENT location (country?,state?,city?,site?,address?)>
|
||||
<!ELEMENT country (#PCDATA)>
|
||||
<!ELEMENT state (#PCDATA)>
|
||||
<!ELEMENT city (#PCDATA)>
|
||||
<!ELEMENT site (#PCDATA)>
|
||||
<!ELEMENT address (#PCDATA)>
|
||||
|
||||
<!ELEMENT description (#PCDATA|a|tt|i|b)*>
|
||||
|
||||
<!-- Misc HTML entities which might be used; just add more as needed -->
|
||||
<!ELEMENT a (#PCDATA)>
|
||||
<!ATTLIST a href CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT b (#PCDATA|a)*>
|
||||
<!ELEMENT i (#PCDATA|a)*>
|
||||
<!ELEMENT tt (#PCDATA|a)*>
|
||||
|
||||
<!--
|
||||
Link to a web page (local or remote) with additional information
|
||||
about the event. Can also be used for post-event comments/notes.
|
||||
-->
|
||||
<!ELEMENT link (name, url)>
|
||||
<!ATTLIST link type (photos|notes|other) "other">
|
||||
|
||||
<!-- Common CVS tags -->
|
||||
<!ELEMENT cvs:keywords (cvs:keyword+)>
|
||||
<!ATTLIST cvs:keywords xmlns:cvs CDATA #FIXED 'http://www.FreeBSD.org/XML/CVS'>
|
||||
<!ATTLIST cvs:keywords version CDATA #FIXED '1.0'>
|
||||
|
||||
<!ELEMENT cvs:keyword (#PCDATA)>
|
||||
<!ATTLIST cvs:keyword name CDATA #REQUIRED>
|
||||
1512
en/events/events.xml
1512
en/events/events.xml
File diff suppressed because it is too large
Load diff
|
|
@ -1,256 +0,0 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
$FreeBSD: www/en/events/events.xsl,v 1.5 2005/10/04 18:39:28 hrs Exp $
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
xmlns:cvs="http://www.FreeBSD.org/XML/CVS"
|
||||
exclude-result-prefixes="cvs">
|
||||
|
||||
<xsl:import href="../includes.xsl"/>
|
||||
<xsl:import href="includes.xsl"/>
|
||||
<xsl:variable name="section" select="'about'"/>
|
||||
|
||||
<xsl:variable name="curdate" select="document('curdate.xml')//curdate"/>
|
||||
|
||||
<xsl:variable name="base" select="'..'"/>
|
||||
<xsl:variable name="date">
|
||||
<xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="email" select="'freebsd-www'"/>
|
||||
<xsl:variable name="title" select="'FreeBSD Events'"/>
|
||||
|
||||
<xsl:output method="xml" encoding="iso-8859-1"
|
||||
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
||||
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
|
||||
|
||||
<xsl:key name="event-by-month" match="event"
|
||||
use="concat(startdate/year, format-number(startdate/month, '00'))"/>
|
||||
|
||||
<!-- Template: events -->
|
||||
<xsl:template match="events">
|
||||
<html>
|
||||
<xsl:copy-of select="$header1"/>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="containerwrap">
|
||||
<div id="container">
|
||||
<xsl:copy-of select="$header2"/>
|
||||
|
||||
<div id="content">
|
||||
<xsl:copy-of select="$sidenav"/>
|
||||
|
||||
<div id="contentwrap">
|
||||
<xsl:copy-of select="$header3"/>
|
||||
<!--
|
||||
Note the current date to have a reference, if the
|
||||
upcoming/past events are split incorrectly.
|
||||
-->
|
||||
<xsl:comment>
|
||||
<xsl:text>Generated on: </xsl:text>
|
||||
<xsl:value-of select="concat($curdate/year,
|
||||
format-number($curdate/month, '00'),
|
||||
format-number($curdate/day, '00'))"/>
|
||||
</xsl:comment>
|
||||
|
||||
<p>If you know of any FreeBSD related events, or events that
|
||||
are of interest for FreeBSD users, which are not listed
|
||||
here, please send details to <a
|
||||
href="mailto:www@FreeBSD.org">www@FreeBSD.org</a>, so they
|
||||
can be included.</p>
|
||||
|
||||
<p>Users with organisational software that understands the
|
||||
iCalendar format can subscribe to the
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="$base"/>/events/events.ics</xsl:attribute>
|
||||
FreeBSD events calendar</a>
|
||||
which contains all of the events listed here.</p>
|
||||
|
||||
<h2 id="upcoming">
|
||||
<xsl:text>Current/Upcoming Events:</xsl:text>
|
||||
</h2>
|
||||
|
||||
<xsl:for-each select="event[generate-id() =
|
||||
generate-id(key('event-by-month',
|
||||
concat(startdate/year, format-number(startdate/month, '00')))[1])
|
||||
and ((number(enddate/year) > number($curdate/year)) or
|
||||
(number(enddate/year) = number($curdate/year) and
|
||||
number(enddate/month) > number($curdate/month)) or
|
||||
(number(enddate/year) = number($curdate/year) and
|
||||
number(enddate/month) = number($curdate/month) and
|
||||
enddate/day >= $curdate/day))]">
|
||||
|
||||
<xsl:sort select="startdate/year" order="ascending"/>
|
||||
<xsl:sort select="format-number(startdate/month, '00')" order="ascending"/>
|
||||
<xsl:sort select="format-number(startdate/day, '00')" order="ascending"/>
|
||||
|
||||
<h3>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:text>month:</xsl:text>
|
||||
<xsl:value-of select="concat(startdate/year,
|
||||
format-number(startdate/month, '00'))"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="gen-long-en-month">
|
||||
<xsl:with-param name="nummonth" select="startdate/month"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="startdate/year"/>
|
||||
</h3>
|
||||
|
||||
<ul>
|
||||
<xsl:for-each select="key('event-by-month',
|
||||
concat(startdate/year, format-number(startdate/month, '00')))">
|
||||
|
||||
<xsl:sort select="format-number(startdate/day, '00')" order="ascending"/>
|
||||
<xsl:apply-templates select="."/>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:for-each>
|
||||
|
||||
<h2 id="past">
|
||||
<xsl:text>Past Events:</xsl:text>
|
||||
</h2>
|
||||
|
||||
<xsl:for-each select="event[generate-id() =
|
||||
generate-id(key('event-by-month', concat(startdate/year,
|
||||
format-number(startdate/month, '00')))[1])
|
||||
and ((number(enddate/year) < number($curdate/year)) or
|
||||
(number(enddate/year) = number($curdate/year) and
|
||||
number(enddate/month) < number($curdate/month)) or
|
||||
(number(enddate/year) = number($curdate/year) and
|
||||
number(enddate/month) = number($curdate/month) and
|
||||
number(enddate/day) < number($curdate/day)))]">
|
||||
|
||||
<xsl:sort select="number(startdate/year)" order="descending"/>
|
||||
<xsl:sort select="format-number(startdate/month, '00')" order="descending"/>
|
||||
<xsl:sort select="format-number(startdate/day, '00')" order="descending"/>
|
||||
|
||||
<h3>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:text>month:</xsl:text>
|
||||
<xsl:value-of select="concat(startdate/year,
|
||||
format-number(startdate/month, '00'))"/>
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="gen-long-en-month">
|
||||
<xsl:with-param name="nummonth" select="startdate/month"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="startdate/year"/>
|
||||
</h3>
|
||||
|
||||
<ul>
|
||||
<xsl:for-each select="key('event-by-month',
|
||||
concat(startdate/year, format-number(startdate/month, '00')))">
|
||||
|
||||
<xsl:sort select="format-number(startdate/day, '00')" order="descending"/>
|
||||
<xsl:apply-templates select="."/>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:for-each>
|
||||
</div> <!-- contentwrap -->
|
||||
|
||||
<br class="clearboth" />
|
||||
</div> <!-- content -->
|
||||
|
||||
<xsl:copy-of select="$footer"/>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- containerwrap -->
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event">
|
||||
<li>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:call-template name="generate-event-anchor"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<p>
|
||||
<b>
|
||||
<xsl:if test="url">
|
||||
<xsl:apply-templates select="url"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="not(url)">
|
||||
<xsl:value-of select="name"/>
|
||||
</xsl:if>
|
||||
</b>
|
||||
<xsl:if test="location/site!=''">
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="location/site"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="location/city!=''">
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="location/city"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="location/state!=''">
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="location/state"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="location/country!=''">
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="location/country"/>
|
||||
</xsl:if>
|
||||
<br/>
|
||||
<em>
|
||||
<xsl:call-template name="gen-date-interval">
|
||||
<xsl:with-param name="startdate" select="startdate" />
|
||||
<xsl:with-param name="enddate" select="enddate" />
|
||||
</xsl:call-template>
|
||||
</em><br/>
|
||||
<xsl:copy-of select="description/child::node()"/>
|
||||
</p>
|
||||
<xsl:if test="link">
|
||||
<p><xsl:apply-templates select="link"/></p>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: link -->
|
||||
<xsl:template match="link">
|
||||
<xsl:apply-templates select="url"/>
|
||||
<xsl:if test="not(position()=last())">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: url -->
|
||||
<xsl:template match="url">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@type='freebsd-website'">
|
||||
<xsl:value-of select="$base"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="../name"/>
|
||||
</a>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<!-- Generate a unique anchor for this event. -->
|
||||
<xsl:template name="generate-event-anchor">
|
||||
<xsl:text>event:</xsl:text>
|
||||
<xsl:value-of select="@id"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Generic templates: -->
|
||||
|
||||
<!-- Convert a month number to the corresponding long English name. -->
|
||||
<xsl:template name="gen-long-en-month">
|
||||
<xsl:param name="nummonth"/>
|
||||
<xsl:variable name="month" select="number($nummonth)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$month=1">January</xsl:when>
|
||||
<xsl:when test="$month=2">February</xsl:when>
|
||||
<xsl:when test="$month=3">March</xsl:when>
|
||||
<xsl:when test="$month=4">April</xsl:when>
|
||||
<xsl:when test="$month=5">May</xsl:when>
|
||||
<xsl:when test="$month=6">June</xsl:when>
|
||||
<xsl:when test="$month=7">July</xsl:when>
|
||||
<xsl:when test="$month=8">August</xsl:when>
|
||||
<xsl:when test="$month=9">September</xsl:when>
|
||||
<xsl:when test="$month=10">October</xsl:when>
|
||||
<xsl:when test="$month=11">November</xsl:when>
|
||||
<xsl:when test="$month=12">December</xsl:when>
|
||||
<xsl:otherwise>Invalid month</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Generate a date interval. -->
|
||||
<!-- Sample: 27 November, 2002 - 29 December, 2003 -->
|
||||
<xsl:template name="gen-date-interval">
|
||||
<xsl:param name="startdate"/>
|
||||
<xsl:param name="enddate"/>
|
||||
|
||||
<xsl:value-of select="startdate/day"/>
|
||||
|
||||
<xsl:if test="number(startdate/month) != number(enddate/month) or
|
||||
number(startdate/day) != number(enddate/day) or
|
||||
number(startdate/year) != number(enddate/year)">
|
||||
|
||||
<xsl:if test="number(startdate/month) != number(enddate/month) or
|
||||
number(startdate/year) != number(enddate/year)">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="gen-long-en-month">
|
||||
<xsl:with-param name="nummonth" select="startdate/month"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="number(startdate/year) != number(enddate/year)">
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="startdate/year"/>
|
||||
</xsl:if>
|
||||
<xsl:text> - </xsl:text>
|
||||
|
||||
<xsl:if test="number(startdate/day) != number(enddate/day) or
|
||||
number(startdate/month) != number(enddate/month) or
|
||||
number(startdate/year) != number(enddate/year)">
|
||||
<xsl:value-of select="enddate/day"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="gen-long-en-month">
|
||||
<xsl:with-param name="nummonth" select="enddate/month"/>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="enddate/year"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue