<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:param name="cartella"/>
	<xsl:param name="userid"/>
	<xsl:output method="html" encoding="iso-8859-1" indent="yes" omit-xml-declaration="yes"/>

	<xsl:template name="parole_chiave">
		<meta name="keywords" content="Kathmandu café, commercial drive, vancouver, nepali food, nepal, momo, nepal, himalayan food" />
		<meta name="description" content="Café Kathmandu, Himalayan Food, Fun and Networking. We serve authentic Nepali food for the first time in Vancouver, BC" />
		<link rel="alternate" type="application/rss+xml" HREFLANG="EN" title="Café Kathmandu newsfeed" href="default.php?pageID=RSSnews"/>
		
	</xsl:template>


	<xsl:template name="footer"> 
		<div id="footer">2779 Commercial Dr.,Vancouver, BC, Canada V5N 4C5 -  Opens Monday to Saturday. Closed on Sundays.</div>
	</xsl:template>
	
	<xsl:template name="menu_principale">
		<div id="main_menu">
			<xsl:for-each select="//menu[@pageID = 'menu_principale']/pagina | //menu[@pageID = 'menu_principale']/menu">
				<xsl:if test="position() &gt; 1">&nbsp;|&nbsp;</xsl:if>
				<xsl:choose>
							<xsl:when test=".//pagina[@accesa = 'true'] or @accesa = 'true'">
								<span id="selezionata"><xsl:value-of select="./@*[local-name() = $lang]"/></span>
							</xsl:when>
							<xsl:otherwise>
								<xsl:choose>
									<xsl:when test="local-name() = 'pagina'">
										<a href="?pageID={@pageID}"><xsl:value-of select="@*[local-name() = $lang]"/></a>
									</xsl:when>
									<xsl:otherwise>
										<a href="?pageID={pagina/@pageID}"><xsl:value-of select="@*[local-name() = $lang]"/></a>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:otherwise>
						</xsl:choose>
			</xsl:for-each>
		</div>
	</xsl:template>
	
	<xsl:template name="menu_news">
		<div id="main_menu">
			<a href="?pageID=RSSnews"><img src="img/feed_icon.gif" width="14" height="14" border="0" align="absmiddle" hspace="5"/></a><span id="selezionata">News</span>
			<!-- <span id="destra"><a class="link_small" href="?pageID=news_archive">Archive</a></span>--></div>
	</xsl:template>
	
	<xsl:template name="static_content">
	<xsl:param name="contenuto"/>
		<xsl:copy-of select="//pagina[@accesa = 'true']/contenuto/*[contains($contenuto,name())]/* | //pagina[@accesa = 'true']/contenuto/*[contains($contenuto,name())]/text()"/>
	</xsl:template>
	
	<xsl:template name="image_content">
	<xsl:param name="contenuto"/>
	<xsl:variable name="contentfolder">immagini/</xsl:variable>
		<xsl:copy-of select="//pagina[@accesa = 'true']/contenuto/*[contains($contenuto,name())]/* | //pagina[@accesa = 'true']/contenuto/*[contains($contenuto,name())]/text()"/>
	</xsl:template>
	
<xsl:template name="news_list">
		<xsl:param name="howmany"/>
		<xsl:for-each select="//dati//new[position() &lt;= $howmany]">
		
			<div id="news_module">
				<a href="javascript:popup('?pageID=read_new&amp;newID={@id}')">
				<div class="data"><xsl:value-of select="data"/></div>
				<div class="strillo"><xsl:copy-of select="titolo"/><xsl:if test="@important = '1'"><img src="img/star.gif" align="absmiddle" hspace="2" border="0"/></xsl:if></div>
				<div class="testo_news"><xsl:copy-of select="testo"/></div>
				</a>
			</div>
			
		</xsl:for-each>
		<div id="news_module">
				<img src="img/nepal_flag.gif" align="absmiddle" hspace="5"/><span class="strillo">Nepal news</span><br />
				<p><a href="http://en.wikipedia.org/wiki/Nepal" target="_blank"><span class="data">http://en.wikipedia.org/wiki/Nepal</span><br />
				<span class="testo_news">Informations about Nepal</span></a></p>
				<p><a href="http://www.nepalnews.com/" target="_blank"><span class="data">http://www.nepalnews.com/</span><br />
				<span class="testo_news">Nepal News</span></a></p>
				<p><a href="http://www.pdfnepal.com/" target="_blank"><span class="data">http://www.pdfnepal.com/</span><br />
				<span class="testo_news">For alternative news sources</span></a></p>
			</div>
	</xsl:template>
	
	<xsl:template name="last_event">
	<xsl:variable name="lastevent" select="//dati//event[position() = last()]"/>
	<div class="data"><xsl:value-of select="$lastevent/data"/></div>
	<div class="titoli_rossi"><xsl:value-of select="$lastevent/titolo"/></div>
		<div id="main_event">
			<xsl:copy-of select="$lastevent/testo"/>
			  <xsl:if test="count($lastevent/links/link)">
				<div class="item_group_label">Links</div>
				  <div class="item_group">
				  	<xsl:for-each select="$lastevent/links/link">
						<xsl:element name="a">
							<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
							<xsl:attribute name="target">_blank</xsl:attribute>
							<img src="img/mondino.gif" align="absmiddle" hspace="5" border="0"/>
							<xsl:value-of select="."/>
						</xsl:element>
					</xsl:for-each>
				  </div>
			  </xsl:if>
			  <xsl:if test="count($lastevent/attachments/attachment)">
				<div class="item_group_label">Attachments</div>
				  <div class="item_group">
				  	<xsl:for-each select="$lastevent/attachments/attachment">
						<xsl:variable name="tipo" select="substring-after(@url,'.')"/>
						<xsl:element name="a">
							<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
							<xsl:attribute name="target">_blank</xsl:attribute>
							<img src="img/file_{$tipo}.gif" align="absmiddle" hspace="5" border="0"/>
							<xsl:value-of select="."/>
						</xsl:element>
					</xsl:for-each>
				  </div>
			  </xsl:if>
		</div>
	</xsl:template>	
</xsl:stylesheet>

