Clean up indentation in the hopes of making this template more
decipherable.
This commit is contained in:
parent
fc4243cd55
commit
afc22676c9
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=48668
1 changed files with 273 additions and 265 deletions
|
|
@ -1,6 +1,9 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
||||
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD Fragment//EN"
|
||||
|
||||
<!DOCTYPE xsl:stylesheet PUBLIC
|
||||
"-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD Fragment//EN"
|
||||
"http://www.FreeBSD.org/XML/share/xml/xslt10-freebsd.dtd" [
|
||||
|
||||
<!ENTITY title "FreeBSD Events">
|
||||
<!ENTITY rsslink "&base;/events/rss.xml">
|
||||
<!ENTITY rsstitle "Upcoming FreeBSD Events">
|
||||
|
|
@ -12,29 +15,35 @@
|
|||
Copyright (c) 2008 Murray M Stokely <murray@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.
|
||||
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.
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0"
|
||||
xmlns:date="http://exslt.org/dates-and-times"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
extension-element-prefixes="date">
|
||||
|
|
@ -94,9 +103,7 @@
|
|||
<div id="feedlinks">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="&rsslink;" title="&rsstitle;">
|
||||
RSS 2.0 Feed
|
||||
</a>
|
||||
<a href="&rsslink;" title="&rsstitle;">RSS 2.0 Feed</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> <!-- FEEDLINKS -->
|
||||
|
|
@ -104,10 +111,9 @@
|
|||
|
||||
<div id="contentwrap">
|
||||
<h1>&title;</h1>
|
||||
<!--
|
||||
Note the current date to have a reference, if the
|
||||
upcoming/past events are split incorrectly.
|
||||
-->
|
||||
<!-- 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,
|
||||
|
|
@ -145,9 +151,11 @@
|
|||
<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>
|
||||
|
|
@ -217,10 +225,10 @@
|
|||
</div> <!-- contentwrap -->
|
||||
|
||||
<br class="clearboth" />
|
||||
</xsl:template>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: event -->
|
||||
<xsl:template name="eventbody">
|
||||
<!-- Template: event -->
|
||||
<xsl:template name="eventbody">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:call-template name="generate-event-anchor"/>
|
||||
</xsl:attribute>
|
||||
|
|
@ -262,17 +270,17 @@
|
|||
<xsl:if test="link">
|
||||
<p><xsl:apply-templates select="link"/></p>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event" mode="upcoming">
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event" mode="upcoming">
|
||||
<li>
|
||||
<xsl:call-template name="eventbody"/>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event">
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event">
|
||||
<xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
||||
<xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
|
||||
<xsl:variable name="name" select="name" />
|
||||
|
|
@ -295,18 +303,18 @@
|
|||
<a rel="nofollow">
|
||||
<xsl:attribute name="href">http://www.youtube.com/results?search_query=bsdconferences+<xsl:value-of select="name" /></xsl:attribute>YouTube</a></xsl:if>.</p>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: link -->
|
||||
<xsl:template match="link">
|
||||
<!-- 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>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Template: url -->
|
||||
<xsl:template match="url">
|
||||
<!-- Template: url -->
|
||||
<xsl:template match="url">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:if test="@type='freebsd-website'">&base;</xsl:if>
|
||||
|
|
@ -314,9 +322,9 @@
|
|||
</xsl:attribute>
|
||||
<xsl:value-of select="../name"/>
|
||||
</a>
|
||||
</xsl:template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="split-string">
|
||||
<xsl:template name="split-string">
|
||||
<xsl:param name="seperator"/>
|
||||
<xsl:param name="text"/>
|
||||
<xsl:variable name="first" select="substring-before($text, $seperator)"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue