Valid XHTML    Valid CSS2    

Listing du fichier xml2dar_trim.xsl

 

00001     <?xml version="1.0" encoding="ISO-8859-1"?>
00002     <!-- xml2dar.xsl : n'affiche que les données -->
00003     <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
00004     <xsl:output method="text" encoding="ISO-8859-1" />
00005     
00006     <xsl:variable name="sautdeLigne">
00007     <xsl:text>
00008     </xsl:text>
00009     </xsl:variable>
00010     
00011      <xsl:template match="/">
00012      <xsl:apply-templates select="//NOMSCOL|//LIGNEDATA" />
00013      </xsl:template>
00014     
00015      <xsl:template match="NOMSCOL">
00016      <xsl:value-of select="concat(
00017      substring-after(substring-after(.,' '),' '),
00018      $sautdeLigne)" />
00019      </xsl:template>
00020     
00021      <xsl:template match="LIGNEDATA">
00022      <xsl:value-of select="concat(
00023      substring-after(substring-after(.,' '),' '),
00024      $sautdeLigne)" />
00025      </xsl:template>
00026     
00027     </xsl:stylesheet>

Pour ne pas voir les numéros de ligne, ajoutez &nl=non à la suite du nom du fichier.

 

 

retour gH    Retour à la page principale de   (gH)