View stylesheet

XML schemas http://www.lisa.org/tmx/tmx14.dtd
Output type HTML
Description Simple HTML table for TMX files
XSL file translations_tables.xsl (Last modified: 06 Dec 2005 12:57 )
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="body">
	<html>
		<head>
			<title>Translation memory table</title>
		</head>
		<body>
			<h2>Translation memory table</h2>
			<table border="1">
				<xsl:apply-templates select="tu" />
			</table>
		</body>
	</html>
</xsl:template>

<xsl:template match="tu">
	<xsl:if test="position()=1">
		<tr>
			<xsl:apply-templates select="tuv" />
		</tr>
	</xsl:if>
	<tr>
		<xsl:apply-templates select="tuv/seg"/>
	</tr>
</xsl:template>

<xsl:template match="tuv">
	<th>
		<xsl:value-of select="@xml:lang" />
	</th>
</xsl:template>


<xsl:template match="tuv/seg">
	<td><xsl:value-of select="." /></td>
</xsl:template>

</xsl:stylesheet>