<xsl:output method="xhtml" encoding="ISO-8859-1" indent="yes"/>
<xsl:param name="repository" select="document(.)"/>
+ <!-- Variables -->
+ <xsl:variable name="page-format" select="'paysage'"/>
+
<!-- pour eviter les sorties parasites de tags non matches -->
<xsl:template match="*"> </xsl:template>
<xsl:template match="/n:Bourses">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <style> body { font-family: verdana, sans-serif; font-size: 10px; } h1 { font-size: 18px;
+ <style type="text/css" media="all"> body { font-family: verdana, sans-serif; font-size: 10px; } h1 { font-size: 18px;
font-weight:bold; } table thead th { text-align: center; font-size: 11px; } table tbody tr td {
font-size: 10px; border: 0px } div#emetteur { position: absolute; top: 10px; left: 10px; }
div#emetteur-coordonnees { padding: 8px; border-style: solid; border-width: 1px; border-color:
cell-spacing: 1px; } table#beneficiaire td, table#beneficiaire th { background-color: #CCCCCC;
} table#recap { width: 100%; background-color: #000000; cell-spacing: 1px; } table#recap th {
background-color: #AAAAAA ; font-weight: bold; valign:center ; } table#recap td { background-color:
- #FFFFFF; }
+ #FFFFFF;}
+ <xsl:choose>
+ <xsl:when test="$page-format eq 'paysage'">@page { size: 297mm 210mm; }</xsl:when>
+ <xsl:otherwise>@page { size: 210mm 297mm; }</xsl:otherwise>
+ </xsl:choose>
</style>
</head>
<body>