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

Servlets/JSP Java Discussion :

Servlet Display XML file in ie


Sujet :

Servlets/JSP Java

  1. #1
    Membre habitué
    Inscrit en
    Novembre 2009
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 8
    Par défaut Servlet Display XML file in ie
    Bonjour,

    OS : Windows XP SP2
    Serveur : Tomcat 6.0
    Java : 1.6
    Env : Eclipse Ganymede

    Je souhaiterais afficher une fichier XML qui contient une référence vers un fichier XSL pour la transformation.
    Pour cela, je voudrais que la servlet prenne en paramètre (via l'adresse web) le fichier XML à Charger (Pour le moment la transformation est faite par le navigateur et non par la servlet.

    Merci d'avance pour votre aide:
    Si vous pouviez m'indiquer le même principe avec une page JSP.
    Et pour vous le choix entre JSP et Servlet : que sont les avantages de l'un par rapport à l'autre.

    Merci encore.

  2. #2
    Membre habitué
    Inscrit en
    Novembre 2009
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 8
    Par défaut
    Bonjour,

    Je n'ai rien trouvé sur le net permettant directement d'afficher le fichier XML dans un servlet.
    Malgré que mon fichier XML contient deja les instructions de transformation Ref Vers XSL file.
    J'ai trouvé le code suivant qui me permet par la servlet d'effectuer la la transformation XSL.

    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
     
    /**
     * Servlet implementation class ShowReportFile
     */
    public class ShowReportFile extends HttpServlet {
    	private static final long serialVersionUID = 1L;
     
     
        // initialize the Servlet.  This code is executed once.
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
     
            ServletContext context = config.getServletContext();
     
     
        }
        /**
         * @see HttpServlet#HttpServlet()
         */
        public ShowReportFile() {
            super();
            // TODO Auto-generated constructor stub
        }
        public void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
    	  {
    	    responsePage("GET", response);
    	  }
     
      public void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
    	  {
    	    responsePage("POST", response);
    	  }
     
     
        private void responsePage (String getOrPost, HttpServletResponse response)
        throws ServletException, IOException{
        	// output an HTML page
    		response.setContentType("text/html");
    		String webAppPath = getServletContext().getRealPath( "/WEB-INF/liste/" );
        	 TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance();
    		 // Get the XML input document and the stylesheet, both in the servlet engine document directory
    		 Source xmlSource = new javax.xml.transform.stream.StreamSource(webAppPath+"/AIT_Gestion_OUTILS_PLANNING_ACTION_S17_2008.xml");
    		 Source xslSource = new javax.xml.transform.stream.StreamSource(webAppPath+"/_UpgradeReport_Files/UpgradeReport.xslt");
     
     
             // Generate the transformer.
             Transformer transformer;
             response.setContentType("text/html");
             PrintWriter out = response.getWriter();
    		try {
    			transformer = tFactory.newTransformer(xslSource);
    			 // Perform the transformation, sending the output to the response.
    	         transformer.transform(xmlSource,new StreamResult(out));
    		} catch (TransformerConfigurationException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		} catch (TransformerException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}
        }
     
    }
    Merci à vous si vous avez d'autres choses.

  3. #3
    Membre habitué
    Inscrit en
    Novembre 2009
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 8
    Par défaut
    Bonjour,

    La méthode présentée au dessus permet d'afficher le contenu de mon XML avec une mise en page XSL, cependant le CSS associé n'est pas pris en compte.

    Auriez vous une astuce.

    Merci d'avance

  4. #4
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    Que contient le fichier xsl ?
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  5. #5
    Membre habitué
    Inscrit en
    Novembre 2009
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 8
    Par défaut
    Bonjour,

    Mon fichier XSL contient des liens sur des fichiers CSS, des images et un peu de javascript.
    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
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
     
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
     
    	<xsl:output method="html"/>
    	<xsl:template match="*">
    		<xsl:variable name="SemaineID" select="Properties/Property[@Name='Semaine']/@Value"/>
    		<xsl:variable name="eMail" select="Properties/Property[@Name='email']/@Value"/>
            <html>
                <head>
                    <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8"/>
                   	<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css"/>
    				<link rel="stylesheet" href="_UpgradeReport_Files\ieblink.css" media="all"  type="text/css" />
    				<link rel="stylesheet" href="_UpgradeReport_Files\maven-theme.css" media="all"  type="text/css" />
    				<link rel="stylesheet" href="_UpgradeReport_Files\maven-base.css" media="all" type="text/css" />
    				<link rel="stylesheet" href="_UpgradeReport_Files\site.css" media="all" type="text/css" />
     
     
                    <title>Gestion des outils AIT</title>			
    				<script type="text/javascript">
                                            
                                            var temps = 60;
                                            var etat = 0;
                                            var aClignote = new Array();
                                            var i = 0;
                                                    
                                            
                        function outliner () {
                            var oMe = window.event.srcElement;
                            //get child element
                            var child = document.all[event.srcElement.getAttribute("child",true)];
                            //if child element exists, expand or collapse it.
                            if (null != child)
                                child.className = child.className == "collapsed" ? "expanded" : "collapsed";
                        }
     
                        function changepic() {
                            var uMe = window.event.srcElement;
                            var check = uMe.src.toLowerCase();
                            if (check.lastIndexOf("upgradereport_plus.jpg") != -1)
                            {
                                uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.jpg"
                            }
                            else
                            {
                                uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.jpg"
                            }
                        }
                                            
                                            function init () {
                                                    if (document.getElementsByTagName) {
                                                            aClignote = retourne_classes ("clignote"); 
                                                            boucle ();
                                                    }
                                                    
                                            }
     
                                            function inituser(){
                                                    
                                            
                                            }
                                            
                                            function Lien() {
                                                    i = document.Choix.Liste.selectedIndex;
                                                    if (i == 0) return;
                                                    url = document.Choix.Liste.options[i].value;
                                                    parent.location.href = url;
                                            }       
                                    
                    </script>
                </head>
                <body class="composite" topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();" onload="inituser();">
                    <h1 _locID="ConversionReport">Gestion des outils AIT: <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/>	
    				</h1>
    				<IMG  border="0" src="_UpgradeReport_Files/logo.gif"/>
    <xsl:variable name="PreviousSemaineID" select="Properties/Property[@Name='Previous']/@Value"/>
    						<xsl:variable name="NextSemaineID" select="Properties/Property[@Name='Next']/@Value"/>
    		        <p> 
    					<span class="note">
    						<b>Date du rapport: </b>  <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/><br></br>
    						<b>Semaine: </b>  <xsl:value-of select="Properties/Property[@Name='Semaine']/@Value"/><br></br>
    						<br></br>
    						<br></br>
    						<td wrap="true" class="IssueOne"><u>Sommaire: </u></td>
    						<br></br>
    						<span id="topbar">
    						<td wrap="true" class="issuetable">		<a href="#Sondage">Sondage Utilisateurs...</a><br></br></td>
    						<td wrap="true" class="issuetable"> 	<a href="#Doc">References Documentaires...</a><br></br></td>
    						<td wrap="true" class="issuetable"> 	<a href="#Alerte">Alertes...</a><br></br></td>
    						<td wrap="true" class="issuetable"> 	<a href="#Rapport">Rapport...</a><br></br></td>
    						<td wrap="true" class="issuetable"> 	<a href="#Etude">Etudes en cours...</a><br></br></td>
    						</span>
    					</span>
    				</p>
     
     
     
    				<hr></hr>
    				 <p align="center"> 
    					<span align="center" class="note">
    						<A align="left" HREF="{$PreviousSemaineID}" ><IMG align="left" border="0" src="_UpgradeReport_Files/previous.gif"/></A>
    						<FORM NAME="Choix">
    							<SELECT NAME="Liste" onChange="Lien()">
    								<OPTION VALUE="">Selection Semaine</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S49_2007.xml">Semaine 749</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S50_2007.xml">Semaine 750</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S51_2007.xml">Semaine 751</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S01_2008.xml">Semaine 801</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S02_2008.xml">Semaine 802</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S03_2008.xml">Semaine 803</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S04_2008.xml">Semaine 804</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S05_2008.xml">Semaine 805</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S06_2008.xml">Semaine 806</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S07_2008.xml">Semaine 807</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S08_2008.xml">Semaine 808</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S09_2008.xml">Semaine 809</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S10_2008.xml">Semaine 810</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S11_2008.xml">Semaine 811</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S12_2008.xml">Semaine 812</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S13_2008.xml">Semaine 813</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S14_2008.xml">Semaine 814</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S15_2008.xml">Semaine 815</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S16_2008.xml">Semaine 816</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S17_2008.xml">Semaine 817</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S18_2008.xml">Semaine 818</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S19_2008.xml">Semaine 819</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S20_2008.xml">Semaine 820</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S21_2008.xml">Semaine 821</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S22_2008.xml">Semaine 822</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S23_2008.xml">Semaine 823</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S24_2008.xml">Semaine 824</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S25_2008.xml">Semaine 825</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S26_2008.xml">Semaine 826</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S27_2008.xml">Semaine 827</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S28_2008.xml">Semaine 828</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S29_2008.xml">Semaine 829</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S30_2008.xml">Semaine 830</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S31_2008.xml">Semaine 831</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S32_2008.xml">Semaine 832</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S33_2008.xml">Semaine 833</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S34_2008.xml">Semaine 834</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S35_2008.xml">Semaine 835</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S36_2008.xml">Semaine 836</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S37_2008.xml">Semaine 837</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S38_2008.xml">Semaine 838</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S39_2008.xml">Semaine 839</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S40_2008.xml">Semaine 840</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S41_2008.xml">Semaine 841</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S42_2008.xml">Semaine 842</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S43_2008.xml">Semaine 843</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S44_2008.xml">Semaine 844</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S45_2008.xml">Semaine 845</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S46_2008.xml">Semaine 846</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S47_2008.xml">Semaine 847</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S48_2008.xml">Semaine 848</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S49_2008.xml">Semaine 849</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S50_2008.xml">Semaine 850</OPTION>
    								<OPTION VALUE="\\castore01\outils_ait\Proc_Ait\Gestion des outils AIT\AIT_Gestion_OUTILS_PLANNING_ACTION_S51_2008.xml">Semaine 851</OPTION>
    							</SELECT>
    						</FORM>
    						<A align="right" HREF="{$NextSemaineID}"><IMG  align="right" border="0" src="_UpgradeReport_Files/next.gif"/></A>
    					</span>
    				</p>
    				<br></br>
    				<br></br>
    				<a name="Sondage"/>
    				<xsl:apply-templates select="Sondage"/>
    				<br></br>
    				<br></br>
    				<HR></HR>
    				<p>
    					<a name="Doc"/>
    					<table class="note">
    						<tr>
    							<td nowrap="1">
    								<b><u>References Documentaires:</u></b>
    							</td>
    						</tr>
    					</table>
    				</p>
                    <xsl:apply-templates select="ReferenceDocumentaire"/>
    				<br></br>
    				<br></br>
    				<HR></HR>
    				<p>
    					<a name="Alerte"/>
    					<table class="note">
    						<tr>
    							<td nowrap="1">
    								<b><u>Alertes:</u></b>
    							</td>
    						</tr>
    					</table>
    				</p>
                    <xsl:apply-templates select="Alerts"/>
    				<br></br>
    				<br></br>
    				<HR></HR>
    				<p>
    					<a name="Rapport"/>
    					<table class="note">
    						<tr>
    							<td nowrap="1">
    								<b><u>Rapport:</u></b>
    							</td>
    						</tr>
    					</table>
    				</p>
                    <xsl:apply-templates select="Events"/>
    				<p>
    					<table class="note">
    						<tr>
    							<td nowrap="1">
    								<b>Fin du rapport.</b>
    							</td>
    						</tr>
    					</table>
    				</p>
    				<br></br>
    				<p align="center"> 
    					<span align="center" class="note">
    						<a  align="center" HREF="mailto:Alexandre Giraudi/N-S/ALCATEL-SPACE"><xsl:value-of select="$eMail"/></a>
    					</span>
    				</p>
    				<br></br>
    				<HR></HR>
    				<p>
    					<a name="Etude"/>
    					<table class="note">
    						<tr>
    							<td nowrap="1">
    								<b><u>Etudes en cours:</u></b>
    							</td>
    						</tr>
    					</table>
    				</p>
    				<br></br>
    				<xsl:apply-templates select="Etudes"/>
                </body>
            </html>
        </xsl:template>
     
    	<xsl:template match="Alerts">
    		<xsl:for-each select="Alert">
    			<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    				<tr>
    					<td wrap="true" class="Header"><IMG  border="0" src="_UpgradeReport_Files/alert.gif"/>Alerte : <xsl:value-of select="@Id"/></td>
    				</tr>
    				<tr>
    					<td wrap="true" class="contentRed"><xsl:value-of select="@Title"/></td>
    				</tr>
    				<tr>
    					<td wrap="true" class="issueBleu"><PRE><xsl:value-of select="@Description"/></PRE></td>
    				</tr>
    			</table>	
    			<xsl:for-each select="Ref">
    				<xsl:variable name="DocLink" select="@URL"/>
    				<tr>
    					<td><u><xsl:value-of select="@Label"/>: <A align="right" HREF="{$DocLink}" target="Voir">Voir...</A></u></td>
    				</tr>
    			</xsl:for-each>
    			<br></br>
    		</xsl:for-each>
    	</xsl:template>
     
    	<xsl:template match="Etudes">
    		<xsl:for-each select="Travaux">
    			<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    				<tr>
    					<td wrap="true" class="issuetitle">
    						Etude : <xsl:value-of select="@Titre"/>
    					</td>
    				</tr>
    				<tr>
    					<td wrap="true" class="issueRouge">Reunion: <xsl:value-of select="Reunion/@Date"/></td>
    				</tr>
    				<tr>
    					<td wrap="true" class="issueVert">Decision: <xsl:value-of select="Decision/@Text"/></td>
    				</tr>
    				<tr>
    					<td wrap="true" class="content"><PRE><xsl:value-of select="Description/@Text"/></PRE></td>
    				</tr>
    				<xsl:for-each select="Lien">
    								<xsl:variable name="LinkId" select="@Link"/>
    								<tr>
    									<td wrap="true" class="issueNoir" width="50%" style="border-bottom:solid 1 lightgray">Reference:  <A align="right" HREF="{$LinkId}" target="Voir"><xsl:value-of select="@Label"/></A></td>
    								</tr>
    							</xsl:for-each>
    				<tr>
    					<td><u>Participants:</u></td>
    				</tr>
    				<xsl:for-each select="Participants/Name">	
    					<tr>
    						<td wrap="true" class="issueVert"><xsl:value-of select="@Name"/></td>
    					</tr>
    				</xsl:for-each>
    			</table>	
    			<br></br>
    		</xsl:for-each>
    	</xsl:template>
     
    	<xsl:template match="ReferenceDocumentaire">
    		<xsl:for-each select="Categorie">
    			<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    				<tr>
    					<td wrap="true" class="issuetitle">Categorie : <xsl:value-of select="@Name"/></td>
    				</tr>
    				<xsl:for-each select="Ref">
    					<xsl:variable name="DocLink" select="@URL"/>
    					<xsl:variable name="IsNew" select="@New"/>
    						<xsl:choose>
    							<xsl:when test="$IsNew='False'">
    							<tr>
    								<td><u><xsl:value-of select="@Label"/>: <A align="right" HREF="{$DocLink}" target="Voir">Voir...</A></u></td>
    							</tr>
    							</xsl:when>
    							<xsl:otherwise>
    							<tr>
    								<td><u><blink><xsl:value-of select="@Label"/>: <A align="right" HREF="{$DocLink}" target="Voir">Nouveau...</A></blink></u></td>
    							</tr>
    							</xsl:otherwise>
    						</xsl:choose>
    				</xsl:for-each>
    			</table>	
    			<br></br>
    		</xsl:for-each>
    	</xsl:template>
     
    	<xsl:template match="Sondage">
    			<p>
    				<table class="note">
    					<tr>
    						<td nowrap="1">
    							<b><u>Sondage utilisateurs:</u></b>
    						</td>
    					</tr>
    				</table>
    			</p>
    			<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    				<tr>
    					<td wrap="true" class="issuetitle"><xsl:value-of select="@Titre"/></td>
    				</tr>
    				<tr>
    					<td wrap="true" class="issueRouge"><xsl:value-of select="Sondes/@Nombre"/></td>
    				</tr>
    			</table>
    			<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    				<tr>
    					<td wrap="true" class="issuehdr">Sujet</td>
    					<td wrap="true" class="issuehdr">Score 1-4</td>
    				</tr>
    				<xsl:for-each select="Item">
    					<tr>
    						<td wrap="true" class="content"><PRE><xsl:value-of select="@Text"/></PRE></td>
    						<td wrap="true" class="contentCenter" ><xsl:value-of select="@Valeur"/></td>
    					</tr>
    				</xsl:for-each>
    			</table>
    			<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    				<tr>
    					<td class="note" nowrap="1">1:Fortement Prioritaire  2:Prioritaire  3:Prioritaire(A court terme)  4: Non Prioritaire</td>
    				</tr>
    			</table>			
    			<br></br>
    	</xsl:template>
     
     
    	<xsl:template match="Events">
    		<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
    			<xsl:variable name="source-id" select="@Project"/>
    			<tr>
    				<td wrap="true" class="header" >
    				<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" alt="Voir/Cacher la section" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.jpg" width="9"><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A><xsl:value-of select="@Project"/> 
    				</td>
    			</tr>
    			<tr class="collapsed" bgcolor="#ffffff">
    				<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
                    <td colspan="7">
                        <table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
    						<xsl:for-each select="Event">						
    							<td wrap="true" class="content"><xsl:value-of select="@Action"/>: <b><xsl:value-of select="@State"/></b> <br></br><li></li>Debut: <xsl:value-of select="@DateDebut"/><br></br><li>Fin       : </li><xsl:value-of select="@DateFin"/>
    							</td>  
    							<xsl:for-each select="Item">
    									<xsl:choose>
    										<xsl:when test="@Color='Bleu'">
    											<tr>
    												<td wrap="true" class="issueBleu" style="border-bottom:solid 1 lightgray"><xsl:value-of select="@Indice"/>:   <xsl:value-of select="@Text"/></td>
    											</tr>
    										</xsl:when>
    										<xsl:when test="@Color='Vert'">
    											<tr>
    												<td wrap="true" class="issueVert" style="border-bottom:solid 1 lightgray"><xsl:value-of select="@Indice"/>:   <xsl:value-of select="@Text"/></td>
    											</tr>
    										</xsl:when>
    										<xsl:when test="@Color='Rouge'">
    											<tr>
    												<td wrap="true" class="issueRouge" style="border-bottom:solid 1 lightgray"><xsl:value-of select="@Indice"/>:   <xsl:value-of select="@Text"/></td>
    											</tr>
    										</xsl:when>
    										<xsl:otherwise>
    											<tr>
    												<td wrap="true" class="issueNoir" width="50%" style="border-bottom:solid 1 lightgray"><xsl:value-of select="@Indice"/>:   <xsl:value-of select="@Text"/></td>
    											</tr>
    										</xsl:otherwise>
    									</xsl:choose>				
    							</xsl:for-each>
    							<xsl:for-each select="Lien">
    								<xsl:variable name="LinkId" select="@Link"/>
    								<tr>
    									<td wrap="true" class="issueNoir" width="50%" style="border-bottom:solid 1 lightgray">Reference:  <A align="right" HREF="{$LinkId}" target="Voir"><xsl:value-of select="@Label"/></A></td>
    								</tr>
    							</xsl:for-each>
    						</xsl:for-each>
    					</table>
    				</td>
    			</tr>
    	    </table>
    	</xsl:template>
     
     
     
     
     
     
    </xsl:stylesheet>
    Merci d'avance pour l'aide.

  6. #6
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    A moins de générer toujours ta (ou tes) page à l'endroit qui va bien
    ...
    ......_UpgradeReport_Files
    .........UpgradeReport.css
    .........autres.css

    ......laPage.html
    le chemin des css semble mal fait.
    Il serait préférable d'utiliser un chemin du type
    /premierRep/deuxiemeRep/mon.css

    OU

    ./premierRep/deuxiemeRep/mon.css
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

Discussions similaires

  1. [XML file]Lecture - ecriture :Bienvenue à votre imagination
    Par Terminator dans le forum Format d'échange (XML, JSON...)
    Réponses: 2
    Dernier message: 27/04/2006, 22h53
  2. [Servlet][bean XML]le chemin absolu
    Par zaoueche dans le forum Servlets/JSP
    Réponses: 6
    Dernier message: 13/02/2006, 15h51
  3. [Quartz][Tomcat] Jobs.xml file not found exception
    Par Arnaud Giuliani dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 05/08/2005, 09h20
  4. The XML file cannot be displayed
    Par UVCR dans le forum XMLRAD
    Réponses: 2
    Dernier message: 08/03/2005, 16h26
  5. Xml file system storage
    Par sebA dans le forum Décisions SGBD
    Réponses: 1
    Dernier message: 30/09/2004, 07h49

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