IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

XSL/XSLT/XPATH XML Discussion :

[XSLT] Problème affichage sous Firefox et pour IE OK [Débutant(e)]


Sujet :

XSL/XSLT/XPATH XML

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    163
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2003
    Messages : 163
    Points : 90
    Points
    90
    Par défaut [XSLT] Problème affichage sous Firefox et pour IE OK
    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>
    Cordialement

    Fred ;-)

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    163
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2003
    Messages : 163
    Points : 90
    Points
    90
    Par défaut
    Personne n'a pas une idée concernant ce problème?

    Merci de m'aider
    Cordialement

    Fred ;-)

Discussions similaires

  1. [XSLT] problème affichage dans Firefox Recherche :
    Par Scipion80 dans le forum XSL/XSLT/XPATH
    Réponses: 2
    Dernier message: 30/09/2009, 20h07
  2. [HTML] HTML problème d'affichage sous firefox
    Par poupouny dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 12/12/2006, 13h40
  3. [html] Problème d'affichage sous FireFox
    Par fourgeaud dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 17/11/2006, 09h04
  4. Problème d'affichage sous Firefox
    Par palassou dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 03/10/2006, 09h43
  5. [débutante] problème affichage sous Firefox
    Par silversky dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 16/09/2005, 13h58

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo