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] version imprimable


Sujet :

XSL/XSLT/XPATH XML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    296
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 296
    Par défaut [XSLT] 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

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    296
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 296
    Par défaut en css mais pas en xslt
    J'ai trouvé en css mais pas en xslt
    ca n'existe pas ?

  3. #3
    Rédacteur

    Avatar de Erwy
    Homme Profil pro
    Développeur Web
    Inscrit en
    Novembre 2003
    Messages
    4 967
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Novembre 2003
    Messages : 4 967
    Par défaut
    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 ?

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    296
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 296
    Par défaut XSLT Présentation ?
    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 : 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
    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>

  5. #5
    Rédacteur

    Avatar de Erwy
    Homme Profil pro
    Développeur Web
    Inscrit en
    Novembre 2003
    Messages
    4 967
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Novembre 2003
    Messages : 4 967
    Par défaut
    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

Discussions similaires

  1. [Spip] Fonctions "version imprimable" et "formuler commentaire"
    Par baptistedanel dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 5
    Dernier message: 16/02/2008, 14h29
  2. Réaliser la version imprimable d'une page web
    Par samsso2006 dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 07/02/2007, 18h37
  3. [CSS] Version imprimable : imprimer un arrière-plan
    Par PtiBubu dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 15/11/2005, 15h16
  4. Faire une "Version Imprimable"
    Par Pouf dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 23/03/2005, 15h15

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