View Single Post
  #2  
Old 01-05-2004, 17:13
souljah souljah is offline
Membre junior
 
Join Date: 19-03-2004
Posts: 8
Re: Fabriquer un fichier XSL

j'ai aussi tenté ça mais ça ne marche pas

Code:
 <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0"
>
<xsl:output method="html"/> 
<xsl:template match="Inbox/Lettre">
<html> 
<body>
<xls:apply-templates select="Expediteur" />
<xls:apply-templates select="Destinataire" />
<xls:apply-templates select="Contenu" />
</body>
</html>
</xsl:template> 
 
<xls:apply-templates match="Expediteur">
Destinataire : <xls:value-of select="nom" />
Domaine : <xls:value-of select="domaine" />
</xsl:template> 
 
<xls:apply-templates match="Destinataire">
Destinataire : <xls:value-of select="nom" />
Domaine : <xls:value-of select="domaine" />
</xsl:template> 
 
<xls:apply-templates match="Contenu">
//...
</xsl:template> 
</xsl:stylesheet>
Reply With Quote