1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "*">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "">
<!ENTITY mdash "">
<!ENTITY ldquo "">
<!ENTITY rdquo "">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "">
]>
<xsl:stylesheet version="2.0" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/rapport">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
</style>
</head>
<body>
<h5><xsl:value-of select="societe"/></h5>
<h5><xsl:value-of select="nonUtilisateur"/>**
<xsl:value-of select="date"/>*
<xsl:value-of select="horloge"/></h5>
<h6 align="center"><u><xsl:value-of select="titre"/></u></h6>
<xsl:variable name="nomTable" select="'table'" />
<xsl:variable name="nbTable" select="count(//CODE_TABLE)" />
<xsl:variable name="nameOfTable" select="concat('table',$nbTable)" />
<xsl:value-of select="$nameOfTable"></xsl:value-of>
<xsl:variable name="tableNode" select="table2" /> //c 'est ici mon prbleme elle est en dure"table2" non pas une variable pour que sa soit dynamique
<!--xsl:for-each select="starts-with(table,exsl:node-set(current())))"-->
<xsl:call-template name="tableTemplate">
<xsl:with-param name="tableTitle" select="exsl:node-set($tableNode)"></xsl:with-param>
</xsl:call-template>
<!--/xsl:for-each-->
</body>
</html>
</xsl:template>
<xsl:template name="tableTemplate">
<xsl:param name="tableTitle"></xsl:param>
<h6>Table code :<xsl:value-of select="exsl:node-set($tableTitle)/CODE_TABLE"/>****
<xsl:value-of select="exsl:node-set($tableTitle)/LIB_TABLE"/></h6>
<h6>Format des codes instances :**<xsl:value-of select="exsl:node-set($tableTitle)/FORMAT_TABLE"/></h6>
</xsl:template>
</xsl:stylesheet> |
Partager