root/trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl

Revision 1165 (checked in by johnsa, 6 years ago)

more work on public client calendar export

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output
4   method="html"
5   indent="yes"
6   media-type="text/html"
7   doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
8   doctype-system="http://www.w3.org/TR/html4/loose.dtd"
9   standalone="yes"
10 />
11
12 <!-- =========================================================
13
14               DEMONSTRATION CALENDAR STYLESHEET
15
16      This stylesheet is devoid of school branding.  It is a good
17      starting point for development of a customized calendar.
18
19      For detailed instructions on how to work with the XSLT
20      stylesheets included with this distribution, please see the
21      Bedework Design Guide at
22      http://www.bedework.org/bedework/update.do?artcenterkey=24
23
24 ===============================================================  -->
25 <!-- **********************************************************************
26     Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved.
27
28     Redistribution and use of this distribution in source and binary forms,
29     with or without modification, are permitted provided that:
30        The above copyright notice and this permission notice appear in all
31         copies and supporting documentation;
32
33         The name, identifiers, and trademarks of Rensselaer Polytechnic
34         Institute are not used in advertising or publicity without the
35         express prior written permission of Rensselaer Polytechnic Institute;
36
37     DISCLAIMER: The software is distributed" AS IS" without any express or
38     implied warranty, including but not limited to, any implied warranties
39     of merchantability or fitness for a particular purpose or any warrant)'
40     of non-infringement of any current or pending patent rights. The authors
41     of the software make no representations about the suitability of this
42     software for any particular purpose. The entire risk as to the quality
43     and performance of the software is with the user. Should the software
44     prove defective, the user assumes the cost of all necessary servicing,
45     repair or correction. In particular, neither Rensselaer Polytechnic
46     Institute, nor the authors of the software are liable for any indirect,
47     special, consequential, or incidental damages related to the software,
48     to the maximum extent the law permits. -->
49
50   <!-- ================================= -->
51   <!--  DEMO PUBLIC CALENDAR STYLESHEET  -->
52   <!-- ================================= -->
53
54   <!-- DEFINE INCLUDES -->
55   <xsl:include href="errors.xsl"/>
56
57   <!-- DEFINE GLOBAL CONSTANTS -->
58
59   <!-- URL of the XSL template directory -->
60   <!-- The approot is an appropriate place to put
61        included stylesheets and xml fragments. These are generally
62        referenced relatively (like errors.xsl and messages.xsl above);
63        this variable is here for your convenience if you choose to
64        reference it explicitly.  It is not used in this stylesheet, however,
65        and can be safely removed if you so choose. -->
66   <xsl:variable name="appRoot" select="/bedework/approot"/>
67
68   <!-- URL of html resources (images, css, other html); by default this is
69        set to the application root -->
70   <xsl:variable name="resourcesRoot" select="/bedework/approot"/>
71
72   <!-- Properly encoded prefixes to the application actions; use these to build
73        urls; allows the application to be used without cookies or within a portal.
74        These urls are rewritten in header.jsp and simply passed through for use
75        here. Every url includes a query string (either ?b=de or a real query
76        string) so that all links constructed in this stylesheet may begin the
77        query string with an ampersand. -->
78   <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/>
79   <xsl:variable name="setSelection" select="/bedework/urlPrefixes/setSelection"/>
80   <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/fetchPublicCalendars"/>
81   <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/setViewPeriod"/>
82   <xsl:variable name="eventView" select="/bedework/urlPrefixes/eventView"/>
83   <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/addEventRef"/>
84   <xsl:variable name="export" select="/bedework/urlPrefixes/export/a/@href"/>
85   <xsl:variable name="search" select="/bedework/urlPrefixes/search/search"/>
86   <xsl:variable name="search-next" select="/bedework/urlPrefixes/search/next"/>
87   <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mailEvent"/>
88   <xsl:variable name="showPage" select="/bedework/urlPrefixes/showPage"/>
89   <xsl:variable name="stats" select="/bedework/urlPrefixes/stats"/>
90
91   <!-- URL of the web application - includes web context -->
92   <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/>
93
94   <!-- Other generally useful global variables -->
95   <xsl:variable name="privateCal">/ucal</xsl:variable>
96   <xsl:variable name="prevdate" select="/bedework/previousdate"/>
97   <xsl:variable name="nextdate" select="/bedework/nextdate"/>
98   <xsl:variable name="curdate" select="/bedework/currentdate/date"/>
99
100
101   <!-- MAIN TEMPLATE -->
102   <xsl:template match="/">
103     <html lang="en">
104       <head>
105         <title>Bedework Events Calendar</title>
106         <!-- load css -->
107         <xsl:choose>
108           <xsl:when test="/bedework/appvar[key='style']/value='red'">
109             <link rel="stylesheet" href="{$resourcesRoot}/default/default/red.css"/>
110           </xsl:when>
111           <xsl:when test="/bedework/appvar[key='style']/value='green'">
112             <link rel="stylesheet" href="{$resourcesRoot}/default/default/green.css"/>
113           </xsl:when>
114           <xsl:otherwise>
115             <link rel="stylesheet" href="{$resourcesRoot}/default/default/blue.css"/>
116           </xsl:otherwise>
117         </xsl:choose>
118         <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/>
119         <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" />
120         <!-- load javascript -->
121         <xsl:if test="/bedework/page='calendarList'">
122           <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/dojo/dojo.js"/>
123           <script type="text/javascript" src="{$resourcesRoot}/resources/javascript/bedework.js"/>
124         </xsl:if>
125         <!-- address bar icon -->
126         <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" />
127       </head>
128       <body>
129         <xsl:call-template name="headBar"/>
130         <xsl:if test="/bedework/error">
131           <div id="errors">
132             <xsl:apply-templates select="/bedework/error"/>
133           </div>
134         </xsl:if>
135         <xsl:call-template name="tabs"/>
136         <xsl:call-template name="navigation"/>
137         <xsl:call-template name="searchBar"/>
138         <xsl:choose>
139           <xsl:when test="/bedework/page='event'">
140             <!-- show an event -->
141             <xsl:apply-templates select="/bedework/event"/>
142           </xsl:when>
143           <xsl:when test="/bedework/page='showSysStats'">
144             <!-- show system stats -->
145             <xsl:call-template name="stats"/>
146           </xsl:when>
147           <xsl:when test="/bedework/page='calendarList'">
148             <!-- show a list of all calendars -->
149             <xsl:apply-templates select="/bedework/calendars"/>
150           </xsl:when>
151           <xsl:when test="/bedework/page='searchResult'">
152             <!-- display search results -->
153             <xsl:call-template name="searchResult"/>
154           </xsl:when>
155           <xsl:otherwise>
156             <!-- otherwise, show the eventsCalendar
157             <xsl:if test="/bedework/periodname!='Year'">
158               <xsl:call-template name="searchBar"/>
159             </xsl:if>-->
160             <!-- main eventCalendar content -->
161             <xsl:choose>
162               <xsl:when test="/bedework/periodname='Day'">
163                 <xsl:call-template name="listView"/>
164               </xsl:when>
165               <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
166                 <xsl:choose>
167                   <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
168                     <xsl:call-template name="listView"/>
169                   </xsl:when>
170                   <xsl:otherwise>
171                     <xsl:call-template name="weekView"/>
172                   </xsl:otherwise>
173                 </xsl:choose>
174               </xsl:when>
175               <xsl:when test="/bedework/periodname='Month'">
176                 <xsl:choose>
177                   <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
178                     <xsl:call-template name="listView"/>
179                   </xsl:when>
180                   <xsl:otherwise>
181                     <xsl:call-template name="monthView"/>
182                   </xsl:otherwise>
183                 </xsl:choose>
184               </xsl:when>
185               <xsl:otherwise>
186                 <xsl:call-template name="yearView"/>
187               </xsl:otherwise>
188             </xsl:choose>
189           </xsl:otherwise>
190         </xsl:choose>
191         <!-- footer -->
192         <xsl:call-template name="footer"/>
193       </body>
194     </html>
195   </xsl:template>
196
197   <!--==== HEADER TEMPLATES and NAVIGATION  ====-->
198   <!-- these templates are separated out for convenience and to simplify the default template -->
199
200   <xsl:template name="headBar">
201     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable">
202       <tr>
203         <td colspan="3" id="logoCell"><a href="{$urlPrefix}"><img src="{$resourcesRoot}/images/bedeworkLogo.gif" width="292" height="75" border="0" alt="Bedework"/></a></td>
204         <td colspan="2" id="schoolLinksCell">
205           <h2>Public Calendar</h2>
206           <a href="{$privateCal}">Personal Calendar</a> |
207           <a href="http://www.yourschoolhere.edu">School Home</a> |
208           <a href="http://www.bedework.org/">Other Link</a> |
209           <a href="http://helpdesk.rpi.edu/update.do?catcenterkey=51">
210             Example Calendar Help
211           </a>
212         </td>
213       </tr>
214     </table>
215     <table id="curDateRangeTable"  cellspacing="0">
216       <tr>
217         <td class="sideBarOpenCloseIcon">
218           &#160;
219           <!--
220           we may choose to implement calendar selection in the public calendar
221           using a sidebar; leave this comment here for now.
222           <xsl:choose>
223             <xsl:when test="/bedework/appvar[key='sidebar']/value='closed'">
224               <a href="?setappvar=sidebar(opened)">
225                 <img alt="open sidebar" src="{$resourcesRoot}/resources/sideBarArrowOpen.gif" width="21" height="16" border="0" align="left"/>
226               </a>
227             </xsl:when>
228             <xsl:otherwise>
229               <a href="?setappvar=sidebar(closed)">
230                 <img alt="close sidebar" src="{$resourcesRoot}/resources/sideBarArrowClose.gif" width="21" height="16" border="0" align="left"/>
231               </a>
232             </xsl:otherwise>
233           </xsl:choose>-->
234         </td>
235         <td class="date">
236           <xsl:choose>
237             <xsl:when test="/bedework/page='event'">
238               Event Information
239             </xsl:when>
240             <xsl:when test="/bedework/page='showSysStats' or
241                             /bedework/page='calendars'">
242               &#160;
243             </xsl:when>
244             <xsl:otherwise>
245               <xsl:value-of select="/bedework/firstday/longdate"/>
246               <xsl:if test="/bedework/periodname!='Day'">
247                 -
248                 <xsl:value-of select="/bedework/lastday/longdate"/>
249               </xsl:if>
250             </xsl:otherwise>
251           </xsl:choose>
252         </td>
253         <td class="rssPrint">
254           <a href="javascript:window.print()" title="print this view">
255             <img alt="print this view" src="{$resourcesRoot}/images/std-print-icon.gif" width="20" height="14" border="0"/> print
256           </a>
257           <a class="rss" href="{$setup}&amp;setappvar=summaryMode(details)&amp;skinName=rss" title="RSS feed">RSS</a>
258         </td>
259       </tr>
260     </table>
261   </xsl:template>
262
263   <xsl:template name="tabs">
264     <xsl:choose>
265       <xsl:when test="/bedework/page='eventscalendar'">
266         <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
267           <tr>
268             <td>
269               <xsl:choose>
270                 <xsl:when test="/bedework/periodname='Day'">
271                   <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-on.gif" width="91" height="20" border="0" alt="DAY"/></a>
272                 </xsl:when>
273                 <xsl:otherwise>
274                   <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
275                 </xsl:otherwise>
276               </xsl:choose>
277             </td>
278             <td>
279               <xsl:choose>
280                 <xsl:when test="/bedework/periodname='Week' or /bedework/periodname=''">
281                   <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-on.gif" width="92" height="20" border="0" alt="WEEK"/></a>
282                  </xsl:when>
283                 <xsl:otherwise>
284                   <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
285                  </xsl:otherwise>
286               </xsl:choose>
287             </td>
288             <td>
289               <xsl:choose>
290                 <xsl:when test="/bedework/periodname='Month'">
291                   <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-on.gif" width="90" height="20" border="0" alt="MONTH"/></a>
292                 </xsl:when>
293                 <xsl:otherwise>
294                   <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
295                 </xsl:otherwise>
296               </xsl:choose>
297             </td>
298             <td>
299               <xsl:choose>
300                 <xsl:when test="/bedework/periodname='Year'">
301                   <a href="{$setViewPeriod}&amp;viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-on.gif" width="92" height="20" border="0" alt="YEAR"/></a>
302                 </xsl:when>
303                 <xsl:otherwise>
304                   <a href="{$setViewPeriod}&amp;viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
305                 </xsl:otherwise>
306               </xsl:choose>
307             </td>
308             <td class="centerCell">
309               &#160;<!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
310             </td>
311             <td class="rightCell">
312               &#160;
313             </td>
314           </tr>
315         </table>
316       </xsl:when>
317       <xsl:otherwise>
318         <table border="0" cellpadding="0" cellspacing="0" id="tabsTable">
319           <tr>
320             <td>
321               <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-day-off.gif" width="91" height="20" border="0" alt="DAY"/></a>
322             </td>
323             <td>
324               <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-week-off.gif" width="92" height="20" border="0" alt="WEEK"/></a>
325             </td>
326             <td>
327               <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-month-off.gif" width="90" height="20" border="0" alt="MONTH"/></a>
328             </td>
329             <td>
330               <a href="{$setViewPeriod}&amp;viewType=yearView&amp;date={$curdate}"><img src="{$resourcesRoot}/images/std-tab-year-off.gif" width="92" height="20" border="0" alt="YEAR"/></a>
331             </td>
332             <td class="centerCell">
333               &#160;<!--<img src="{$resourcesRoot}/images/std-button-today.gif" width="46" height="17" border="0" alt="TODAY"/>-->
334             </td>
335             <td class="rightCell">
336               &#160;
337             </td>
338           </tr>
339         </table>
340       </xsl:otherwise>
341     </xsl:choose>
342   </xsl:template>
343
344   <xsl:template name="navigation">
345     <table border="0" cellpadding="0" cellspacing="0" id="navigationBarTable">
346       <tr>
347         <td class="leftCell">
348           <a id="prevViewPeriod" href="{$setViewPeriod}&amp;date={$prevdate}"><img src="{$resourcesRoot}/images/std-arrow-left.gif" alt="previous" width="13" height="16" class="prevImg" border="0"/></a>
349           <a id="nextViewPeriod" href="{$setViewPeriod}&amp;date={$nextdate}"><img src="{$resourcesRoot}/images/std-arrow-right.gif" alt="next" width="13" height="16" class="nextImg" border="0"/></a>
350           <xsl:choose>
351             <xsl:when test="/bedework/periodname='Year'">
352               <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
353             </xsl:when>
354             <xsl:when test="/bedework/periodname='Month'">
355               <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/>
356             </xsl:when>
357             <xsl:when test="/bedework/periodname='Week'">
358               Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/>
359             </xsl:when>
360             <xsl:otherwise>
361               <xsl:value-of select="/bedework/firstday/longdate"/>
362             </xsl:otherwise>
363           </xsl:choose>
364         </td>
365         <td class="todayButton">
366           <a href="{$setViewPeriod}&amp;viewType=todayView&amp;date={$curdate}">
367             <img src="{$resourcesRoot}/images/std-button-today-off.gif" width="54" height="22" border="0" alt="Go to Today" align="left"/>
368           </a>
369         </td>
370         <td align="right" class="gotoForm">
371           <form name="calForm" method="post" action="{$setViewPeriod}">
372              <table border="0" cellpadding="0" cellspacing="0">
373               <tr>
374                 <xsl:if test="/bedework/periodname!='Year'">
375                   <td>
376                     <select name="viewStartDate.month">
377                       <xsl:for-each select="/bedework/monthvalues/val">
378                         <xsl:variable name="temp" select="."/>
379                         <xsl:variable name="pos" select="position()"/>
380                         <xsl:choose>
381                           <xsl:when test="/bedework/monthvalues[start=$temp]">
382                             <option value="{$temp}" selected="selected">
383                               <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
384                             </option>
385                           </xsl:when>
386                           <xsl:otherwise>
387                             <option value="{$temp}">
388                               <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/>
389                             </option>
390                           </xsl:otherwise>
391                         </xsl:choose>
392                       </xsl:for-each>
393                     </select>
394                   </td>
395                   <xsl:if test="/bedework/periodname!='Month'">
396                     <td>
397                       <select name="viewStartDate.day">
398                         <xsl:for-each select="/bedework/dayvalues/val">
399                           <xsl:variable name="temp" select="."/>
400                           <xsl:variable name="pos" select="position()"/>
401                           <xsl:choose>
402                             <xsl:when test="/bedework/dayvalues[start=$temp]">
403                               <option value="{$temp}" selected="selected">
404                                 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
405                               </option>
406                             </xsl:when>
407                             <xsl:otherwise>
408                               <option value="{$temp}">
409                                 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/>
410                               </option>
411                             </xsl:otherwise>
412                           </xsl:choose>
413                         </xsl:for-each>
414                       </select>
415                     </td>
416                   </xsl:if>
417                 </xsl:if>
418                 <td>
419                   <xsl:variable name="temp" select="/bedework/yearvalues/start"/>
420                   <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/>
421                 </td>
422                 <td>
423                   <input name="submit" type="submit" value="go"/>
424                 </td>
425               </tr>
426             </table>
427           </form>
428         </td>
429         <td class="rightCell">
430         </td>
431       </tr>
432     </table>
433   </xsl:template>
434
435   <xsl:template name="searchBar">
436     <table width="100%" border="0" cellpadding="0" cellspacing="0" id="searchBarTable">
437        <tr>
438          <td class="leftCell">
439            <xsl:choose>
440              <xsl:when test="/bedework/selectionState/selectionType = 'calendar'">
441                Calendar: <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/>
442                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
443              </xsl:when>
444              <xsl:when test="/bedework/selectionState/selectionType = 'search'">
445                Current search: <xsl:value-of select="/bedework/search"/>
446                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
447              </xsl:when>
448              <xsl:when test="/bedework/selectionState/selectionType = 'subscription'">
449                Subscription: (not implemented yet)
450                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
451              </xsl:when>
452              <xsl:when test="/bedework/selectionState/selectionType = 'filter'">
453                Filter: (not implemented yet)
454                <span class="link">[<a href="{$setSelection}">default view</a>]</span>
455              </xsl:when>
456              <xsl:otherwise><!-- view -->
457                View:
458                <form name="selectViewForm" method="post" action="{$setSelection}">
459                 <select name="viewName" onChange="submit()" >
460                   <xsl:for-each select="/bedework/views/view">
461                     <xsl:variable name="name" select="name"/>
462                     <xsl:choose>
463                       <xsl:when test="name=/bedework/selectionState/view/name">
464                         <option value="{$name}" selected="selected"><xsl:value-of select="name"/></option>
465                       </xsl:when>
466                       <xsl:otherwise>
467                         <option value="{$name}"><xsl:value-of select="name"/></option>
468                       </xsl:otherwise>
469                     </xsl:choose>
470                   </xsl:for-each>
471                 </select>
472               </form>
473               <span class="calLinks"><a href="{$setSelection}">default view</a> | <a href="{$fetchPublicCalendars}">available calendars</a></span>
474              </xsl:otherwise>
475            </xsl:choose>
476          </td>
477          <td class="rightCell">
478             <xsl:if test="/bedework/page!='searchResult'">
479               <form name="searchForm" method="post" action="{$search}">
480                 Search:
481                 <input type="text" name="query" size="15">
482                   <xsl:attribute name="value"><xsl:value-of select="/bedework/searchResults/query"/></xsl:attribute>
483                 </input>
484                 <input type="submit" name="submit" value="go"/>
485               </form>
486             </xsl:if>
487             <xsl:choose>
488               <xsl:when test="/bedework/periodname='Day'">
489                 <img src="{$resourcesRoot}/images/std-button-listview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
490               </xsl:when>
491               <xsl:when test="/bedework/periodname='Year'">
492                 <img src="{$resourcesRoot}/images/std-button-calview-off.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
493               </xsl:when>
494               <xsl:when test="/bedework/periodname='Month'">
495                 <xsl:choose>
496                   <xsl:when test="/bedework/appvar[key='monthViewMode']/value='list'">
497                     <a href="{$setup}&amp;setappvar=monthViewMode(cal)" title="toggle list/calendar view">
498                       <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
499                     </a>
500                   </xsl:when>
501                   <xsl:otherwise>
502                     <a href="{$setup}&amp;setappvar=monthViewMode(list)" title="toggle list/calendar view">
503                       <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
504                     </a>
505                   </xsl:otherwise>
506                 </xsl:choose>
507               </xsl:when>
508               <xsl:otherwise>
509                 <xsl:choose>
510                   <xsl:when test="/bedework/appvar[key='weekViewMode']/value='list'">
511                     <a href="{$setup}&amp;setappvar=weekViewMode(cal)" title="toggle list/calendar view">
512                       <img src="{$resourcesRoot}/images/std-button-calview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
513                     </a>
514                   </xsl:when>
515                   <xsl:otherwise>
516                     <a href="{$setup}&amp;setappvar=weekViewMode(list)" title="toggle list/calendar view">
517                       <img src="{$resourcesRoot}/images/std-button-listview.gif" width="46" height="21" border="0" alt="toggle list/calendar view"/>
518                     </a>
519                   </xsl:otherwise>
520                 </xsl:choose>
521               </xsl:otherwise>
522             </xsl:choose>
523             <xsl:choose>
524               <xsl:when test="/bedework/periodname='Year' or
525                               (/bedework/periodname='Month' and
526                               (/bedework/appvar[key='monthViewMode']/value='cal' or
527                                not(/bedework/appvar[key='monthViewMode']))) or
528                               (/bedework/periodname='Week' and
529                               (/bedework/appvar[key='weekViewMode']/value='cal' or
530                                not(/bedework/appvar[key='weekViewMode'])))">
531                 <xsl:choose>
532                   <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
533                     <img src="{$resourcesRoot}/images/std-button-summary-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
534                   </xsl:when>
535                   <xsl:otherwise>
536                     <img src="{$resourcesRoot}/images/std-button-details-off.gif" width="62" height="21" border="0" alt="only summaries of events supported in this view"/>
537                   </xsl:otherwise>
538                 </xsl:choose>
539               </xsl:when>
540               <xsl:otherwise>
541                 <xsl:choose>
542                   <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
543                     <a href="{$setup}&amp;setappvar=summaryMode(summary)" title="toggle summary/detailed view">
544                       <img src="{$resourcesRoot}/images/std-button-summary.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
545                     </a>
546                   </xsl:when>
547                   <xsl:otherwise>
548                     <a href="{$setup}&amp;setappvar=summaryMode(details)" title="toggle summary/detailed view">
549                       <img src="{$resourcesRoot}/images/std-button-details.gif" width="62" height="21" border="0" alt="toggle summary/detailed view"/>
550                     </a>
551                   </xsl:otherwise>
552                 </xsl:choose>
553               </xsl:otherwise>
554             </xsl:choose>
555             <a href="setup.do"><img src="{$resourcesRoot}/images/std-button-refresh.gif" width="70" height="21" border="0" alt="refresh view"/></a>
556           </td>
557        </tr>
558     </table>
559   </xsl:template>
560
561   <!--==== SINGLE EVENT ====-->
562   <xsl:template match="event">
563     <xsl:variable name="statusClass">
564       <xsl:choose>
565         <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when>
566         <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when>
567         <xsl:otherwise>bwStatusConfirmed</xsl:otherwise>
568       </xsl:choose>
569     </xsl:variable>
570     <h2 class="{$statusClass}">
571       <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
572       <xsl:choose>
573         <xsl:when test="link != ''">
574           <xsl:variable name="link" select="link"/>
575           <a href="{$link}">
576             <xsl:value-of select="summary"/>
577           </a>
578         </xsl:when>
579         <xsl:otherwise>
580           <xsl:value-of select="summary"/>
581         </xsl:otherwise>
582       </xsl:choose>
583     </h2>
584     <table id="eventTable" cellpadding="0" cellspacing="0">
585       <tr>
586         <td class="fieldname">When:</td>
587         <td class="fieldval">
588           <!-- always display local time -->
589           <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/><xsl:text> </xsl:text>
590           <xsl:if test="start/allday = 'false'">
591             <span class="time"><xsl:value-of select="start/time"/></span>
592           </xsl:if>
593           <xsl:if test="(end/longdate != start/longdate) or
594                         ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if>
595           <xsl:if test="end/longdate != start/longdate">
596             <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text>
597           </xsl:if>
598           <xsl:choose>
599             <xsl:when test="start/allday = 'true'">
600               <span class="time"><em>(all day)</em></span>
601             </xsl:when>
602             <xsl:when test="end/longdate != start/longdate">
603               <span class="time"><xsl:value-of select="end/time"/></span>
604             </xsl:when>
605             <xsl:when test="end/time != start/time">
606               <span class="time"><xsl:value-of select="end/time"/></span>
607             </xsl:when>
608           </xsl:choose>
609           <xsl:if test="start/timezone/islocal = 'false'">
610             <xsl:text> </xsl:text>
611             --
612             <strong>Local time</strong>
613             <br/>
614           </xsl:if>
615           <!-- display in timezone if not local -->
616           <xsl:if test="start/timezone/islocal = 'false'">
617             <xsl:value-of select="start/timezone/dayname"/>, <xsl:value-of select="start/timezone/longdate"/><xsl:text> </xsl:text>
618             <xsl:if test="start/allday = 'false'">
619               <span class="time"><xsl:value-of select="start/timezone/time"/></span>
620             </xsl:if>
621             <xsl:if test="(end/timezone/longdate != start/timezone/longdate) or
622                           ((end/timezone/longdate = start/timezone/longdate) and (end/timezone/time != start/timezone/time))"> - </xsl:if>
623             <xsl:if test="end/timezone/longdate != start/timezone/longdate">
624               <xsl:value-of select="substring(end/timezone/dayname,1,3)"/>, <xsl:value-of select="end/timezone/longdate"/><xsl:text> </xsl:text>
625             </xsl:if>
626             <xsl:choose>
627               <xsl:when test="start/allday = 'true'">
628                 <span class="time"><em>(all day)</em></span>
629               </xsl:when>
630               <xsl:when test="end/timezone/longdate != start/timezone/longdate">
631                 <span class="time"><xsl:value-of select="end/timezone/time"/></span>
632               </xsl:when>
633               <xsl:when test="end/timezone/time != start/timezone/time">
634                 <span class="time"><xsl:value-of select="end/timezone/time"/></span>
635               </xsl:when>
636             </xsl:choose>
637             <xsl:text> </xsl:text>
638             --
639             <strong><xsl:value-of select="start/timezone/id"/></strong>
640           </xsl:if>
641         </td>
642         <th class="icalIcon" rowspan="2">
643           <div id="eventIcons">
644             <xsl:variable name="id" select="id"/>
645             <xsl:variable name="subscriptionId" select="subscription/id"/>
646             <xsl:variable name="calPath" select="calendar/encodedPath"/>
647             <xsl:variable name="guid" select="guid"/>
648             <xsl:variable name="recurrenceId" select="recurrenceId"/>
649             <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
650               <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/>
651             add to my calendar</a>
652             <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
653             <a href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
654               <img src="{$resourcesRoot}/images/std-ical_icon.gif" width="20" height="26" border="0" alt="Download this event"/>
655              download</a>
656           </div>
657         </th>
658       </tr>
659       <tr>
660         <td class="fieldname">Where:</td>
661         <td class="fieldval">
662           <xsl:choose>
663             <xsl:when test="location/link=''">
664               <xsl:value-of select="location/address"/>
665             </xsl:when>
666             <xsl:otherwise>
667               <xsl:variable name="locationLink" select="location/link"/>
668               <a href="{$locationLink}">
669                 <xsl:value-of select="location/address"/>
670               </a>
671             </xsl:otherwise>
672           </xsl:choose>
673           <xsl:if test="location/subaddress!=''">
674             <br/><xsl:value-of select="location/subaddress"/>
675           </xsl:if>
676         </td>
677       </tr>
678       <tr>
679         <td class="fieldname">Description:</td>
680         <td colspan="2" class="fieldval description">
681           <xsl:call-template name="replace">
682             <xsl:with-param name="string" select="description"/>
683             <xsl:with-param name="pattern" select="'&#xA;'"/>
684             <xsl:with-param name="replacement"><br/></xsl:with-param>
685           </xsl:call-template>
686         </td>
687       </tr>
688       <xsl:if test="status !='' and status != 'CONFIRMED'">
689         <tr>
690           <td class="fieldname">Status:</td>
691           <td class="fieldval">
692             <xsl:value-of select="status"/>
693           </td>
694         </tr>
695       </xsl:if>
696       <xsl:if test="cost!=''">
697         <tr>
698           <td class="fieldname">Cost:</td>
699           <td colspan="2" class="fieldval"><xsl:value-of select="cost"/></td>
700         </tr>
701       </xsl:if>
702       <xsl:if test="link != ''">
703         <tr>
704           <td class="fieldname">See:</td>
705           <td colspan="2" class="fieldval">
706             <xsl:variable name="link" select="link"/>
707             <a href="{$link}"><xsl:value-of select="link"/></a>
708           </td>
709         </tr>
710       </xsl:if>
711       <xsl:if test="contact/name!='none'">
712         <tr>
713           <td class="fieldname">Contact:</td>
714           <td colspan="2" class="fieldval">
715             <xsl:choose>
716               <xsl:when test="contact/link=''">
717                 <xsl:value-of select="contact/name"/>
718               </xsl:when>
719               <xsl:otherwise>
720                 <xsl:variable name="contactLink" select="contact/link"/>
721                 <a href="{$contactLink}">
722                   <xsl:value-of select="contact/name"/>
723                 </a>
724               </xsl:otherwise>
725             </xsl:choose>
726             <xsl:if test="contact/phone!=''">
727               <br /><xsl:value-of select="contact/phone"/>
728             </xsl:if>
729             <!-- If you want to display email addresses, uncomment the
730                  following 8 lines. -->
731             <!-- <xsl:if test="contact/email!=''">
732               <br />
733               <xsl:variable name="email" select="contact/email"/>
734               <xsl:variable name="subject" select="summary"/>
735               <a href="mailto:{$email}&amp;subject={$subject}">
736                 <xsl:value-of select="contact/email"/>
737               </a>
738             </xsl:if> -->
739           </td>
740         </tr>
741       </xsl:if>
742       <tr>
743         <td class="fieldname">Calendar:</td>
744         <td class="fieldval">
745           <xsl:variable name="calUrl" select="calendar/encodedPath"/>
746           <a href="{$setSelection}&amp;calUrl={$calUrl}">
747             <xsl:value-of select="calendar/name"/>
748           </a>
749         </td>
750       </tr>
751       <xsl:if test="categories/category">
752         <tr>
753           <td class="fieldname">Categories:</td>
754           <td class="fieldval">
755             <!--<ul id="eventCategories">-->
756               <xsl:for-each select="categories/category">
757                 <!--<li>--><xsl:value-of select="word"/><br/><!--</li>-->
758               </xsl:for-each>
759             <!--</ul>-->
760           </td>
761         </tr>
762       </xsl:if>
763     </table>
764   </xsl:template>
765
766   <!--==== LIST VIEW  (for day, week, and month) ====-->
767   <xsl:template name="listView">
768     <table id="listTable" border="0" cellpadding="0" cellspacing="0">
769       <xsl:choose>
770         <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)">
771           <tr>
772             <td class="noEventsCell">
773               No events to display.
774             </td>
775           </tr>
776         </xsl:when>
777         <xsl:otherwise>
778           <xsl:for-each select="/bedework/eventscalendar/year/month/week/day[event]">
779             <xsl:if test="/bedework/periodname='Week' or /bedework/periodname='Month' or /bedework/periodname=''">
780               <tr>
781                 <td colspan="5" class="dateRow">
782                    <xsl:variable name="date" select="date"/>
783                    <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$date}">
784                      <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/>
785                    </a>
786                 </td>
787               </tr>
788             </xsl:if>
789             <xsl:for-each select="event">
790               <xsl:variable name="id" select="id"/>
791               <xsl:variable name="subscriptionId" select="subscription/id"/>
792               <xsl:variable name="calPath" select="calendar/encodedPath"/>
793               <xsl:variable name="guid" select="guid"/>
794               <xsl:variable name="recurrenceId" select="recurrenceId"/>
795               <tr>
796                 <xsl:variable name="dateRangeStyle">
797                   <xsl:choose>
798                     <xsl:when test="start/shortdate = parent::day/shortdate">
799                       <xsl:choose>
800                         <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when>
801                         <xsl:when test="start/hour24 &lt; 6">dateRangeEarlyMorning</xsl:when>
802                         <xsl:when test="start/hour24 &lt; 12">dateRangeMorning</xsl:when>
803                         <xsl:when test="start/hour24 &lt; 18">dateRangeAfternoon</xsl:when>
804                         <xsl:otherwise>dateRangeEvening</xsl:otherwise>
805                       </xsl:choose>
806                     </xsl:when>
807                     <xsl:otherwise>dateRangeCrossDay</xsl:otherwise>
808                   </xsl:choose>
809                 </xsl:variable>
810                 <xsl:choose>
811                   <xsl:when test="start/allday = 'true' and
812                                   start/shortdate = end/shortdate">
813                     <td class="{$dateRangeStyle} center" colspan="3">
814                       all day
815                     </td>
816                   </xsl:when>
817                   <xsl:when test="start/shortdate = end/shortdate and
818                                   start/time = end/time">
819                     <td class="{$dateRangeStyle} center" colspan="3">
820                       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
821                         <xsl:value-of select="start/time"/>
822                       </a>
823                     </td>
824                   </xsl:when>
825                   <xsl:otherwise>
826                     <td class="{$dateRangeStyle} right">
827                       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
828                       <xsl:choose>
829                         <xsl:when test="start/allday = 'true' and
830                                         parent::day/shortdate = start/shortdate">
831                           today
832                         </xsl:when>
833                         <xsl:when test="parent::day/shortdate != start/shortdate">
834                           <span class="littleArrow">&#171;</span>&#160;
835                           <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
836                         </xsl:when>
837                         <xsl:otherwise>
838                           <xsl:value-of select="start/time"/>
839                         </xsl:otherwise>
840                       </xsl:choose>
841                       </a>
842                     </td>
843                     <td class="{$dateRangeStyle} center">
844                       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a>
845                     </td>
846                     <td class="{$dateRangeStyle} left">
847                       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
848                       <xsl:choose>
849                         <xsl:when test="end/allday = 'true' and
850                                         parent::day/shortdate = end/shortdate">
851                           today
852                         </xsl:when>
853                         <xsl:when test="parent::day/shortdate != end/shortdate">
854                           <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
855                           &#160;<span class="littleArrow">&#187;</span>
856                         </xsl:when>
857                         <xsl:otherwise>
858                           <xsl:value-of select="end/time"/>
859                         </xsl:otherwise>
860                       </xsl:choose>
861                       </a>
862                     </td>
863                   </xsl:otherwise>
864                 </xsl:choose>
865                 <xsl:variable name="descriptionClass">
866                   <xsl:choose>
867                     <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when>
868                     <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when>
869                     <xsl:otherwise>description</xsl:otherwise>
870                   </xsl:choose>
871                 </xsl:variable>
872                 <td class="{$descriptionClass}">
873                   <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if>
874                   <xsl:choose>
875                     <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'">
876                       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
877                         <strong>
878                           <xsl:value-of select="summary"/>:
879                         </strong>
880                         <xsl:value-of select="description"/>&#160;
881                         <em>
882                           <xsl:value-of select="location/address"/>
883                           <xsl:if test="location/subaddress != ''">
884                             , <xsl:value-of select="location/subaddress"/>
885                           </xsl:if>.&#160;
886                           <xsl:if test="cost!=''">
887                             <xsl:value-of select="cost"/>.&#160;
888                           </xsl:if>
889                           <xsl:if test="contact/name!='none'">
890                             Contact: <xsl:value-of select="contact/name"/>
891                           </xsl:if>
892                         </em>
893                         - <xsl:value-of select="calendar/name"/>
894                       </a>
895                       <xsl:if test="link != ''">
896                         <xsl:variable name="link" select="link"/>
897                         <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a>
898                       </xsl:if>
899                     </xsl:when>
900                     <xsl:otherwise>
901                       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
902                         <xsl:value-of select="summary"/>
903                         <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if>
904                          - <em><xsl:value-of select="calendar/name"/></em>
905                       </a>
906                     </xsl:otherwise>
907                   </xsl:choose>
908                 </td>
909                 <td class="icons">
910                   <variable name="confId" select="/bedework/confirmationid"/>
911                   <a href="{$privateCal}/addEventRef.do?subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">
912                     <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/>
913                   </a>
914                   <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/>
915                   <a href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars">
916                     <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>
917                   </a>
918                 </td>
919               </tr>
920             </xsl:for-each>
921           </xsl:for-each>
922         </xsl:otherwise>
923       </xsl:choose>
924     </table>
925   </xsl:template>
926
927   <!--==== WEEK CALENDAR VIEW ====-->
928   <xsl:template name="weekView">
929     <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
930       <tr>
931         <xsl:for-each select="/bedework/daynames/val">
932           <th class="dayHeading"><xsl:value-of select="."/></th>
933         </xsl:for-each>
934       </tr>
935       <tr>
936         <xsl:for-each select="/bedework/eventscalendar/year/month/week/day">
937           <xsl:variable name="dayPos" select="position()"/>
938           <xsl:if test="filler='false'">
939             <td>
940               <xsl:if test="/bedework/now/date = date">
941                 <xsl:attribute name="class">today</xsl:attribute>
942               </xsl:if>
943               <xsl:variable name="dayDate" select="date"/>
944               <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink">
945                 <xsl:value-of select="value"/>
946               </a>
947               <ul>
948                 <xsl:apply-templates select="event" mode="calendarLayout">
949                   <xsl:with-param name="dayPos" select="$dayPos"/>
950                 </xsl:apply-templates>
951               </ul>
952             </td>
953           </xsl:if>
954         </xsl:for-each>
955       </tr>
956     </table>
957   </xsl:template>
958
959   <!--==== MONTH CALENDAR VIEW ====-->
960   <xsl:template name="monthView">
961     <table id="monthCalendarTable" border="0" cellpadding="0" cellspacing="0">
962       <tr>
963         <xsl:for-each select="/bedework/daynames/val">
964           <th class="dayHeading"><xsl:value-of select="."/></th>
965         </xsl:for-each>
966       </tr>
967       <xsl:for-each select="/bedework/eventscalendar/year/month/week">
968         <tr>
969           <xsl:for-each select="day">
970             <xsl:variable name="dayPos" select="position()"/>
971             <xsl:choose>
972               <xsl:when test="filler='true'">
973                 <td class="filler">&#160;</td>
974               </xsl:when>
975               <xsl:otherwise>
976                 <td>
977                   <xsl:if test="/bedework/now/date = date">
978                     <xsl:attribute name="class">today</xsl:attribute>
979                   </xsl:if>
980                   <xsl:variable name="dayDate" select="date"/>
981                   <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink">
982                     <xsl:value-of select="value"/>
983                   </a>
984                   <ul>
985                     <xsl:apply-templates select="event" mode="calendarLayout">
986                       <xsl:with-param name="dayPos" select="$dayPos"/>
987                     </xsl:apply-templates>
988                   </ul>
989                 </td>
990               </xsl:otherwise>
991             </xsl:choose>
992           </xsl:for-each>
993         </tr>
994       </xsl:for-each>
995     </table>
996   </xsl:template>
997
998   <!--== EVENTS IN THE CALENDAR GRID ==-->
999   <xsl:template match="event" mode="calendarLayout">
1000     <xsl:param name="dayPos"/>
1001     <xsl:variable name="subscriptionId" select="subscription/id"/>
1002     <xsl:variable name="calPath" select="calendar/encodedPath"/>
1003     <xsl:variable name="guid" select="guid"/>
1004     <xsl:variable name="recurrenceId" select="recurrenceId"/>
1005     <xsl:variable name="eventClass">
1006       <xsl:choose>
1007         <!-- Special styles for the month grid -->
1008         <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when>
1009         <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when>
1010         <!-- Default alternating colors for all standard events -->
1011         <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when>
1012         <xsl:otherwise>eventLinkB</xsl:otherwise>
1013       </xsl:choose>
1014     </xsl:variable>
1015     <!-- Subscription styles.
1016          These are set in the add/modify subscription forms in the admin client;
1017          if present, these override the background-color set by eventClass. The
1018          subscription styles should not be used for cancelled events (tentative is ok). -->
1019     <xsl:variable name="subscriptionClass">
1020       <xsl:if test="status != 'CANCELLED' and
1021                     subscription/subStyle != '' and
1022                     subscription/subStyle != 'default'"><xsl:value-of select="subscription/subStyle"/></xsl:if>
1023     </xsl:variable>
1024     <li>
1025       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}">
1026         <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>
1027         <xsl:choose>
1028           <xsl:when test="start/shortdate != ../shortdate">
1029             (cont)
1030           </xsl:when>
1031           <xsl:when test="start/allday = 'false'">
1032             <xsl:value-of select="start/time"/>:
1033           </xsl:when>
1034           <xsl:otherwise>
1035             all day:
1036           </xsl:otherwise>
1037         </xsl:choose>
1038         <xsl:value-of select="summary"/>
1039         <xsl:variable name="eventTipClass">
1040           <xsl:choose>
1041             <xsl:when test="$dayPos &gt; 5">eventTipReverse</xsl:when>
1042             <xsl:otherwise>eventTip</xsl:otherwise>
1043           </xsl:choose>
1044         </xsl:variable>
1045         <span class="{$eventTipClass}">
1046           <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if>
1047           <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if>
1048           <strong><xsl:value-of select="summary"/></strong><br/>
1049           Time:
1050           <xsl:choose>
1051             <xsl:when test="start/allday = 'true'">
1052               all day
1053             </xsl:when>
1054             <xsl:otherwise>
1055               <xsl:if test="start/shortdate != ../shortdate">
1056                 <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/>
1057                 <xsl:text> </xsl:text>
1058               </xsl:if>
1059               <xsl:value-of select="start/time"/>
1060               <xsl:if test="(start/time != end/time) or (start/shortdate != end/shortdate)">
1061                 -
1062                 <xsl:if test="end/shortdate != ../shortdate">
1063                   <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/>
1064                   <xsl:text> </xsl:text>
1065                 </xsl:if>
1066                 <xsl:value-of select="end/time"/>
1067               </xsl:if>
1068             </xsl:otherwise>
1069           </xsl:choose><br/>
1070           <xsl:if test="location/address">
1071             Location: <xsl:value-of select="location/address"/><br/>
1072           </xsl:if>
1073           Calendar: <xsl:value-of select="calendar/name"/>
1074         </span>
1075       </a>
1076     </li>
1077   </xsl:template>
1078
1079   <!--==== YEAR VIEW ====-->
1080   <xsl:template name="yearView">
1081     <table id="yearCalendarTable" border="0" cellpadding="0" cellspacing="0">
1082       <tr>
1083         <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &lt;= 3]"/>
1084       </tr>
1085       <tr>
1086         <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 3) and (position() &lt;= 6)]"/>
1087       </tr>
1088       <tr>
1089         <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 6) and (position() &lt;= 9)]"/>
1090       </tr>
1091       <tr>
1092         <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &gt; 9]"/>
1093       </tr>
1094     </table>
1095   </xsl:template>
1096
1097   <!-- year view month tables -->
1098   <xsl:template match="month">
1099     <td>
1100       <table class="yearViewMonthTable" border="0" cellpadding="0" cellspacing="0">
1101         <tr>
1102           <td colspan="8" class="monthName">
1103             <xsl:variable name="firstDayOfMonth" select="week/day/date"/>
1104             <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$firstDayOfMonth}">
1105               <xsl:value-of select="longname"/>
1106             </a>
1107           </td>
1108         </tr>
1109         <tr>
1110           <th>&#160;</th>
1111           <xsl:for-each select="/bedework/shortdaynames/val">
1112             <th><xsl:value-of select="."/></th>
1113           </xsl:for-each>
1114         </tr>
1115         <xsl:for-each select="week">
1116           <tr>
1117             <td class="weekCell">
1118               <xsl:variable name="firstDayOfWeek" select="day/date"/>
1119               <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$firstDayOfWeek}">
1120                 <xsl:value-of select="value"/>
1121               </a>
1122             </td>
1123             <xsl:for-each select="day">
1124               <xsl:choose>
1125                 <xsl:when test="filler='true'">
1126                   <td class="filler">&#160;</td>
1127                 </xsl:when>
1128                 <xsl:otherwise>
1129                   <td>
1130                     <xsl:if test="/bedework/now/date = date">
1131                       <xsl:attribute name="class">today</xsl:attribute>
1132                     </xsl:if>
1133                     <xsl:variable name="dayDate" select="date"/>
1134                     <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}">
1135                       <xsl:attribute name="class">today</xsl:attribute>
1136                       <xsl:value-of select="value"/>
1137                     </a>
1138                   </td>
1139                 </xsl:otherwise>
1140               </xsl:choose>
1141             </xsl:for-each>
1142           </tr>
1143         </xsl:for-each>
1144       </table>
1145     </td>
1146   </xsl:template>
1147
1148   <!--==== CALENDARS PAGE ====-->
1149   <xsl:template match="calendars">
1150     <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/>
1151     <table id="calPageTable" border="0" cellpadding="0" cellspacing="0">
1152       <tr>
1153         <th colspan="2">
1154           All Calendars
1155         </th>
1156       </tr>
1157       <tr>
1158         <td colspan="2" class="infoCell">
1159           Select a calendar from the list below to see only that calendar's events.
1160           <div dojoType="FloatingPane" id="bwCalendarExportWidget"
1161                title="Export Calendar as iCal" toggle="fade" toggleDuration="150"
1162                windowState="minimized" hasShadow="true" displayMinimizeAction="true">
1163             <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post">
1164               <input type="hidden" name="calPath" value=""/>
1165               <input type="hidden" name="nocache" value="no"/>
1166               <input type="hidden" name="skinName" value="ical"/>
1167               <input type="hidden" name="contentType" value="text/calendar"/>
1168               <input type="hidden" name="contentName" value="calendar.ics"/>
1169
1170
1171               <p>
1172                 <strong>Calendar to export:</strong>
1173                 <span id="bwCalendarExportWidgetCalName"></span>
1174               </p>
1175               <strong>Event date limits:</strong><br/>
1176               <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/> today forward
1177               <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/> all dates
1178               <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range
1179               <div id="exportDateRange" class="invisible">
1180                 to be implemented
1181               <!--  <strong>Start:</strong>
1182                 <div class="dateFields">
1183                   <xsl:copy-of select="/bedework/formElements/form/start/month/*"/>
1184                   <xsl:copy-of select="/bedework/formElements/form/start/day/*"/>
1185                   <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/>
1186                 </div>
1187                 <script language="JavaScript" type="text/javascript">
1188                 <xsl:comment>
1189                   startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback',false,'<xsl:value-of select="$resourcesRoot"/>/resources/');
1190                 </xsl:comment>
1191                 </script>
1192                 &#160;&#160;
1193                 <strong>End:</strong>
1194                 <div class="dateFields">
1195                   <xsl:copy-of select="/bedework/formElements/form/end/month/*"/>
1196                   <xsl:copy-of select="/bedework/formElements/form/end/day/*"/>
1197                    <xsl:copy-of select="/bedework/formElements/form/end/yearText/*"/>
1198                 </div>
1199                 <script language="JavaScript" type="text/javascript">
1200                 <xsl:comment>
1201                   endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback',false,'<xsl:value-of select="$resourcesRoot"/>/resources/');
1202                 </xsl:comment>
1203                 </script>
1204                 -->
1205               </div>
1206               <p><input type="submit" value="export" class="bwWidgetSubmit" onclick="hideWidget('bwCalendarExportWidget')"/></p>
1207             </form>
1208           </div>
1209         </td>
1210       </tr>
1211       <tr>
1212         <td class="leftCell">
1213           <ul class="calendarTree">
1214             <xsl:apply-templates select="calendar/calendar[position() &lt;= ceiling($topLevelCalCount div 2)]" mode="calTree"/>
1215           </ul>
1216         </td>
1217         <td>
1218           <ul class="calendarTree">
1219             <xsl:apply-templates select="calendar/calendar[position() &gt; ceiling($topLevelCalCount div 2)]" mode="calTree"/>
1220           </ul>
1221         </td>
1222       </tr>
1223     </table>
1224   </xsl:template>
1225
1226   <xsl:template match="calendar" mode="calTree">
1227     <xsl:variable name="itemClass">
1228       <xsl:choose>
1229         <xsl:when test="calendarCollection='false'">folder</xsl:when>
1230         <xsl:otherwise>calendar</xsl:otherwise>
1231       </xsl:choose>
1232     </xsl:variable>
1233     <xsl:variable name="url" select="encodedPath"/>
1234     <li class="{$itemClass}">
1235       <a href="{$setSelection}&amp;calUrl={$url}"><xsl:value-of select="name"/></a>
1236       <xsl:if test="calendarCollection='true'">
1237         <xsl:variable name="name" select="name"/>
1238         <xsl:variable name="calPath" select="encodedPath"/>
1239         <span class="exportCalLink">
1240           <!--<a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">-->
1241           <a href="javascript:launchExportWidget('exportCalendarForm','{$name}','{$calPath}')" id="{$calPath}">
1242             <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/>
1243           </a>
1244           <!--</a>-->
1245           <!--export
1246           <a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=active&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">current</a> |
1247           <a href="{$export}&amp;calPath={$calPath}&amp;dateLimits=none&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$name}.ics" title="export calendar as iCal (excluding past events)">all</a>-->
1248         </span>
1249       </xsl:if>
1250       <xsl:if test="calendar">
1251         <ul>
1252           <xsl:apply-templates select="calendar" mode="calTree"/>
1253         </ul>
1254       </xsl:if>
1255     </li>
1256   </xsl:template>
1257
1258   <!--==== SEARCH RESULT ====-->
1259   <xsl:template name="searchResult">
1260     <h2 class="bwStatusConfirmed">
1261       <div id="searchFilter">
1262         <form name="searchForm" method="post" action="{$search}">
1263           Search:
1264           <input type="text" name="query" size="15">
1265             <xsl:attribute name="value"><xsl:value-of select="/bedework/searchResults/query"/></xsl:attribute>
1266           </input>
1267           <input type="submit" name="submit" value="go"/>
1268           Limit:
1269           <xsl:choose>
1270             <xsl:when test="/bedework/searchResults/searchLimits = 'beforeToday'">
1271               <input type="radio" name="searchLimits" value="fromToday"/>today forward
1272               <input type="radio" name="searchLimits" value="beforeToday" checked="checked"/>past dates
1273               <input type="radio" name="searchLimits" value="none"/>all dates
1274             </xsl:when>
1275             <xsl:when test="/bedework/searchResults/searchLimits = 'none'">
1276               <input type="radio" name="searchLimits" value="fromToday"/>today forward
1277               <input type="radio" name="searchLimits" value="beforeToday"/>past dates
1278               <input type="radio" name="searchLimits" value="none" checked="checked"/>all dates
1279             </xsl:when>
1280             <xsl:otherwise>
1281               <input type="radio" name="searchLimits" value="fromToday" checked="checked"/>today forward
1282               <input type="radio" name="searchLimits" value="beforeToday"/>past dates
1283               <input type="radio" name="searchLimits" value="none"/>all dates
1284             </xsl:otherwise>
1285           </xsl:choose>
1286         </form>
1287       </div>
1288       Search Result
1289     </h2>
1290     <table id="searchTable" cellpadding="0" cellspacing="0">
1291       <tr>
1292         <th colspan="5">
1293           <xsl:if test="/bedework/searchResults/numPages &gt; 1">
1294             <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/>
1295             <div id="searchPageForm">
1296               page:
1297               <xsl:if test="/bedework/searchResults/curPage != 1">
1298                 <xsl:variable name="prevPage" select="number($curPage) - 1"/>
1299                 &lt;<a href="{$search-next}&amp;pageNum={$prevPage}">prev</a>
1300               </xsl:if>
1301               <xsl:text> </xsl:text>
1302
1303               <xsl:call-template name="searchResultPageNav">
1304                 <xsl:with-param name="page">
1305                   <xsl:choose>
1306                     <xsl:when test="number($curPage) - 10 &lt; 1">1</xsl:when>
1307                     <xsl:otherwise><xsl:value-of select="number($curPage) - 6"/></xsl:otherwise>
1308                   </xsl:choose>
1309                 </xsl:with-param>
1310               </xsl:call-template>
1311
1312               <xsl:text> </xsl:text>
1313               <xsl:choose>
1314                 <xsl:when test="$curPage != /bedework/searchResults/numPages">
1315                   <xsl:variable name="nextPage" select="number($curPage) + 1"/>
1316                   <a href="{$search-next}&amp;pageNum={$nextPage}">next</a>&gt;
1317                 </xsl:when>
1318                 <xsl:otherwise>
1319                   <span class="hidden">next&gt;</span><!-- occupy the space to keep the navigation from moving around -->
1320                 </xsl:otherwise>
1321               </xsl:choose>
1322             </div>
1323           </xsl:if>
1324           <xsl:value-of select="/bedework/searchResults/resultSize"/>
1325           result<xsl:if test="/bedework/searchResults/resultSize != 1">s</xsl:if> returned
1326           for <em><xsl:value-of select="/bedework/searchResults/query"/></em>
1327         </th>
1328       </tr>
1329       <xsl:if test="/bedework/searchResults/searchResult">
1330         <tr class="fieldNames">
1331           <td>
1332             relevance
1333           </td>
1334           <td>
1335             summary
1336           </td>
1337           <td>
1338             date &amp; time
1339           </td>
1340           <td>
1341             calendar
1342           </td>
1343           <td>
1344             location
1345           </td>
1346         </tr>
1347       </xsl:if>
1348       <xsl:for-each select="/bedework/searchResults/searchResult">
1349         <xsl:variable name="subscriptionId" select="event/subscription/id"/>
1350         <xsl:variable name="calPath" select="event/calendar/encodedPath"/>
1351         <xsl:variable name="guid" select="event/guid"/>
1352         <xsl:variable name="recurrenceId" select="event/recurrenceId"/>
1353         <tr>
1354           <td class="relevance">
1355             <xsl:value-of select="ceiling(number(score)*100)"/>%
1356             <img src="{$resourcesRoot}/images/spacer.gif" height="4" class="searchRelevance">
1357               <xsl:attribute name="width"><xsl:value-of select="ceiling((number(score)*100) div 1.5)"/></xsl:attribute>
1358             </img>
1359           </td>
1360           <td>
1361             <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">
1362               <xsl:value-of select="event/summary"/>
1363             </a>
1364           </td>
1365           <td>
1366             <xsl:value-of select="event/start/longdate"/>
1367             <xsl:text> </xsl:text>
1368             <xsl:value-of select="event/start/time"/>
1369             <xsl:choose>
1370               <xsl:when test="event/start/longdate != event/end/longdate">
1371                 - <xsl:value-of select="event/start/longdate"/>
1372                 <xsl:text> </xsl:text>
1373                 <xsl:value-of select="event/end/time"/>
1374               </xsl:when>
1375               <xsl:when test="event/start/time != event/end/time">
1376                 - <xsl:value-of select="event/end/time"/>
1377               </xsl:when>
1378             </xsl:choose>
1379           </td>
1380           <td>
1381             <xsl:variable name="calUrl" select="event/calendar/encodedPath"/>
1382             <a href="{$setSelection}&amp;calUrl={$calUrl}">
1383               <xsl:value-of select="event/calendar/name"/>
1384             </a>
1385           </td>
1386           <td>
1387             <xsl:value-of select="event/location/address"/>
1388           </td>
1389         </tr>
1390       </xsl:for-each>
1391     </table>
1392   </xsl:template>
1393
1394   <xsl:template name="searchResultPageNav">
1395     <xsl:param name="page">1</xsl:param>
1396     <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/>
1397     <xsl:variable name="numPages" select="/bedework/searchResults/numPages"/>
1398     <xsl:variable name="endPage">
1399       <xsl:choose>
1400         <xsl:when test="number($curPage) + 6 &gt; number($numPages)"><xsl:value-of select="$numPages"/></xsl:when>
1401         <xsl:otherwise><xsl:value-of select="number($curPage) + 6"/></xsl:otherwise>
1402       </xsl:choose>
1403     </xsl:variable>
1404     <xsl:choose>
1405       <xsl:when test="$page = $curPage">
1406         <xsl:value-of select="$page"/>
1407       </xsl:when>
1408       <xsl:otherwise>
1409         <a href="{$search-next}&amp;pageNum={$page}">
1410           <xsl:value-of select="$page"/>
1411         </a>
1412       </xsl:otherwise>
1413     </xsl:choose>
1414     <xsl:text> </xsl:text>
1415     <xsl:if test="$page &lt; $endPage">
1416        <xsl:call-template name="searchResultPageNav">
1417          <xsl:with-param name="page" select="number($page)+1"/>
1418       </xsl:call-template>
1419     </xsl:if>
1420   </xsl:template>
1421
1422   <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
1423   <xsl:template name="stats">
1424     <div id="stats">
1425       <h2>System Statistics</h2>
1426
1427       <p>
1428         Stats collection:
1429       </p>
1430       <ul>
1431         <li>
1432           <a href="{$stats}&amp;enable=yes">enable</a> |
1433           <a href="{$stats}&amp;disable=yes">disable</a>
1434         </li>
1435         <li><a href="{$stats}&amp;fetch=yes">fetch statistics</a></li>
1436         <li><a href="{$stats}&amp;dump=yes">dump stats to log</a></li>
1437       </ul>
1438       <table id="statsTable" cellpadding="0">
1439         <xsl:for-each select="/bedework/sysStats/*">
1440           <xsl:choose>
1441             <xsl:when test="name(.) = 'header'">
1442               <tr>
1443                 <th colspan="2">
1444                   <xsl:value-of select="."/>
1445                 </th>
1446               </tr>
1447             </xsl:when>
1448             <xsl:otherwise>
1449               <tr>
1450                 <td class="label">
1451                   <xsl:value-of select="label"/>
1452                 </td>
1453                 <td class="value">
1454                   <xsl:value-of select="value"/>
1455                 </td>
1456               </tr>
1457             </xsl:otherwise>
1458           </xsl:choose>
1459         </xsl:for-each>
1460       </table>
1461     </div>
1462   </xsl:template>
1463
1464   <!--==== UTILITY TEMPLATES ====-->
1465
1466   <!-- search and replace template taken from
1467        http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->
1468   <xsl:template name="replace">
1469     <xsl:param name="string" select="''"/>
1470     <xsl:param name="pattern" select="''"/>
1471     <xsl:param name="replacement" select="''"/>
1472     <xsl:choose>
1473       <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
1474         <xsl:value-of select="substring-before($string, $pattern)"/>
1475         <xsl:copy-of select="$replacement"/>
1476         <xsl:call-template name="replace">
1477           <xsl:with-param name="string" select="substring-after($string, $pattern)"/>
1478           <xsl:with-param name="pattern" select="$pattern"/>
1479           <xsl:with-param name="replacement" select="$replacement"/>
1480         </xsl:call-template>
1481       </xsl:when>
1482       <xsl:otherwise>
1483         <xsl:value-of select="$string"/>
1484       </xsl:otherwise>
1485     </xsl:choose>
1486   </xsl:template>
1487
1488   <!--==== FOOTER ====-->
1489
1490   <xsl:template name="footer">
1491     <div id="footer">
1492       Demonstration calendar; place footer information here.
1493     </div>
1494     <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0">
1495       <tr>
1496         <td class="leftCell">
1497           Based on the <a href="http://www.bedework.org/">Bedework Website</a> |
1498           <a href="?noxslt=yes">show XML</a> |
1499           <a href="?refreshXslt=yes">refresh XSLT</a>
1500         </td>
1501         <td class="rightCell">
1502           <form name="styleSelectForm" method="post" action="{$setup}">
1503             <select name="setappvar" onChange="submit()">
1504               <option>example styles:</option>
1505               <option value="style(green)">green</option>
1506               <option value="style(red)">red</option>
1507               <option value="style(blue)">blue</option>
1508             </select>
1509           </form>
1510           <form name="skinSelectForm" method="post" action="{$setup}">
1511             <input type="hidden" name="setappvar" value="summaryMode(details)"/>
1512             <select name="skinPicker" onchange="window.location = this.value">
1513               <option>example skins:</option>
1514               <option value="{$setViewPeriod}&amp;viewType=weekView&amp;skinName=rss&amp;setappvar=summaryMode(details)">rss feed</option>
1515               <option value="{$setViewPeriod}&amp;viewType=todayView&amp;skinName=jsToday&amp;contentType=text/javascript&amp;contentName=bedework.js">javascript feed</option>
1516               <option value="{$setViewPeriod}&amp;viewType=todayView&amp;skinName=videocal">video feed</option>
1517               <option value="{$setup}&amp;skinName=default">reset to calendar default</option>
1518             </select>
1519           </form>
1520           <form name="skinSelectForm" method="post" action="">
1521             <select name="sitePicker" onchange="window.location = this.value">
1522               <option>production examples:</option>
1523               <option value="http://events.dal.ca/">Dalhousie</option>
1524               <option value="http://events.rpi.edu">Rensselaer</option>
1525               <option value="http://myuw.washington.edu/cal/">Washington</option>
1526             </select>
1527           </form>
1528         </td>
1529       </tr>
1530     </table>
1531   </xsl:template>
1532 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.