<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="time">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="p"><p><xsl:apply-templates/></p></xsl:template>

<xsl:template match="_split">
<div><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute><table class="colsplit"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute><xsl:attribute name="border"><xsl:value-of select="@borderWidth"/></xsl:attribute><xsl:attribute name="cellpadding"><xsl:value-of select="@padding"/></xsl:attribute><xsl:attribute name="cellspacing"><xsl:value-of select="@spacing"/></xsl:attribute><tr><xsl:apply-templates select="column"/></tr></table></div>
</xsl:template>

<xsl:template match="split">
<div class="split">
  <xsl:apply-templates select="column"/>
</div>
<div class="splitend">&lt;p&gt;</div>
</xsl:template>

<xsl:template match="column">
<div class="column">
  <div class="box">
    <xsl:apply-templates/>
  </div>
</div>
</xsl:template>

<xsl:template match="boxout">
  <div class="boxout">
    <h3><xsl:value-of select="title/text"/>&amp;nbsp;</h3>
    <div class="contents">
    <xsl:apply-templates/>
    </div>
  </div>
</xsl:template>

<xsl:template match="linkedSnippets">
<ul>
<xsl:for-each select="snippet">
  <li><cite><a><xsl:attribute name="href">#<xsl:value-of select="@uid"/></xsl:attribute><xsl:value-of select="title/text"/></a></cite></li>
</xsl:for-each>
</ul>
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="snippet">
<a><xsl:attribute name="name"><xsl:value-of select="@uid"/></xsl:attribute></a>
&lt;br&gt;<hr/>
<p>
<xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="displayDevice">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="AwfActiveDevice"><xsl:apply-templates /></xsl:template>

<xsl:template match="AwfPreviewDevice"><xsl:apply-templates /></xsl:template>

<xsl:template match="AwfFactoryDevice"><xsl:apply-templates /></xsl:template>

<xsl:template match="AwfModuleFactory">
&lt;%= $self->produceModule; %&gt;
</xsl:template>

<xsl:template match="AwfModulePagePreview">
&lt;%= $self->producePreviewPageLink; %&gt;
</xsl:template>

<xsl:template match="AwfApplicationDevice"> <xsl:apply-templates />
</xsl:template>

<xsl:template match="AwfEditorDevice"> <xsl:apply-templates />
</xsl:template>

<xsl:template match="AwfActiveTime" >
<text><lang type="en">The time is</lang>
<lang type="fr">Le temps est:</lang>
<lang type="es">La hora es:</lang>
<lang type="de">Die Zeit ist:</lang>
<lang type="ru">Die Zeit ist:</lang>
</text>
<pre>
&lt;%= scalar(localtime()); %&gt;
</pre>
</xsl:template>

<xsl:template match="AwfModuleSelector" >
&lt;br&gt;
&lt;%
if ( $self->hasModuleNameDomainName ) {
%>
Within the <b>&lt;%= $self->domainName; %></b> domain, the <b>&lt;%= $self->moduleName; %></b> module is selected for editing.
&lt;br&gt;&lt;br&gt;
&lt;%
}
%>
<form method="post">
    <xsl:attribute name="action">&lt;%= $self->makeTargetUrl("ModuleMap"); %></xsl:attribute>
    Please chose a module from the list and press submit:&lt;br&gt;&lt;br&gt;
    <select name='domainModule'>
        <option value='...select module'>...select module</option>
&lt;%
foreach my $domainModuleName ($self->listUserEditableDomainModuleNames) {
%>
        <option value='&lt;%= "$domainModuleName" %&gt;'>&lt;%= "$domainModuleName" %&gt;</option>
&lt;%
}
%></select>&lt;br&gt;&lt;br&gt;
    <xsl:call-template name="multiLangSubmit" />
    <xsl:call-template name="multiLangReset" />
</form>&lt;br&gt;
</xsl:template>

<xsl:template match="AwfModuleEditElement" >
&lt;%= $self->produceEditorDevice; %&gt;
</xsl:template>

<xsl:template match="AwfModuleDomainInfo" >
&lt;br&gt;
The current domain is: &lt;%= $self->domainName || "No domain selected"; %>.
&lt;br&gt;
The module name is: &lt;%= $self->moduleName || "No module selected"; %>.
&lt;br&gt;
The working language is: &lt;%= $self->lang || "No language selected"; %>.
&lt;br&gt;
The current working element path is: &lt;%= $self->currentWorkingElementPath  || "Nothing selected within module"; %>.
&lt;br&gt;
The current working element title is: &lt;%= (defined $self->currentWorkingElement ? ($self->currentWorkingElement->getTitle || "No title set on this element") : "No working node found"); %>.
&lt;br&gt;
</xsl:template>

<xsl:template match="AwfModuleRemoveElement" >
&lt;%= $self->produceRemoveElementDevice; %&gt;
</xsl:template>

<xsl:template match="AwfModuleBuildElement" >
&lt;br&gt;
&lt;br&gt;

&lt;%
if ( $self->hasModuleNameDomainName ) {
%>
<form>
To append to the current element, chose from the list and press submit:&lt;br&gt;
<select name='AwfElementTypeToAdd'>
    <option value='...select element'>...select element</option>
&lt;%
    foreach my $type ($self->listAddableTypes) {
%>
    <option value='&lt;%= $type %&gt;'>&lt;%= $type %&gt;</option>
&lt;%
    }
%>

</select>&lt;br&gt;&lt;br&gt;
<xsl:call-template name="multiLangSubmit" />
<xsl:call-template name="multiLangReset" />
</form>
&lt;%
} else {
%>
<xsl:call-template name="AwfMsgNoModuleSelected" />
&lt;%
}
%>
&lt;br&gt;&lt;br&gt;&lt;br&gt;
</xsl:template>

<xsl:template match="AwfModuleMap" >
&lt;%= $self->produceModuleMapDevice; %&gt;
</xsl:template>

<xsl:template match="AwfModuleContextSummary" >
&lt;%= $self->produceModuleContextSummaryDevice; %&gt;
</xsl:template>

<xsl:template match="AwfWritingLangSelector">
&lt;br&gt;<i><text>
<lang type="en">Currently writing: </lang>
<lang type="fr">Currently writing: </lang>
<lang type="es">Currently writing: </lang>
<lang type="de">Currently writing: </lang>
<lang type="ru">Currently writing: </lang>
</text>&lt;%= $self->produceCurrentWritingLang; %&gt;.
<text>
<lang type="en">Write in</lang>
<lang type="fr">Write in</lang>
<lang type="es">Write in</lang>
<lang type="de">Write in</lang>
<lang type="ru">Write in</lang>
</text>&lt;%= $self->produceChangeCurrentWritingLangLinks; %&gt;.
</i>&lt;br&gt;
</xsl:template>

<xsl:template match="AwfModuleBudgeElements" >
&lt;%= $self->produceModuleBudgeElementsDevice; %&gt;
</xsl:template>

<xsl:template name="multiLangSubmit" >
<input type="submit" ><xsl:attribute name="value"><text>
<lang type="en">Submit</lang>
<lang type="fr">Submit</lang>
<lang type="es">Submit</lang>
<lang type="de">Submit</lang>
<lang type="ru">Submit</lang>
</text></xsl:attribute></input>
</xsl:template>

<xsl:template name="multiLangReset" >
<input type="reset" ><xsl:attribute name="value"><text>
<lang type="en">Reset</lang>
<lang type="fr">Reset</lang>
<lang type="es">Reset</lang>
<lang type="de">Reset</lang>
<lang type="ru">Reset</lang>
</text></xsl:attribute></input>
</xsl:template>

<xsl:template name="AwfMsgNoModuleSelected" >
<b>There is no selected module.</b><i> Why not select one from the list in Module Selector element and come back?</i>&lt;br&gt;&lt;br&gt;
</xsl:template>

<xsl:template name="AwfReadingLangSelector" >
&lt;br&gt;<i>
<text><lang type="en">
Currently reading: en</lang><lang type="fr">
Currently reading: fr</lang><lang type="es">
Currently reading: es</lang><lang type="de">
Currently reading: de</lang><lang type="ru">
Currently reading: ru</lang></text>
&lt;%= $self->produceCurrentReadingLang; %&gt;.
&lt;br&gt;<text><lang type="en">
Read in</lang><lang type="fr">
Read in</lang><lang type="es">
Read in</lang><lang type="de">
Read in</lang><lang type="ru">
Read in</lang></text>
&lt;%= $self->produceChangeCurrentReadingLangLinks; %&gt;.
</i>&lt;br&gt;
</xsl:template>

<xsl:template match="AwfDomainModule" >
&lt;br&gt;
The domain is &lt;%= $self->domainName; %>&lt;br&gt;
The module is &lt;%= $self->moduleName; %>&lt;br&gt;
</xsl:template>

<xsl:template match="xhtml">
    <xsl:apply-templates/>
  </xsl:template>

<xsl:template match="AwfDocumentManagerDevice"><xsl:apply-templates/></xsl:template>

<xsl:template match="UploadDocument">
&lt;%= $self->produceUploadDocumentElement; %&gt;
<xsl:apply-templates/></xsl:template>

<xsl:template match="RemoveDocument">
&lt;%= $self->produceRemoveDocumentElement; %&gt;
<xsl:apply-templates/></xsl:template>

<xsl:template match="website">
    Shouldn't realy have a website element here!
    <xsl:apply-templates/>
</xsl:template>

<xsl:template match="module">
    Shouldn't realy have a module element here!
    <xsl:apply-templates/>
</xsl:template>


<xsl:template match="section">
    Shouldn't realy have a section element here!
    <xsl:apply-templates/>
</xsl:template>


<xsl:template match="page">
    <xsl:apply-templates/>
</xsl:template>


<xsl:template match="group">
    <hr align="left" width="70%"/>
    <xsl:call-template name="linkTop"/>
    <h3><xsl:value-of select="title/text"/></h3>
    <xsl:apply-templates/>
</xsl:template>


<xsl:template match="pibbChannel">
<div style="height:400px;" id="__pibb_thread"><h3>Loading....</h3></div><script>
<xsl:attribute name="src">https://pibb.com/widget/thread/<xsl:value-of select="@pibbCode"/></xsl:attribute>
</script>
&lt;br&gt;
</xsl:template>


<xsl:template match="browserTitle">
    <!-- awf:browserTitle -->
    <title>
      <xsl:value-of select="moduleTitle"/> - <xsl:value-of select="pageTitle"/>
    </title>
</xsl:template>


<xsl:template match="description">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="question">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="abstract">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="link">
    <a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute><xsl:apply-templates/></a>
</xsl:template>


<xsl:template match="caption">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="newsItem">
  <p><b><xsl:apply-templates select="time"/>
    - <xsl:apply-templates select="headline"/></b>&lt;br&gt;
  <xsl:value-of select="text"/></p>
</xsl:template>


<xsl:template match="headline">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="byline">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="document">
&lt;br&gt;
<i>by </i><xsl:value-of select="@author"/>&lt;br&gt;
<xsl:value-of select="@date"/>&lt;br&gt;
<xsl:value-of select="@title"/>&lt;br&gt;
<xsl:value-of select="@publisher"/>&lt;br&gt;
<i><xsl:value-of select="@kB"/> kB</i>
<xsl:for-each select="link">
<a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute><img><xsl:attribute name="src"><xsl:value-of select="image/@url"/></xsl:attribute><xsl:attribute name="alt">Download document here!</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></img></a>
</xsl:for-each>
&lt;br&gt;
</xsl:template>

<xsl:template match="inputTextLine">
  <label><xsl:value-of select="title/text"/><xsl:attribute name="for">id_<xsl:value-of select="@name"/></xsl:attribute></label>
  <input type="text" value="" size="40"><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute><xsl:attribute name="id">id_<xsl:value-of select="@name"/></xsl:attribute></input>
</xsl:template>

<xsl:template match="inputTextArea">
  <label><xsl:value-of select="title/text"/><xsl:attribute name="for">id_<xsl:value-of select="@name"/></xsl:attribute></label>
  &lt;textarea rows="6" cols="40" name="<xsl:value-of select="@name"/>" id="id_<xsl:value-of select="@name"/>"&gt;&lt;/textarea&gt;
</xsl:template>

<xsl:template match="inputCheckBox">
  <label><xsl:value-of select="title/text"/><xsl:attribute name="for">id_<xsl:value-of select="@name"/></xsl:attribute></label>
  <xsl:variable name="commonTitle" select="@name"/>
  <xsl:for-each select="inputOption">
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<input type="checkbox">
      <xsl:attribute name="name"><xsl:value-of select="$commonTitle"/> - <xsl:value-of select="@name"/></xsl:attribute><xsl:value-of select="title/text"/>
    </input>
    &lt;br&gt;
  </xsl:for-each>
  &lt;br&gt;
</xsl:template>

<xsl:template match="inputDropList">
  <label><xsl:value-of select="title/text"/><xsl:attribute name="for">id_<xsl:value-of select="@name"/></xsl:attribute></label>
  <select>
    <xsl:attribute name="id">id_<xsl:value-of select="@name"/></xsl:attribute>
    <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
    <option>...select option</option>
    <xsl:for-each select="inputOption">
      <option><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute><xsl:value-of select="title/text"/></option>
    </xsl:for-each>
  </select>
</xsl:template>

<xsl:template match="form">
<form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl">
  
  <input type="hidden" name="title"><xsl:attribute name="value"><xsl:value-of select="title/text"/></xsl:attribute></input>
  <input type="hidden" name="recipient"><xsl:attribute name="value"><xsl:value-of select="@recipient"/></xsl:attribute></input>
  <input type="hidden" name="subject"><xsl:attribute name="value"><xsl:value-of select="@subject"/></xsl:attribute></input>
  <input type="hidden" name="redirect"><xsl:attribute name="value"><xsl:value-of select="@redirect"/></xsl:attribute></input>
  <input type="hidden" name="bgcolor"><xsl:attribute name="value"><xsl:value-of select="@bgcolor"/></xsl:attribute></input>
  <input type="hidden" name="background"><xsl:attribute name="value"><xsl:value-of select="@background"/></xsl:attribute></input>
  <input type="hidden" name="text_color"><xsl:attribute name="value"><xsl:value-of select="@link_color"/></xsl:attribute></input>
  <input type="hidden" name="vlink_color"><xsl:attribute name="value"><xsl:value-of select="@vlink_color"/></xsl:attribute></input>
  <input type="hidden" name="alink_color"><xsl:attribute name="value"><xsl:value-of select="@title"/></xsl:attribute></input>
  <input type="hidden" name="return_link_url"><xsl:attribute name="value"><xsl:value-of select="@return_link_url"/></xsl:attribute></input>
  <input type="hidden" name="return_link_title"><xsl:attribute name="value"><xsl:value-of select="@return_link_title"/></xsl:attribute></input>
  <input type="hidden" name="sort"><xsl:attribute name="value"><xsl:value-of select="@sort"/></xsl:attribute></input>
  <input type="hidden" name="required"><xsl:attribute name="value"><xsl:value-of select="@required"/></xsl:attribute></input>
  <input type="hidden" name="missing_fields_redirect"><xsl:attribute name="value"><xsl:value-of select="@missing_fields_redirect"/></xsl:attribute></input>
  <input type="hidden" name="print_blank_fields"><xsl:attribute name="value"><xsl:value-of select="@print_blank_fields"/></xsl:attribute></input>
  <p>
  <xsl:apply-templates/>
  </p><p>
  <input type="submit" value="Send Message"/>
  </p><p>
  <xsl:value-of select="comment/text"/>
  </p>
</form>
</xsl:template>

<xsl:template match="author">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="filename">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="status">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="email">
  <a>
    <xsl:attribute name="href">mailto:<xsl:value-of select="@url"/></xsl:attribute>
    <xsl:apply-templates/>
  </a>
</xsl:template>


<xsl:template match="filename">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="status">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="image">
<img border="0"><xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="caption"/></xsl:attribute></img>
</xsl:template>

<xsl:template match="ccimage">
<div class="ccimage">
  &lt;img border="0" alt="" src="<xsl:value-of select="@src"/>"&gt;
  <cite><!--<img src="http://l.yimg.com/g/images/home_cc.png" height="10" width="10" border="0" alt=""/> --><a><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>By <xsl:value-of select="@by"/></a></cite>
</div>
</xsl:template>

<xsl:template match="serviceDesk">
<div class="serviceDesk">
  <p>Welcome to the <i><xsl:value-of select="@clubName"/></i> service desk! <!-- You can join the club, use the services, support the latest prospectus, submit a new proposal, and review progress.--></p>
  <div class="boxout">
    <h3>Notice Board</h3>
    <div class="contents">
  <xsl:choose>
    <xsl:when test="@prospectusName=''">
    </xsl:when><xsl:otherwise>
      &lt;b&gt;&lt;a href="<xsl:value-of select="@prospectusLocation"/>"&gt;Support latest prospectus!&lt;/a&gt;&lt;/b&gt;
    </xsl:otherwise>
  </xsl:choose>
  <xsl:choose>
    <xsl:when test="purpose=''">
    </xsl:when><xsl:otherwise>
      <h4>Purpose</h4>
      &lt;p style="font-style: italic"&gt;<xsl:value-of select="purpose"/>
    </xsl:otherwise>
  </xsl:choose>
      <h4>Status</h4>
      <p><a href="http:/foundation/ClubTutorial.html#Cycle"><xsl:value-of select="@operationalStage"/></a></p>
      <h4>Host</h4>
      <p>Hosted by: &lt;a href="<xsl:value-of select="@hostLocation"/>"&gt;<xsl:value-of select="@hostName"/>&lt;/a&gt;</p>
  <xsl:choose>
    <xsl:when test="newsMessage=''">
    </xsl:when><xsl:otherwise>
      <h4>News</h4>
      <p><xsl:value-of select="newsMessage"/></p>
    </xsl:otherwise>
  </xsl:choose>
      <h4>Schedule</h4>
      &lt;p&gt;The &lt;a href="http://appropriatesoftware.net/foundation/ClubSchedule.html"&gt;club schedule&lt;/a&gt; restarts:&lt;/p&gt;
      <ul>
        <li>February</li>
        <li>May</li>
        <li>August</li>
        <li>November</li>
      </ul>

    </div>
  </div>
  <ul>
    <li><b><a href="#Join">Join the Club</a></b></li>
    <li><b><a href="#Services">Use the Services</a></b></li>
    <li><b><a href="#Prospectus">Support the Prospectus</a></b></li>
    <li><b><a href="#Proposals">New Proposals</a></b></li>
    <li><b><a href="#Progress">Review Progress</a></b></li>
  </ul>
  &lt;a name="Join"&gt;&lt;/a&gt;
  <h2>Join the Club</h2>
  &lt;form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl"&gt;
    &lt;input type="hidden" name="recipient" value="asf-webmaster"&gt;
    <xsl:variable name="clubName" select="@clubName"/>
    &lt;input type="hidden" name="subject" value="Join Club: <xsl:value-of select="@clubName"/>"&gt;
    &lt;input type="hidden" name="redirect" value="http://appropriatesoftware.net/foundation/Thanks.html"&gt;
    &lt;p&gt;
    Sign up here.
    <label><i><b>What happens after joining?</b></i>&amp;nbsp; 
    Joining means being involved in an <a href="/foundation/ClubTutorial.html">incremental sharing process</a> with others in your line of work. Members are regularly invited to
    <a href="#Proposals"> submit or comment on new proposals</a>,
    <a href="#Prospectus">support a prospectus of qualified proposals</a>,
    and <a href="#Progress">review the progress of running proposals</a>.
    <xsl:if test="serviceMessage!=''">
    Members are above all welcome to 
    <a href="#Services">use the services and raise issues</a> about them. Issues are resolved immediately, or addressed as part of a new proposal.
    </xsl:if>
    </label>
    <label><i><b>Employed by an institution?</b></i>&amp;nbsp; Just indicate which institution you are with. You will be asked about your decision making process and any committees that are relevant. On request, we will group individual members from the same institution within a single institutional membership.
    </label>
    &lt;label for="membername" &gt;
    Your name:
    &lt;/label&gt;
    &lt;input id="membername" type="text" name="name" value=""&gt;
    &lt;label for="memberemail" &gt;
    Your email address:
    &lt;/label&gt;
    &lt;input id="memberemail" type="text" name="email" value=""&gt;
    &lt;label for="memberinstitution" &gt;
    Your institution (not required):
    &lt;/label&gt;
    &lt;input id="memberinstitution" type="text" name="institution" value=""&gt;
    &lt;p&gt;
    &lt;input type="submit" value="Join Club"&gt;
  &lt;/form&gt;
    &lt;p&gt;
  <label><i><b>New to clubs?</b></i>&amp;nbsp;
  <a href="/foundation/ClubTutorial.html">Discover how clubs work&amp;raquo;</a>
  </label>
  <xsl:choose>
    <xsl:when test="serviceMessage=''">
    </xsl:when>
    <xsl:otherwise>
  &lt;a name="Services"&gt;&lt;/a&gt;
  <h2>Use the Services</h2>
  &lt;p&gt;These services may benefit members of the club:
  &lt;p&gt;<xsl:value-of select="serviceMessage"/>
      <xsl:choose>
        <xsl:when test="issueMessage=''">
  <p><label><b><i>Report any problems!</i></b>&amp;nbsp; Please raise issues via the <a href="http:/foundation/Feedback.html">Feedback</a> page.</label></p>
        </xsl:when><xsl:otherwise>
  &lt;p style="font-style: italic"&gt;<xsl:value-of select="issueMessage"/>&lt;/p&gt;
        </xsl:otherwise>
      </xsl:choose>
    </xsl:otherwise>
  </xsl:choose>
  &lt;a name="Prospectus"&gt;&lt;/a&gt;
  <h2>Support the Prospectus</h2>
  &lt;p&gt;
  <xsl:choose>
    <xsl:when test="@prospectusName=''">
    <i>Sorry, the next prospectus is not yet available.</i>
    </xsl:when><xsl:otherwise>
    Please support the latest prospectus.
  &lt;p&gt;
    <i>Latest prospectus: </i> <span style="font-size: 1.1em">&lt;a href="<xsl:value-of select="@prospectusLocation"/>"&gt;<xsl:value-of select="@prospectusName"/>&lt;/a&gt;</span>
    </xsl:otherwise>
  </xsl:choose>
  &lt;/p&gt;
  &lt;a name="Proposals"&gt;&lt;/a&gt;
  <h2>New Proposals</h2>
  <p>Sharing starts when somebody identifies a common need and proposes a shared solution. You are invited to submit new proposals below.</p>
  <p><label><b><i>Something to share?</i></b>&amp;nbsp; <a href="#NewProposal">Submit a new proposal&amp;raquo;</a></label></p>
  &lt;a name="Summary"&gt;&lt;/a&gt;
  <h3>Summary of New Proposals</h3>
  <xsl:variable name="showInterestLocation" select="'#Summary'"/>
  <xsl:variable name="showInterestName" select="'Back to summary'"/>
  <xsl:choose>
    <xsl:when test="newProposals=''">
    </xsl:when><xsl:otherwise>
      <xsl:for-each select="newProposals/proposal">
      <xsl:if test="title!=''">
    <h4>
	<xsl:value-of select="title"/>
    &lt;a href="#<xsl:value-of select="title"/>"&gt;
    &lt;span style="font-size: 0.7em"&gt;
    See details&amp;raquo;
    &lt;/span&gt;
    &lt;/a&gt;
    </h4>
        &lt;p&gt;
        <xsl:value-of select="purpose"/>
      </xsl:if>
      </xsl:for-each>
    </xsl:otherwise>
  </xsl:choose>
  <xsl:choose>
    <xsl:when test="proposalMessage=''">
      <xsl:choose>
        <xsl:when test="newProposals=''">
  &lt;p&gt;<i>Sorry, there are no new proposals at this time.</i>
        </xsl:when><xsl:otherwise>
  <xsl:apply-templates select="newProposals"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:when><xsl:otherwise>
  &lt;p&gt;<xsl:value-of select="proposalMessage"/>
    </xsl:otherwise>
  </xsl:choose>
  &lt;a name="NewProposal"&gt;&lt;/a&gt;
  <h3>Submit a Proposal</h3>
  <p>Please indicate the purpose of your proposal, or the concern that would be addressed. Please leave contact details so we can discuss and elaborate the proposal with you.</p>
  &lt;form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl"&gt;
    &lt;input type="hidden" name="recipient" value="asf-webmaster"&gt;
    &lt;input type="hidden" name="subject" value="New Proposal: <xsl:value-of select="@clubName"/>"&gt;
    &lt;input type="hidden" name="redirect" value="http://appropriatesoftware.net/foundation/Thanks.html"&gt;
    &lt;p&gt;
    &lt;label for="purpose" &gt;
    Purpose of proposal:
    &lt;/label&gt;
    &lt;input id="purpose" type="text" name="purpose" value=""&gt;
    &lt;label&gt;
    Your email address:
    &lt;/label&gt;
    &lt;input type="text" name="email" value=""&gt;
    &lt;p&gt;
    &lt;input type="submit" value="Submit Proposal"&gt;
    <label><i><b>What happens next?</b></i> Proposals are discussed with the proposer, then evaluated by the club hosts and posted here for comments. Qualified proposals will usually be published in the next prospectus.</label>
    &lt;/p&gt;
  &lt;/form&gt;
  &lt;a name="Progress"&gt;&lt;/a&gt;
  <h2>Review Progress</h2>
  &lt;p&gt;Check the status of running proposals.
  <xsl:choose>
    <xsl:when test="runningProposals">
  &lt;p&gt;<xsl:value-of select="runningProposals"/>
    </xsl:when><xsl:otherwise>
  &lt;p&gt;<i>Sorry, there are no running proposals at this time.</i>
    </xsl:otherwise>
  </xsl:choose>
</div>
</xsl:template>

<xsl:template match="clubServiceDesk">
<div class="boxout">
<h3>Notes</h3>
  <div class="contents">
  <h4>Club Hosts</h4>
  <p>
  <xsl:choose>
    <xsl:when test="@host">
  <xsl:value-of select="@host"/>
    </xsl:when><xsl:otherwise>
    Appropriate Software Foundation<a href="/">&amp;raquo;</a>
    </xsl:otherwise>
  </xsl:choose>
  </p>

<h4>Status of the Club</h4>
  <p>
    &amp;raquo;
    &lt;a href="<xsl:value-of select="@statusLocation"/>"&gt;
    <xsl:value-of select="@status"/>
    &lt;/a&gt;
  </p>
  <h4>Feedback Issues</h4>
  <p>
    &amp;raquo;
    <a href="/foundation/Feedback.html">
    Report any problems
    </a>
  </p>
  <h4>Help</h4>
  <p>
    &amp;raquo;
    <a href="/foundation/ClubTutorial.html">
    Read the guide
    </a>
  </p>
  </div>
</div>
<h2>Welcome to the Club</h2>
<p>
  <i>&amp;quot;<xsl:value-of select="@purpose"/>&amp;quot;</i>
</p>
<p>
  &amp;raquo; <a href="JoinHere.html">Join here</a>
  &amp;nbsp;
  &amp;nbsp;
  &amp;raquo; <a href="Schedule.html">Schedule</a>
  &amp;nbsp;
  &amp;nbsp;
  &amp;raquo; <a href="/foundation/ClubTutorial.html">Guide</a>
</p>
<h2>Get Involved</h2>
<p><i>Get involved with the services, proposals, and prospectus.</i></p>
<p>
  &amp;raquo; <a href="Services.html">Services</a>
  &amp;nbsp;
  &amp;nbsp;
  &amp;raquo; <a href="Proposals.html">Proposals</a>
  &amp;nbsp;
  &amp;nbsp;
  &amp;raquo; <a href="Prospectus.html">Prospectus</a>
  &amp;nbsp;
</p>
<h2>Check Progress</h2>
<p><i>Track proposals after they have been supported.</i></p>
<p>
  &amp;raquo; <a href="Reports.html">Reports</a>
  &amp;nbsp;
  &amp;nbsp;
  &amp;raquo; <a href="/foundation/ContactUs.html">Contact us</a>
</p>
</xsl:template>

<xsl:template match="clubJoinHere">
  &lt;a name="Join"&gt;&lt;/a&gt;
  <p><i>Please complete and submit the registration form below.</i></p>
  <h2>Club Registration Form</h2>
  &lt;form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl"&gt;
    &lt;input type="hidden" name="recipient" value="asf-webmaster"&gt;
    <xsl:variable name="clubName" select="@clubName"/>
    &lt;input type="hidden" name="subject" value="Join Club: <xsl:value-of select="@clubName"/>"&gt;
    &lt;input type="hidden" name="redirect" value="http://appropriatesoftware.net/foundation/Thanks.html"&gt;
    &lt;p&gt;
    
    &lt;p&gt;
    &lt;label for="membername" &gt;
    Your name:
    &lt;/label&gt;
    &lt;input id="membername" type="text" name="name" value=""&gt;
    &lt;label for="memberemail" &gt;
    Your email address:
    &lt;/label&gt;
    &lt;input id="memberemail" type="text" name="email" value=""&gt;
    &lt;label for="memberinstitution" &gt;
    Your institution (not required):
    &lt;/label&gt;
    &lt;input id="memberinstitution" type="text" name="institution" value=""&gt;
    &lt;p&gt;
    &lt;input type="submit" value="Join Club"&gt;
  &lt;/form&gt;
    &lt;p&gt;
  <label><i><b>What happens after joining?</b></i>&amp;nbsp; 
  Joining means being involved in an <a href="/foundation/ClubTutorial.html">incremental sharing process</a> with others in your line of work. Members are regularly invited to
    submit or comment on new <a href="Proposals.html">proposals</a>,
    support a <a href="Prospectus.html">prospectus</a> of qualified proposals,
    and read <a href="Reports.html">reports</a> of running proposals.
    Members are above all welcome to 
    <a href="Services.html">use the services</a> and to raise issues about them. Issues are resolved immediately, or addressed as part of a new proposal.
  </label>
  <label><i><b>Employed by an institution?</b></i>&amp;nbsp; Just indicate which institution you are with. You will be asked about your decision making process and any committees that are relevant. On request, we will group individual members from the same institution within a single institutional membership.
  </label>
  <label><i><b>New to clubs?</b></i>&amp;nbsp;
  Discover how clubs work in  the <a href="/foundation/ClubTutorial.html">club tutorial</a>.
  </label>
</xsl:template>

<xsl:template match="clubServices">
  &lt;p&gt;These services may benefit members of the club.
<div class="boxout">
<h3>Notes</h3>
  <div class="contents">
  <h4>Raise Issues</h4>
  <p>
    You are invited to <a href="/foundation/Feedback.html">raise any issues</a> that may arise during your usage of the services with the club hosts.
  </p>
  </div>
</div>
</xsl:template>

<xsl:template match="clubProspectus">
  <xsl:choose>
    <xsl:when test="@published!=''">
  &lt;p&gt;You are invited to &lt;a href="#showinterest"&gt;show interest&lt;/a&gt; in the prospectus below.
  <xsl:if test="@serviceDeskLocation!=''">
  &lt;p&gt;&lt;b&gt;&lt;a href="<xsl:value-of select="@serviceDeskLocation"/>"&gt;Back to Service Desk&lt;/a&gt;&lt;/b&gt;
  </xsl:if>
  <h2><xsl:value-of select="title"/>
  </h2>
  &lt;p&gt;<span style="font-style: italic">Published: <xsl:value-of select="@published"/></span> 
  &lt;/p&gt;
  <xsl:choose>
    <xsl:when test="coveringLetter=''">
    </xsl:when><xsl:otherwise>
  <div class="coveringletter">
  &lt;p&gt;<xsl:value-of select="coveringLetter"/>
  </div>
    </xsl:otherwise>
  </xsl:choose>
  <div class="boxout">
  <h3>Notes</h3>
  <div class="contents">
  <h4>Introduction</h4>
  &lt;p&gt;The prospectus presents proposals to share common developments.
  &lt;p&gt;Each proposal is summarized with a statement of the purpose, the planned benefit, and the expected cost. 
  <h4>Sharing</h4>
  &lt;p&gt;The club seeks to share the costs of the proposals between those who show interest in the benefits.
  &lt;p&gt;You are invited to <a href="#showinterest">show interest</a> in any proposals you wish to see progress. (You may also suggest <a href="Proposals.html">new proposals</a>.) The club hosts will then attempt to share equally the cost of each proposal between those showing interest.
  &lt;p&gt;If equal shares aren't possible, the hosts will try to achieve a consensus between contributors for an adjustment to the proposal, or for an unequal sharing of its cost. If the cost is not reachable, the proposal will be recycled for further comments.
  <h4>Reporting</h4>
  &lt;p&gt;Contributors to proposals will receive regular reports on the progress of the proposals. The status of each running proposal will also be published on the service desk, and updated as contributions are agreed and as work proceeds. 
  </div>
  </div>
<div class="clubProspectus">
  &lt;p&gt;<!-- xsl:value-of select="proposalMessage"/ -->
  <xsl:variable name="clubName" select="@clubName"/>
  <xsl:variable name="showInterestLocation" select="'#showinterest'"/>
  <xsl:variable name="showInterestName" select="'show interest'"/>
  &lt;a name="showinterest"&gt;&lt;/a&gt;
  <h3>Show Interest</h3>
  &lt;p&gt;Show interest by completing this form. Select proposals that benefit you, add your email address, and press Submit.
  &lt;form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl"&gt;
    &lt;input type="hidden" name="recipient" value="asf-webmaster"&gt;
    &lt;input type="hidden" name="subject" value="Show Interest: <xsl:value-of select="$clubName"/>: <xsl:value-of select="title"/>"&gt;
    &lt;input type="hidden" name="redirect" value="http://appropriatesoftware.net/foundation/Thanks.html"&gt;
  &lt;p&gt;
  <xsl:choose>
    <xsl:when test="proposalCollection">
      <xsl:for-each select="proposalCollection/proposal">
        <xsl:if test="title!=''">
  <h4><xsl:value-of select="title"/>
  </h4>
  &lt;p&gt;
    &lt;input type="checkbox" name="<xsl:value-of select="title"/>" <xsl:if test="@checked='checked'"> checked="checked"</xsl:if>&gt;
    <xsl:value-of select="purpose"/>
    &lt;a 
          <xsl:choose>
            <xsl:when test="@name">
    href="#<xsl:value-of select="@name"/>"
            </xsl:when>
            <xsl:otherwise>
    href="#<xsl:value-of select="title"/>"
            </xsl:otherwise>
          </xsl:choose>
    &gt;
    See details&amp;raquo;
    &lt;/a&gt;
        </xsl:if>
      </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
  &lt;p&gt;<i>Sorry, there are no new proposals at this time.</i>
    </xsl:otherwise>
  </xsl:choose>
  &lt;p&gt;
  &lt;label&gt;
  Your email address:
  &lt;/label&gt;
  &lt;input type="text" name="email" value=""&gt;
  &lt;p&gt;
  &lt;input type="submit" value="Submit"&gt;
  <label><i><b>What happens next?</b></i> The club hosts will collect interest from other members, and discuss the implementation of the proposals with those showing interest.</label>
  &lt;/form&gt;
  <xsl:apply-templates select="proposalCollection/proposal"/>
</div>
    </xsl:when><xsl:otherwise>
  &lt;p&gt;
  The next prospectus has not yet been published. Please check later.
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="proposal">
  <xsl:if test="title!=''">
  &lt;p&gt;&lt;br&gt;&lt;br&gt;
  &lt;a 
          <xsl:choose>
            <xsl:when test="@name">
    name="<xsl:value-of select="@name"/>"
            </xsl:when>
            <xsl:otherwise>
    name="<xsl:value-of select="title"/>"
            </xsl:otherwise>
          </xsl:choose>
  &gt;&lt;/a&gt;
  <h3><xsl:value-of select="title"/>
  <xsl:if test="$showInterestLocation">
  &lt;a style="font-size: 0.7em" href="<xsl:value-of select="$showInterestLocation"/>"&gt;<xsl:value-of select="$showInterestName"/>&amp;raquo;&lt;/a&gt;
  </xsl:if>
  </h3>
  <xsl:if test="status!=''">
  <!-- <h4>Status</h4>
  &lt;p&gt;<a href="http:/foundation/ClubTutorial.html#Proposals"><span style="font-style: normal"><xsl:value-of select="status"/></span></a>
  -->
  </xsl:if>
  <xsl:if test="purpose!=''">
  <h4>Purpose</h4>
  &lt;p&gt;<span style="font-style: normal"><xsl:value-of select="purpose"/></span>
  </xsl:if>
  <xsl:if test="benefit!=''">
  <h4>Benefit</h4>
  &lt;p&gt;<span style="font-style: normal"><xsl:value-of select="benefit"/></span>
  </xsl:if>
  <xsl:if test="cost!=''">
  <h4>Method</h4>
  &lt;p&gt;<span style="font-style: normal"><xsl:value-of select="@method"/></span>
  <h4>Cost</h4>
  &lt;p&gt;<span style="font-style: normal"><xsl:value-of select="cost"/></span>
  </xsl:if>
  <!--
  <h4>Supplier</h4>
  &lt;p&gt;<span style="font-style: normal"><a href="/foundation">Appropriate Software Foundation</a></span>
  -->
  <h4>Post a Comment</h4>
  &lt;form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl"&gt;
    &lt;input type="hidden" name="recipient" value="asf-webmaster"&gt;
    &lt;input type="hidden" name="subject" value="Comment on Club Proposal: <xsl:value-of select="$clubName"/>: <xsl:value-of select="title"/>"&gt;
    &lt;input type="hidden" name="redirect" value="http://appropriatesoftware.net/foundation/Thanks.html"&gt;
    &lt;p&gt;
    &lt;label &gt;
    Your comment:
    &lt;/label&gt;
    &lt;input type="text" name="comment" value=""&gt;
    &lt;label&gt;
    Your email address:
    &lt;/label&gt;
    &lt;input type="text" name="email" value=""&gt;
    &lt;p&gt;
    &lt;input type="submit" value="Submit Comment"&gt;
    &lt;label&gt;<i><b>What happens next?</b></i> Comments are used to improve the proposals.
    &lt;/label&gt;
    &lt;/p&gt;
  &lt;/form&gt;
  </xsl:if>
</xsl:template>

<xsl:template match="clubProposals">
  &lt;a name="Proposals"&gt;&lt;/a&gt;
  <p>You are invited to submit new proposals for anything that could be shared between members of this club. You may also comment on the proposals of others. Submitted proposals will be published in a future <a href="Prospectus.html">prospectus</a>.</p>
  &lt;a name="NewProposal"&gt;&lt;/a&gt;
  <h2>Submit a New Proposal</h2>
  <p>Please indicate the purpose of your proposal, or what it would accomplish. Also, please leave your contact details, so we can discuss and elaborate your proposal with you.</p>
  &lt;form method="post" action="http://appropriatesoftware.net/cgi-bin/FormMail.pl"&gt;
    &lt;input type="hidden" name="recipient" value="asf-webmaster"&gt;
    &lt;input type="hidden" name="subject" value="New Proposal: <xsl:value-of select="@clubName"/>"&gt;
    &lt;input type="hidden" name="redirect" value="http://appropriatesoftware.net/foundation/Thanks.html"&gt;
    &lt;p&gt;
    &lt;label for="purpose" &gt;
    Purpose of proposal:
    &lt;/label&gt;
<!--    &lt;input id="purpose" type="text" name="purpose" value=""&gt; -->
    &lt;textarea rows="6" cols="50" name="purpose" id="purpose"&gt;&lt;/textarea&gt;
    &lt;label&gt;
    Your email address:
    &lt;/label&gt;
    &lt;input type="text" name="email" value=""&gt;
    &lt;p&gt;
    &lt;input type="submit" value="Submit Proposal"&gt;
    <label><i><b>What happens next?</b></i> Proposals are discussed and elaborated with the proposer, and posted here for comments. Qualified proposals will be published in the next <a href="Prospectus.html">prospectus</a>.</label>
    &lt;/p&gt;
  &lt;/form&gt;
  <h2>New Proposal Submissions</h2>
  &lt;a name="Summary"&gt;&lt;/a&gt;
  <h3>Summary</h3>
  <xsl:variable name="showInterestLocation" select="'#Summary'"/>
  <xsl:variable name="showInterestName" select="'See all'"/>
  <xsl:choose>
    <xsl:when test="proposalCollection">
      <xsl:for-each select="proposalCollection/proposal">
        <xsl:if test="title!=''">
  <h4><xsl:value-of select="title"/>
  </h4>
  &lt;p&gt;<xsl:value-of select="purpose"/>
    &lt;a href="#<xsl:value-of select="title"/>"&gt;
    See details&amp;raquo;
    &lt;/a&gt;
        </xsl:if>
      </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
  &lt;p&gt;<i>Sorry, there are no new proposals at this time.</i>
    </xsl:otherwise>
  </xsl:choose>
  <xsl:choose>
    <xsl:when test="proposalCollection=''">
  &lt;p&gt;<i>Sorry, there are no new proposals at this time.</i>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates select="proposalCollection"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="clubReports">
  &lt;a name="Reports"&gt;&lt;/a&gt;
  <p>A log of accomplished proposals.</p>
</xsl:template>

<xsl:template match="clubSchedule">
<p>
Scheduled events follow the general 
<a href="http://appropriatesoftware.net/foundation/ClubTutorial.html#Cycle">
operational cycle</a>.
</p>
    &lt;p&gt; &lt;/p&gt;
&lt;iframe src="http://www.google.com/calendar/hosted/appropriatesoftware.net/embed?showPrint=0&amp;showTitle=0&amp;showTabs=0&amp;showCalendars=0&amp;mode=AGENDA&amp;height=300&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;src=appropriatesoftware.net_502j5v2p3rkhdr08lni551i2sg%40group.calendar.google.com&amp;color=%23B1440E&amp;ctz=Europe%2FLondon" style=" border-width:0 " width="100%" height="300" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;
<p>
<a href="http://www.google.com/calendar/feeds/appropriatesoftware.net_502j5v2p3rkhdr08lni551i2sg%40group.calendar.google.com/public/basic" target="_blank" onclick="Fga(this,0,true,false,false); return false;"><img style="color: #fff" src="http://www.google.com/calendar/hosted/appropriatesoftware.net/images/xml.gif"/></a> <a href="http://www.google.com/calendar/ical/appropriatesoftware.net_502j5v2p3rkhdr08lni551i2sg%40group.calendar.google.com/public/basic.ics" target="_blank" onclick="Fga(this,1,true,false,false); return false;"><img style="color: #fff" src="http://www.google.com/calendar/hosted/appropriatesoftware.net/images/ical.gif"/></a> 
</p>
</xsl:template>

<xsl:template match="quote">
  <p><i><xsl:value-of select="text"/></i>
  - <xsl:apply-templates select="author/text"/>
  </p>
</xsl:template>


<xsl:template match="code"><pre><xsl:apply-templates/>
</pre></xsl:template>


<xsl:template match="list">
  <ul><xsl:apply-templates/></ul>
</xsl:template>


<xsl:template match="listItem">
  <li><xsl:apply-templates/></li>
</xsl:template>

<xsl:template match="forum">&lt;%
    my $object = $self-&gt;retrieve(
        "<xsl:value-of select="@forumObject"/>",
        "<xsl:value-of select="@forumDomain"/>"
    );
%&gt;<xsl:value-of select="@before"/><a href="&lt;%= $object-&gt;url; %&gt;">&lt;%= $object-&gt;title; %&gt;</a><xsl:value-of select="@after"/>&amp;nbsp;</xsl:template>

<xsl:template match="searchDevice">
 <form action="http://appropriatesoftware.net/cgi-bin/htsearch">
  <p>
    &lt;input type="hidden" name="method" value="and"&gt;
    &lt;input type="hidden" name="config" value="appropriatesoftware.net"&gt;
    &lt;nbsp/><i>search</i>&lt;br&gt;
    &lt;input type="text" name="words"&gt;
  </p>
 </form>
</xsl:template>

<xsl:template match="search">
 <form action="http://appropriatesoftware.net/cgi-bin/htsearch">
  <p>
    &lt;br&gt;
    &lt;br&gt;
    &lt;input type="hidden" name="method" value="and"&gt;
    &lt;input type="hidden" name="config" value="appropriatesoftware.net"&gt;
    &lt;input type="text" name="words"&gt;
    &amp;nbsp;
    &lt;input type="submit" value="Search"&gt;
  </p>
 </form>
</xsl:template>

<xsl:template match="EditorAWFML">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="AwfEditor">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="questionnaire">
  <form method="post">
     <xsl:attribute name="action"><xsl:value-of select="@url"/></xsl:attribute>
     <input type="hidden" name="questionnaireID">
       <xsl:attribute name="value"><xsl:value-of select="@questionnaireID"/></xsl:attribute>
     </input>
     <xsl:apply-templates select="guideline/text"/>
     &lt;br&gt;&lt;br&gt;
     <xsl:apply-templates select="preamble/text"/>
     &lt;br&gt;&lt;br&gt;
     <h3><xsl:value-of select="title/text"/> Questionnaire</h3>
     <ol>
     <xsl:apply-templates/>
     </ol>
     &lt;br&gt;
     <center><xsl:apply-templates select="comment/text"/>&lt;br&gt;&lt;br&gt;
     <xsl:call-template name="multiLangSubmit" /> <input type="reset"/>&lt;br&gt;
     <hr width="80"/>
     </center>
  </form>
</xsl:template>


<xsl:template match="questionnaireItem">
    <li><xsl:value-of select="question"/>&lt;br&gt;&lt;br&gt;
    <nbsp/><nbsp/><nbsp/>
      <xsl:apply-templates select="questionResponse"/>
    &lt;br&gt;
    &lt;br&gt;</li>&lt;br&gt;
  </xsl:template>


<xsl:template match="questionResponse">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="selectOneFromManyQuestionResponse">
    <select>
      <xsl:attribute name="name"><xsl:value-of select="@uniqueName"/></xsl:attribute>
      <option>...select option</option>
      <xsl:for-each select="questionResponseOption">
        <option><xsl:value-of select="text"/></option>
      </xsl:for-each>
    </select>
  </xsl:template>


<xsl:template match="selectManyFromManyQuestionResponse">
<xsl:for-each select="questionResponseOption">
&lt;br&gt;<nbsp/><nbsp/><nbsp/><nbsp/><nbsp/><nbsp/>
<input type="checkbox"><xsl:value-of select="text"/>
<xsl:attribute name="name"><xsl:value-of select="@uniqueName"/></xsl:attribute>
</input>
</xsl:for-each>
  </xsl:template>


<xsl:template match="shortTextQuestionResponse">
    <input type="text" size="40">
      <xsl:attribute name="name"><xsl:value-of select="@uniqueName"/></xsl:attribute>
    </input>
  </xsl:template>


<xsl:template match="longTextQuestionResponse">
    <textarea rows="6" cols="38" wrap="">
      <xsl:attribute name="name"><xsl:value-of select="@uniqueName"/></xsl:attribute>
    </textarea>
  </xsl:template>


<xsl:template match="heading">
    <xsl:apply-templates select="link"/>
  </xsl:template>


<xsl:template match="pageJumperDevice">
    <xsl:comment>page jumper link start device</xsl:comment>&lt;br&gt;
    <xsl:for-each select="pageJumperLinkStart">[<nbsp/><a><xsl:attribute name="href">#<xsl:value-of select="@url"/></xsl:attribute><xsl:value-of select="text"/></a><nbsp/>]
    </xsl:for-each>&lt;br&gt;&lt;br&gt;
  </xsl:template>


<xsl:template match="pageJumperLinkTarget">
    <xsl:comment>Page Jumper Link Target</xsl:comment>
    <a><xsl:attribute name="name"><xsl:value-of select="@url"/></xsl:attribute></a>
  </xsl:template>


<xsl:template match="navigationDevice">
  <div class="navigation">
    <ul>
    <xsl:apply-templates select="navigationLink"/>
    </ul>
  </div>
</xsl:template>

<xsl:template match="navigationLink">
  <li>
    <a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute><xsl:value-of select="text"/></a>
  </li>
</xsl:template>

<xsl:template match="_navigationDevice">
  <table cellpadding="1" cellspacing="0" class="navigationLink">
    <xsl:apply-templates select="navigationLink"/>
  </table>
</xsl:template>

<xsl:template match="navigationSuperLink">
    <xsl:apply-templates/>
</xsl:template>

<xsl:template match="_navigationLink">
    <tr>
      <td class="navigationLink" onmouseover="this.className='navigationLinkOn'" onmouseout="this.className='navigationLink'"><xsl:attribute name="onclick">window.location='<xsl:value-of select="@url"/>'</xsl:attribute><xsl:value-of select="text"/></td>
    </tr>
</xsl:template>


<xsl:template match="navigationSubLink">
    <tr>
      <td class="navigationSubLink" onmouseover="this.className='navigationSubLinkOn'" onmouseout="this.className='navigationSubLink'"><xsl:attribute name="onclick">window.location='<xsl:value-of select="@url"/>'</xsl:attribute><xsl:value-of select="text"/>
      </td>
    </tr>
</xsl:template>


<xsl:template match="navigationSubSubLink">
    <tr>
      <td class='navigationSubSubLink' onmouseover="this.className='navigationSubSubLinkOn'" onmouseout="this.className='navigationSubSubLink'"><xsl:attribute name="onclick">window.location='<xsl:value-of select="@url"/>'</xsl:attribute><a class="navigationSubSubLink"><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute><xsl:value-of select="text"/></a>
      </td>
    </tr>
</xsl:template>


<xsl:template match="complementaryNavigationDevice">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="complementaryNavigationSuperLink">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="complementaryNavigationLink">
    <xsl:apply-templates/>
  </xsl:template>


<xsl:template match="complementaryNavigationSubLink">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="complementaryNavigationSubSubLink">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="footerMajorLinks">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="footerSiblingLinks">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="footerLinkSeparator"> : </xsl:template>

<xsl:template match="breadcrumbDevice">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="breadcrumb">
  <xsl:apply-templates/>
</xsl:template>


<xsl:template match="linkTopDevice">
  <xsl:call-template name="linkTop"/>
</xsl:template>

<xsl:template name="linkTop">
</xsl:template>


<xsl:template match="previousDevice"><a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>previous</a></xsl:template>

<xsl:template match="nextDevice"><a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>next</a></xsl:template>

<xsl:template match="upDevice"><a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>up</a></xsl:template>

<xsl:template match="subSection">
  <p>
    <a>
      <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
      <xsl:value-of select="title"/>
    </a>
    <i><xsl:apply-templates/></i>
  </p>
</xsl:template>

<xsl:template match="copyrightStampDevice">
&amp;copy; <xsl:value-of select="title"/>. All rights reserved.
</xsl:template>

<xsl:template match="productionStampDevice">
<a href="http://validator.w3.org/check/referer">HTML</a>
:
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
: <xsl:value-of select="time"/>
</xsl:template>


<xsl:template match="li">
  <li><xsl:apply-templates/></li>
</xsl:template>


<xsl:template match="ul">
  <ul><xsl:apply-templates/></ul>
</xsl:template>


<xsl:template match="i"><i><xsl:apply-templates/></i></xsl:template>


<xsl:template match="b"><b><xsl:apply-templates/></b></xsl:template>


<xsl:template match="br">
    &lt;br&gt;
  </xsl:template>


<xsl:template match="raw">
    <xsl:copy-of select="child::*"/>
  </xsl:template>

<xsl:template match="title"></xsl:template>

<xsl:template match="comment"></xsl:template>

<xsl:template match="guideline"></xsl:template>

<xsl:template match="preamble"></xsl:template>

<xsl:template match="AwfLoginUserPassword">

    <form action="&lt;%= $ENV{SCRIPT_NAME} %>" method="post" >
              <table width="300" border="0" align="center">
&lt;%
if ( $self->isSessionLoggedIn() ) {
%>
                <tr>
                  <td colspan="2">You are <b>logged in</b> as &lt;%= $self->loggedInUsername(); %>.&lt;br&gt;
                  </td>
                </tr>
&lt;%
    if ( $self->query->param( 'AwfReturnPage' ) ) {
%>
                <tr>
                  <td colspan="2">
                    &lt;br&gt;&lt;br&gt;
                    <i>Click here to <a href="&lt;%= $self->query->param( 'AwfReturnPage' ) %>">carry on</a> to your page.</i>
                    &lt;br&gt;
                    </td>
                </tr>
&lt;%
    }
%>
                <tr>
                  <td>
                    &lt;br&gt;
                    Press the button to log out:
                    &lt;br&gt;
                  </td>
                  <td>
                  </td>
                </tr>
                <tr>
                  <td>
                    <input type="submit" value="Log out" />
                  </td>
                  <td>
                  </td>
                </tr>
                <tr>
                  <td>
                    <input type="hidden" name="AwfLogout" value="1"/>
                  </td>
                  <td>
                  </td>
                </tr>
&lt;%
} else {
%>
                <tr>
                  <td colspan="2"><b>Please login here</b>&lt;br&gt;&lt;br&gt;</td>
                </tr>
                <tr>
                  <td><font face="Arial, Helvetica, sans-serif" size="-1">Username</font></td>
                  <td><input type="text" name="AwfLoginUsername" /></td>
                </tr>
                <tr>
                  <td><font face="Arial, Helvetica, sans-serif" size="-1">Password</font></td>
                  <td><input type="password" name="AwfLoginPassword" /></td>
                </tr>
&lt;%
    if ( $self->query->param( 'AwfReturnPage' ) ) {
%>
                <input type="hidden" name="AwfReturnPage" value="&lt;%= $self->query->param( 'AwfReturnPage' ); %>"/>
&lt;%
    }
%>
                <tr>
                  <td> </td>
                  <td >
                    &lt;br&gt;
                    <input type="submit" value="Log in" />
                  </td>
                </tr>
                <tr>
                  <td colspan="2">
                    &lt;br&gt;
                    <a href="PasswordReminder_en.psp"><font face="Arial, Helvetica, sans-serif" size="-1">Forget password, please click here</font></a>
                  </td>
                </tr>
&lt;%
}
%>
              </table>
  </form>
</xsl:template>

<xsl:template match="AwfUserPasswordReminder">
    <form action="&lt;%= $ENV{SCRIPT_NAME} %>" method="post" >
              <table width="325" border="0" align="center">
&lt;%
    my $user = $self->query->param( 'AwfPasswordReminderUser' );
    if ( $user ) {
        if ( $self->sendPasswordReminder( $user ) ) {
%>
                <tr>
                  <td colspan="2">
                  Thank you.
                  &lt;br&gt;&lt;br&gt;
                  <b>Your password has been sent to the email address you registered.</b>
                  &lt;br&gt;&lt;br&gt;
                  <i>Why not check your email and come back?</i>
                  &lt;br&gt;
                  &lt;br&gt;
                  &lt;br&gt;
                  </td>
                </tr>
&lt;%
        } else {
%>
                <tr>
                  <td colspan="2"><font color="#FF0000">
                  Unknown username.
                  </font>&lt;br&gt;&lt;br&gt;
                  <b>Sorry, that username isn't registered. Reminder was unsent.</b>
                  &lt;br&gt;&lt;br&gt;
                  <i>Did you type your username correctly?</i>
                  &lt;br&gt;
                  </td>
                </tr>
&lt;%
        }
    } else {
%>
                <tr>
                  <td colspan="2">Please enter username&lt;br&gt;</td>
                </tr>
                <tr>
                  <td><font face="Arial, Helvetica, sans-serif" size="-1">Username</font></td>
                  <td> <font face="Arial, Helvetica, sans-serif" size="-1">
                    <input type="text" name="AwfPasswordReminderUser" />
                    </font><font face="Arial, Helvetica, sans-serif" size="-2">
                    <input type="submit" value="Email password" name="submit" />
                    </font></td>
                </tr>
&lt;%
    }
%>

              </table>
  </form>
</xsl:template>

<xsl:template match="AwfUserRegistrationForm">
&lt;%
if ($self->isRegistrationOverwrite ) {
    $self->registerNewUser;
%>
                <table border="0" width="300" align="center">
                    <tr>
                        <td>
                            <font face="Arial, Helvetica, sans-serif" size="">
                            <b>User Account Registration Updated</b></font>
                            &lt;br&gt;&lt;br&gt;
                            <font face="Arial, Helvetica, sans-serif" size="-1">
                            A confirmation of this action has been sent to the email address you registered.
                            &lt;br&gt;&lt;br&gt;
                            Thank you for updating your registration details.
                            </font>
                        </td>
                    </tr>
                </table>
&lt;%
} elsif ($self->isRegistrationOk ) {
    $self->registerNewUser;
%>
                <table border="0" width="300" align="center">
                    <tr>
                        <td>
                            <font face="Arial, Helvetica, sans-serif" size="">
                            <b>User Account Registration Complete</b></font>
                            &lt;br&gt;&lt;br&gt;
                            <font face="Arial, Helvetica, sans-serif" size="-1">
                            An confirmation request has been sent to the email address you registered.
                            To enable your account you must confirm your registration.
                            &lt;br&gt;&lt;br&gt;
                            Please check your email and enable your account.
                            Thank you for registering with the AWF.
                            </font>
                        </td>
                    </tr>
                </table>
&lt;%
} else {
%>
        <form action="&lt;%= $ENV{SCRIPT_NAME} %>" method="post">
            <center>
                <table border="0" width="400" nowrap="nowrap">
                    <tr>
                        <td>
                            <font size="2" face="Arial, Helvetica, sans-serif">
                            <b>Registration Information</b>&lt;br&gt;
                            <font color="#ff0000"><b>Fields marked with an astriks&lt;br&gt;
                            are required input fields.</b></font>&lt;br&gt;&lt;br&gt;
&lt;%= $self->checkRegistration(); %>
                            </font>
                        </td>
                    </tr>
                    <tr>
                        <td><font face="Arial, Helvetica, sans-serif" size="-2"><b>your real name and email address</b></font></td>
                    </tr>
                    <tr>
                        <td> <font face="Arial, Helvetica, sans-serif" size="-1">
                            <input type="text" name="AwfRegistrationFirstname" value="&lt;%= $self->registrationFirstname(); %>" />
                            first name<font color="#ff0000"> *</font></font></td>
                    </tr>
                    <tr>
                        <td> <font face="Arial, Helvetica, sans-serif" size="-1">
                            <input type="text" name="AwfRegistrationLastname" value="&lt;%= $self->registrationLastname(); %>" />
                            last name<font color="#ff0000"> *</font></font></td>
                    </tr>
                    <tr>
                        <td>
                            <font face="Arial, Helvetica, sans-serif" size="-1">
                            <input type="text" name="AwfRegistrationEmail" value="&lt;%= $self->registrationEmail(); %>" />
                            e-mail address<font color="#ff0000"> *</font></font>
                        </td>
                    </tr>
                    <tr>
                        <td><font face="Arial, Helvetica, sans-serif" size="-2"><b>choose a user name</b></font></td>
                    </tr>
                    <tr>
                        <td> <font face="Arial, Helvetica, sans-serif" size="-1">
                        <input type="text" name="AwfRegistrationUsername" value="&lt;%= $self->registrationUsername(); %>" />
                        user name<font color="#ff0000"> *</font> (a-z,a-z,0-9) </font></td>
                    </tr>
                    <tr>
                        <td><font face="Arial, Helvetica, sans-serif" size="-2"><b>choose a password</b></font></td>
                    </tr>
                    <tr>
                        <td> <font face="Arial, Helvetica, sans-serif" size="-1">
                        <input type="password" name="AwfRegistrationPass" value="&lt;%= $self->registrationPass(); %>" />
                        password<font color="#ff0000"> *</font></font>
                      </td>
                    </tr>
                    <tr>
                        <td>
                            <font face="Arial, Helvetica, sans-serif" size="-1">
                            <input type="password" name="AwfRegistrationPassre" value="&lt;%= $self->registrationPassre(); %>" />
                            verify password<font color="#ff0000"> *</font></font>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <font face="Arial, Helvetica, sans-serif" size="2">&lt;br&gt;
                            <input type="submit" value="Register" />
                            <input type="reset" value="Reset" />
                            </font>
                        </td>
                    </tr>
                </table>
            </center>
        </form>
&lt;% } %>
</xsl:template>

<xsl:template match="storyGallery">
  <p><i>People were asked to tell us about things they love to happen...</i></p>
  <xsl:apply-templates/>
&lt;br&gt;
</xsl:template>

<xsl:template match="storyPicture">
<h3><i>by </i><xsl:value-of select="@teller"/>,
<xsl:value-of select="@time"/></h3>
<p><a><xsl:attribute name="href"><xsl:value-of select="@url_link"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="text"/></xsl:attribute><img><xsl:attribute name="src"><xsl:value-of select="@url_image"/></xsl:attribute><xsl:attribute name="alt">image is missing</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></img></a></p>
<h4><xsl:value-of select="text"/></h4>
&lt;br&gt;
&lt;br&gt;
</xsl:template>

</xsl:stylesheet>

