Article View: fr.comp.text.xml
Article #493Re: présenter un fichier XML en XHTML
From: Alexandre Drolet
Date: Thu, 02 Nov 2006 16:05
Date: Thu, 02 Nov 2006 16:05
69 lines
3710 bytes
3710 bytes
Bonjour, XSLT est utilis� pour d�finir diverses transformations devant �tre appliqu�es � des fichiers XML. Par exemple, le langage de transformation XSLT permet de d�finir les transformations suivantes : 1)transformation d�un fichier XML en fichier au format XHTML 2)transformation d�un fichier XML en fichier au format RTF (Rich Text Format) 3)transformation d�un fichier XML en un autre fichier au format XML (ayant une structure diff�rente) Employ� avec XSL-FO, tu peux aussi transformer ton XML en fichier PDF. http://xmlfr.org/w3c/TR/xslt/ http://www.w3schools.com/xsl/default.asp samuel.besnard@gmail.com a �crit : > Bonjour, > > Voici mon probl�me : > > J'ai une application java qui produit un fichier XML. > Je souhaite transformer ce fichier XML en XHTML de mani�re � avoir > une simple transposition XHTML pr�sentant mon XML de mani�re > sympathique. > > exemple en entr�e : > <?xml version="1.0" encoding="UTF-8"?> > <a> > <b> > </b> > <c> > <d/> > <e/><Deleted>AA</Deleted> > </c> > </a> > > exemple en sortie : > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title></title> > </head> > <body> > <?xml version="1.0" encoding="UTF-8"?><br> > <a><br> > <b><br> > </b><br> > <c><br> > <d/><br> > <e/><Deleted>AA</Deleted><br> > </c><br> > </a><br> > </body> > </html> > > Petite cerise sur le gateau, il me faudrait �galement de l'indentation > et de la coloration syntaxique de ce fichier XHTML pour qu'il puisse > �tre lu agr�ablement. > > J'ai eu beau rechercher sur le net, je n'ai rien trouv� qui permette > de faire �a. > > Merci pour les infos, >
Technical Details
Message-ID:
<M_6dnRFs2bJsWdXYnZ2dnUVZ_oydnZ2d@ulaval.ca>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.wnet.ua!news.ett.com.ua!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.freenet.de!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!nx02.iad01.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.ulaval.ca!news.ulaval.ca.POSTED!not-for-mailReferences:
<1159893368.154044.97930@m73g2000cwd.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114f60,8ac1cd75ff02a32 X-Google-Attributes: gid114f60,public X-Google-Language: FRENCH,CP1252 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.wnet.ua!news.ett.com.ua!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.freenet.de!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!nx02.iad01.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.ulaval.ca!news.ulaval.ca.POSTED!not-for-mail NNTP-Posting-Date: Wed, 01 Nov 2006 10:01:53 -0600 Date: Thu, 02 Nov 2006 11:05:22 -0500 From: Alexandre Drolet <listes@alexinformatique.com> User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: fr.comp.text.xml Subject: Re: présenter un fichier XML en XHTML References: <1159893368.154044.97930@m73g2000cwd.googlegroups.com> In-Reply-To: <1159893368.154044.97930@m73g2000cwd.googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <M_6dnRFs2bJsWdXYnZ2dnUVZ_oydnZ2d@ulaval.ca> Lines: 69 NNTP-Posting-Host: 132.203.162.216 X-Trace: sv3-rOLMBhtBEZbtUs5qqHjk2M+DyNGNz+VzfrEfI5CDQPxa4dmDBhKr04rX6PGEsMm2U6bqE/RZURVQi0d!IYJ2G1CvgPToWg1L8ItX945bqyMhngkJWEx0wwcBnzGLM2MLHLbwrV4BHoVQ0/KxRQ3gyRGLOYrh!cN13Snc2bw== X-Complaints-To: abuse@ulaval.ca X-DMCA-Complaints-To: abuse@ulaval.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32