<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xrv="http://cking.be/wx/xrv/ns"
	>

	<xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		/>

	<xsl:strip-space elements="*"/>

	<xsl:template match="/xrv:strings">
		<html>
			<head>
				<title>xrv XRCvalidator strings</title>
				<meta name="generator" content="xrv XRCvalidator [{system-property('xsl:vendor')}]"/>
				<link rel="stylesheet" type="text/css" href="../css/global.css"/>
				<link rel="stylesheet" type="text/css" href="../css/validator.css"/> <!-- need error styles -->
			</head>
			<body>
				<div class="title"><a href="..">xrv XRCvalidator</a> strings</div>
				<div class="content indent">
					<div class="intro">This document contains all the strings used by the validator. For now, only error strings; more types might follow later on:</div>
					<div>
						<xsl:apply-templates select="xrv:errors" mode="print"/>
					</div>
				</div>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="xrv:strings/xrv:errors" mode="print">
		<xsl:apply-templates select="xrv:error" mode="print"/>
	</xsl:template>

	<xsl:template match="xrv:errors/xrv:error" mode="print">
		<div class="error fatal" title="{@id}">
			<xsl:apply-templates select="."/>
		</div>
	</xsl:template>

	<xsl:template match="xrv:errors/xrv:error">
		<xsl:apply-templates select="xrv:dscr"/>
		<xsl:apply-templates select="xrv:info"/>
	</xsl:template>

	<xsl:template match="xrv:error/xrv:dscr | xrv:error/xrv:info">
		<div class="{local-name()}">
			<xsl:apply-templates select="*|node()"/>
		</div>
	</xsl:template>

	<xsl:template match="xrv:e">
		<span class="elem">
			<xsl:apply-templates select="node()"/>
		</span>
	</xsl:template>

	<xsl:template match="xrv:s1">
		<span class="s">s1</span>
	</xsl:template>

	<xsl:template match="xrv:s2">
		<span class="s">s2</span>
	</xsl:template>

	<xsl:template match="xrv:s3">
		<span class="s">s3</span>
	</xsl:template>

</xsl:stylesheet>



