"Remonter" dans un fichier XML

[email protected]
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Bonjour,

J'ai un fichier XML de la sorte

<liste>
	<theme id="Spécial : Alex Mucchielli">
		<fichier>articles/article_dynamique.xml</fichier>
		<fichier>articles/article_articulation.xml</fichier>
	</theme>
</liste>

Afin de lister les articles je fais :

<xsl:template match="liste">

<xsl:apply-templates select="document(theme//fichier)/ARTICLE">
<xsl:sort select="." order="descendant"/>
</xsl:apply-templates>

</xsl:template>

<xsl:template match="ARTICLE">

<p><b><xsl:value-of select="id" /></b> - <i><xsl:value-of
select="id/@auteur" /></i>
<br/>Theme : <xsl:value-of select="$fichier_nom" /></p>
<p><xsl:value-of select="resume" /></p>
</xsl:template>

</xsl:stylesheet>

Le probleme c'est que je souhaiterais remonter dans le fichier XML pour
afficher le theme mais aussi le nom du fichier a coté de chaques titres.

J'ai bien peur que ca soit impossible... Je me trompe ?

MERCI de votre aide.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.