bonjour,
je suis débutant en xslt je voudrai résoudre un prb
j ai plusieurs fichier en xml(offre1,offre2,.....)

code d un fichier offre en xml:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
<lheo>
  <offres>
    <intitule-action>  
    Administrateur de réseaux d'entreprise 
    </intitule-action>  
  ,,,,,,,,, ,,,,,,,,,,,,, ,,,,,,,,,,,,, 
  </offres> 
</lheo>


j ai créé un flux atom voila la structure dee mon fichier en html:

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
<?xml version="1.0" encoding="utf-8" ?> 
<?xml-stylesheet type="text/xsl" href="Descjournal.xsl"?> 
<feed xmlns="http://www.w3.org/2005/Atom" > 
  <entry> 
    <title> 
      offre0.xml 
    </title> 
    <link href="offre0.xml" /> 
    <summary> 
      <title> 
      </title> 
    </summary>
  </entry> 
  <entry> 
    <title> 
      offre1.xml 
    </title> 
    <link href="offre1.xml" /> 
    <summary> 
      <title> 
      </title> 
    </summary>
  </entry>
.......
.....
</feed>
mon code en xslt :


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
<xsl:template match="atom:feed">
    HELLO
    <xsl:for-each select="atom:entry/atom:link">
      <xsl:variable name="contenulien" select="@href" />
<!--<a href="#{id({@ref})/title}">-->
      <xsl:variable name="doc" select="document($contenuli::en=@contenulien)"/>
      <xsl:apply-templates select="$doc/lheo"/>
    </xsl:for-each>
  </xsl:template>
 
  <xsl:template match="lheo">
    <tr> 
      <td>
	<b><P align="left"><a href="{title}"><xsl:value-of select="offres/intitule-action"/></a></P></b>
      </td>
    </tr>
  </xsl:template>
Merci pour votre aide précieuse