Homophones

From Fxp Wiki

Jump to: navigation, search

Constitué à partir d'un fichier freedict:

Utilisation du logiciel cooktop pour la traduction du tei en html

Feuille de style:

 
<?xml version="1.0" encoding="UTF-8"?>	
<xsl:stylesheet version="1.0"
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
			xmlns="http://www.w3.org/1999/xhtml">
			
<xsl:template match="//text/body">
    <html><head><title>Traduction d'un freedict</title></head>
		<body>
			<table>
				<xsl:apply-templates select="entry"/>
			</table>
		</body>
	</html>
  </xsl:template>
 
 
  <xsl:template match="entry">
    <xsl:if test="form/pron">
	<tr>
		<td>
			<xsl:value-of select="form/orth/text()"/>
		</td>
		<td>
			<xsl:value-of select="form/pron/text()"/>
		</td>
		<td>
			<xsl:value-of select="trans/tr/text()"/>
		</td>
	</tr>
	</xsl:if>
	<xsl:value-of select="text()"/>
  </xsl:template>
  
</xsl:stylesheet>
 

Pour Martine Cheval.

Personal tools