Re: pb affichage element +xsl

Stephane Bortzmeyer <[email protected]> Thu, 1 Nov 2007 17:37:21 +0100
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
On Wed, Oct 31, 2007 at 05:13:42PM +0100,
 Stéphane ANCELOT <[email protected]> wrote 
 a message of 26 lines which said:

> j'ai un fichier xml qui contient :
> 
> <StartAddr>524288</StartAddr>
> <Count>2</Count>
> 
> comment faire dans une xsl pour le convertir de la facon suivante :
> StartAddr : 524288
> Count : 2

[Pas testé]

  <xsl:output method="text"/>

  <xsl:template match="StartAddr">
    <xsl:text>StartAddr :</xsl:text><xsl:value-of select="text()"/>
  </xsl:template>
 
  <!-- Idem pour Count -->