🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9583

(XSL) voici un petit problème de d'affichage de texte ....

#9583
From: Lagaffe869
Date: Thu, 08 Mar 2001 10:57
57 lines
2051 bytes
voici un petit probl�me de d'affichage de texte, il me manque un bout ?

texte xml:


<para>
   un premier texte qui doit �videment etre affich�
   <image>
      <nom>image.jpg</nom>
      <copyright>societe SA</copyright>
   </image>
   La suite du texte qui ne s'affiche pas avec ma feuille :-((
</para>


feuille xsl:

  <xsl:template match="para"> 
    <xsl:value-of select="text()" />  <-- affiche le d�but mais pas la suite
   <xsl:apply-templates />   
  </xsl:template>  

* le traitement de l'image est � la fin, pour les curieux...



la balise  <xsl:value-of select="text()" /> affiche bien: 
" un premier texte qui doit �videment etre affich�"
mais pas
" La suite du texte qui ne s'affiche pas avec ma feuille :-(("
par contre je n'ai plus l'affichage du nom de l'image ainsi que du copyright
(merci Tom...)









(optionnel) 

----- traitement de la balise <image>
<xsl:template match="image">
    <xsl:apply-templates />
</xsl:template>
<xsl:template match="nom">
    <img>
      <xsl:attribute name="src">  
         <xsl:value-of select="."/>  
     </xsl:attribute>  
   </img>
</xsl:template>
<xsl:template match="copyright">
     <xsl:value-of select="."/>
</xsl:template>
Technical Details
Message-ID: <20010308055735.02958.00000038@ng-mc1.aol.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!audrey04.news.aol.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,a67bed23f4e431cd,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-03-08 03:00:04 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!audrey04.news.aol.com!not-for-mail
Lines: 60
X-Admin: news@aol.com
From: lagaffe869@aol.com (Lagaffe869)
Newsgroups: fr.comp.text.xml
Date: 08 Mar 2001 10:57:35 GMT
Organization: AOL, http://www.aol.fr
Subject: (XSL) voici un petit problème de d'affichage de texte ....
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <20010308055735.02958.00000038@ng-mc1.aol.com>