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 67
| <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/GGSELSQLXML/GGSQL">
<SCRIPT LANGUAGE="JavaScript"><xsl:comment><![CDATA[
//-----------------------------------------------------
function fprint ()
{
window.print();
}
//-----------------------------------------------------
function fquit ()
{
window.close();
}
//-----------------------------------------------------
]]></xsl:comment></SCRIPT>
<HTML>
<HEAD>
<BODY>
<p align="center"><font size="4" face="Arial" color="#0090AE">RAPPORT PARCELLAIRE</font></p>
<table width="100%" border="0">
<TR>
<xsl:apply-templates select="ROW[0]" mode="header"/>
</TR>
<xsl:for-each select="ROW">
<TR >
<xsl:apply-templates/>
</TR>
</xsl:for-each>
</table>
<br><br>
<p align="center">
<input type="button" value="Impression" onclick="fprint()" name="BPRINT" style="background-color: transparent"></input>
<input type="button" value="Quitter" onclick="fquit()" name="BQUIT" style="background-color: transparent"></input>
</p>
</br></br>
</BODY>
</HEAD>
</HTML>
</xsl:template>
<xsl:template match="ROW/*">
<td align="left">
<font face="Arial" size="2">
<xsl:value-of select="."/>
</font>
</td>
</xsl:template>
<xsl:template match="ROW/*" mode="header">
<td align="center">
<xsl:value-of select="name()"/>
</td>
</xsl:template>
</xsl:stylesheet> |
Partager