<?xml version="1.0" ?>
<!DOCTYPE layout [
 <!ENTITY system.title "" >
 <!ENTITY nbsp "&#32; " >
]>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xml:space='preserve'>
<xsl:output method="html" indent="yes"/>

<xsl:template match="*">
<HTML>
<BODY>
<font face="Arial" size="+2">
	<xsl:value-of select='title' />
</font>
<br />
<font face="Arial" size="+1">
	<xsl:value-of select='message' />
</font>
<a href='./?do:method=load'>Refresh</a>
<hr />
<table cellspacing='0'>
<xsl:apply-templates mode="outer" select='FOLDER[@name]' />
<xsl:apply-templates mode="outer" select='CONTENT[@name]' />
</table>

</BODY>
</HTML>
</xsl:template>

<!-- Template for FOLDER -->
<xsl:template match="FOLDER">
<HTML>
<BODY>
<font face="Arial" size="+2">
	<B><xsl:value-of select='@title' /></B>
</font>
<br />
<font face="Arial" size="+1">
	<xsl:value-of select='@message' />
</font>

<!-- do all parents -->
<a href='..'>Up</a>
|
<a href='./?do:method=load'>Refresh</a> 
|
<a href='?layout=folder_add.xsl' >Add Folder </a>

<hr />
<table cellspacing='0'>
<xsl:apply-templates mode="outer" select='FOLDER[@name]' />
<xsl:apply-templates mode="outer" select='CONTENT[@name]' />
</table>

</BODY>
</HTML>
</xsl:template>

<!-- Template for FOLDER in a list -->
<xsl:template match='FOLDER' mode="outer">
<tr>
<td>
	<img src='/xap/images/folder.gif' />&nbsp;
</td>
<td>	
	<a>
	<xsl:attribute name='href'><xsl:value-of select='@name' />/</xsl:attribute>
	<xsl:value-of select='@title' />
	</a>
</td>
</tr>
</xsl:template>

<xsl:template match='CONTENT' mode="outer">
<tr>
<td>
	<img src='/xap/images/file.gif' />&nbsp;
</td>
<td>
	<a>
	<xsl:attribute name='href'><xsl:value-of select='@uri' /></xsl:attribute>
	<xsl:value-of select='@title' />
	</a>
</td>
</tr>

</xsl:template>

<xsl:template match='*' mode="outer">
	<a>
	<xsl:attribute name='href'><xsl:value-of select='@name' />/</xsl:attribute>
	<xsl:value-of select='title' />
	</a>
	<br />
</xsl:template>

</xsl:stylesheet>
