<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
	<!-- modify base_dir To change the base_dir or base url. 
	 For instance, if the diagram will eventually be browsed 
	from http://icb.mssm.edu/diagrams/, set base_dir to this value. -->
	<xsl:variable name="base_dir">h:\dev\crover\</xsl:variable>
	<xsl:template match="rbde-page">
		<html>
			<head>
				<title>Test rbde-page</title>
			</head>
			<body>
				<h1>Diagram: <xsl:value-of select="./diagram-name"/>
				</h1>
			</body>
			<xsl:apply-templates select="images"/>
			<xsl:copy-of select="included-map/."/>

		</html>
	</xsl:template>
	<xsl:template match="image[@format='GIF']">
		<img src="{$base_dir}{@filename}" ismap="true" usemap="#DiagramMap"/>
	</xsl:template>
	<xsl:template match="image[@format='SVG']">
		<a href="{$base_dir}{@filename}">SVG diagram</a>
	</xsl:template>

	<xsl:template match="images">
		<xsl:apply-templates/>
	</xsl:template>


</xsl:stylesheet>
