Bonjour à tout le monde, j'ai des problèmes concernant XML et XSLT
- Sous IE, je vois toutes l'affichage mise en forme de tableau, CSS, etc...
- Sous Firefox, je ne vois que la ligne du texte seulement sans mise en forme de tableau, ni de CSS
Merci de m'aider, je dois résoudre celà au plus vite possible.
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet type="text/xsl" href="http://serveur/lib/mail.xsl" ?> <notification> <type>Type notif</type> <host>proxy</host> <adress></adress> <service>Linux software RAID</service> <status>CRITICAL</status> <date>22-02-2007</date> <heure>12:45:12</heure> <tok>12</tok> <twa>2</twa> <tcr>1</tcr> <tun>1</tun> </notification>
Code xslt : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <title>Monitor-bis, notification du serveur Nagios</title> <style type="text/css" media="screen"> @import url(http://server/lib/mail.css); </style> </head> <body> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="600" align="center" valign="top"> <table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#F7F7F7"> <tr> <td height="20" colspan="2"><img src="http://server/lib/GD_cat.gif" alt=""></img></td> </tr> <tr> <td height="20" colspan="2"></td> </tr> <tr valign="middle"> <td width="160" height="20" class="tdleft">Type de notification: </td> <td width="440" height="20" colspan="-1" class="tdright"><xsl:template match="type"><xsl:value-of select="." /></xsl:template></td> </tr> <tr valign="middle"> <td width="160" height="20" class="tdleft">Date:</td> <td width="440" height="20" colspan="-1" class="tdright"><xsl:template match="date"><xsl:value-of select="." /></xsl:template> - <xsl:template match="heure"><xsl:value-of select="." /></xsl:template></td> </tr> <tr valign="middle"> <td width="160" height="20" class="tdleft">Serveur:</td> <td width="440" height="20" colspan="-1" class="tdright"><xsl:template match="host"><xsl:value-of select="." /></xsl:template></td> </tr> <tr valign="middle"> <td width="160" height="20" class="tdleft">Adresse:</td> <td width="440" height="20" colspan="-1" class="tdright"><xsl:template match="adress"><xsl:value-of select="." /></xsl:template></td> </tr> <tr valign="middle"> <td width="160" height="20" class="tdleft">Service:</td> <td width="440" height="20" colspan="-1" class="tdright"><xsl:template match="service"><xsl:value-of select="." /></xsl:template></td> </tr> <tr valign="middle"> <td width="160" height="20" class="tdleft">Status: </td> <td width="440" height="20" colspan="-1" class="<xsl:template match="status"><xsl:value-of select="." /></xsl:template>"><xsl:template match="status"><xsl:value-of select="." /></xsl:template></td> </tr> <tr> <td height="20" colspan="2"></td> </tr> <tr> <td height="20" colspan="2" bgcolor="#CCFFFF"><a href="http://server/index2.php?h=<xsl:template match="host"><xsl:value-of select="." /></xsl:template>&s=<xsl:template match="service"><xsl:value-of select="." /></xsl:template>">Liens vers extinfo de ce service <xsl:template match="service"><xsl:value-of select="." /></xsl:template></a></td> </tr> <tr> <td height="20" colspan="2" bgcolor="#CCFFFF"><a href="http://serveur/index2.php?h=<xsl:template match="host"><xsl:value-of select="." /></xsl:template>">Liens vers listes des problèmes de ce serveur</a></td> </tr> <tr> <td height="20" colspan="2" bgcolor="#CCFFFF"><a href="http://serveur/index2.php?d=allprob">Liens vers la listes des problèmes des divers hosts</a></td> </tr> </table> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td></td> </tr> </table> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="150" height="20" align="left" valign="middle" class="OK">OK = $TOTALSERVICESOK$</td> <td width="150" height="20" align="left" valign="middle" class="WARNING">WARNING = $TOTALSERVICESWARNING$</td> <td width="150" height="20" align="left" valign="middle" class="CRITICAL">CRITICAL = $TOTALSERVICESCRITICAL$</td> <td width="150" height="20" align="left" valign="middle" class="UNKNOWN">UNKNOWN = $TOTALSERVICESUNKNOWN$</td> </tr> </table> </td> </tr> </table> </body> </html>
Partager