Bonjour je voudrais savoir s'il existe en xslt ou css des
balises spéciales pour formater ca page html xml de façon a l'imprimer sans coupure ni url enfin comme à l' écran
Merci d'avance
Version imprimable
Bonjour je voudrais savoir s'il existe en xslt ou css des
balises spéciales pour formater ca page html xml de façon a l'imprimer sans coupure ni url enfin comme à l' écran
Merci d'avance
J'ai trouvé en css mais pas en xslt
ca n'existe pas ?
Xslt ne fait pas de "presentation" , c'est in langage qui permet de "transformer".
Veux tu parler de xsl-fo qui permet la production de pdf par exemple ?
bin chez pas j'ai fait un fichier xslt pour faire de la présentation mais ce n'était
peu être que du code css intégré dans xslt
voici le code:Code:
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138 <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>Fiche projet</title> </head> <body style="background-color:#e4e79d;margin: 0;text-align: center;"> <xsl:for-each select="FICHE/PROJETS/PROJET"> <div style="width:770px; padding:5px;margin-top:10px; margin-bottom:10px; margin-right:auto;margin-left:auto; border:5px double #1f972b;color:red;background-color:white;font-weight:bold; text-align:left; font-size:18pt"> <xsl:apply-templates select="nomcanton" /> <hr /> <xsl:apply-templates select="nomcommune" /> <hr /> <xsl:apply-templates select="objet" /> <hr /> <xsl:apply-templates select="coutprevu" /> <hr /> <xsl:apply-templates select="coutreel" /> <hr /> <xsl:apply-templates select="datedemande" /> <hr /> <xsl:apply-templates select="subvention" /> <hr /> <xsl:apply-templates select="datesubvention" /> <hr /> <xsl:apply-templates select="coutaide" /> <hr /> <xsl:apply-templates select="commentaire" /> </div> </xsl:for-each> </body> </html> </xsl:template> <xsl:template match="nomcanton"> Nom canton : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="." disable-output-escaping="yes"/> </div> </xsl:template> <xsl:template match="nomcommune"> Nom commune : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="." disable-output-escaping="yes"/> </div> </xsl:template> <xsl:template match="objet"> Objet : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="." disable-output-escaping="yes"/> </div> </xsl:template> <xsl:template match="coutprevu"> Cout prevu : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="."/> € </div> </xsl:template> <xsl:template match="coutreel"> Cout reel : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="."/> € </div> </xsl:template> <xsl:template match="datedemande"> Date de demande : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="."/> </div> </xsl:template> <xsl:template match="subvention"> Subvention accordee par: <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center;"> <xsl:value-of select="." disable-output-escaping="yes"/> </div> </xsl:template> <xsl:template match="datesubvention"> Date d'attribution : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="."/> </div> </xsl:template> <xsl:template match="coutaide"> Subvention accordee : <div style="font-family:Verdana, Arial; font-size:15pt;font-weight:bold;color:black;text-align:center"> <xsl:value-of select="."/> € </div> </xsl:template> <xsl:template match="commentaire"> Commentaire : <div style="font-family:Verdana, Arial; font-size:12pt;font-weight:normal;color:black;text-align:justify "> <xsl:value-of select="." disable-output-escaping="yes" /> </div> </xsl:template> </xsl:stylesheet>
Ton xslt fabrique du html, tout comme un langage serveur (asp,php,jsp....) donc il faut que tu trouve une solution html ou css pour ton pb