<?xml version="1.0" encoding="utf-8" ?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!-- -->
	<xsl:include href="javadoc.ja.xslt" />
	<!-- -->
	<xsl:param name="global-path-to-root" />
	<xsl:param name="global-title" select="'My Project'" />
	<!-- -->
	<xsl:template match="/">
		<html>
			<xsl:call-template name="output-head" />
			<body>
				<xsl:variable name="navigation-bar">
					<xsl:call-template name="output-navigation-bar">
						<xsl:with-param name="select" select="'Overview'" />
					</xsl:call-template>
				</xsl:variable>
				<xsl:copy-of select="$navigation-bar" />
				<hr />
				<h2 class="title">
					<xsl:value-of select="$global-title" />
					<xsl:text> API 仕様</xsl:text>
				</h2>
				<!-- IE doesn't support the border-spacing CSS property so we have to set the cellspacing attribute here. -->
				<table class="table" cellspacing="0">
					<thead>
						<tr>
							<th colspan="2">
								<xsl:value-of select="$global-title" />
								<xsl:text> 名前空間</xsl:text>
							</th>
						</tr>
					</thead>
					<xsl:apply-templates select="ndoc/assembly/module/namespace"></xsl:apply-templates>
				</table>
				<br />
				<hr />
				<xsl:copy-of select="$navigation-bar" />
			</body>
		</html>
	</xsl:template>
	<!-- -->
	<xsl:template match="namespace">
		<xsl:if test="count(*)">
			<tr>
				<td class="name">
					<a>
						<xsl:attribute name="href">
							<xsl:call-template name="get-href-to-namespace-summary">
								<xsl:with-param name="namespace-name" select="@name" />
							</xsl:call-template>
						</xsl:attribute>
						<xsl:value-of select="@name" />
					</a>
				</td>
				<td class="namespace">
					<xsl:choose>
						<xsl:when test="documentation/summary">
							<xsl:apply-templates select="documentation/summary" mode="doc" />
						</xsl:when>
						<xsl:otherwise>&#160;</xsl:otherwise>
					</xsl:choose>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>	
	<!-- -->
	<xsl:template match="feedbackEmail">
		<xsl:param name="page"/>
		<p>
			<a>
				<xsl:attribute name="href">
					<xsl:text>mailto:</xsl:text>
					<xsl:value-of select="."/>
					<xsl:text>?subject=</xsl:text>
					<xsl:value-of select="$global-title" />
					<xsl:text> Documentation Feedback: </xsl:text>
					<xsl:value-of select="$page"/>
				</xsl:attribute>
				<xsl:text>このドキュメントについてのフィードバック</xsl:text>
			</a>
		</p>
	</xsl:template>		
</xsl:transform>
