[xsl] Select and display a node

Subject: [xsl] Select and display a node
From: Sébastien Bicaïs <s.bicais@xxxxxxxxxxx>
Date: Wed, 9 Feb 2005 09:57:50 +0100
Hi all,

Sorry for this newbie issue, but I was not able to find any suitable solution
so far.

I have an xml looking like that:

		<item id="24874">
			<title>News 1</title>
			<page id="456">
				<date />
			<page id="457">
				<date />

I have a XSL document that will display a page detail (the page id being a

I have tried the following:

<xsl:template match="rss/channel" >
<xsl:for-each select="item/page[@id=456]">
	id = <xsl:value-of select="@id"/>

But when I run this, I get "id = 456" twice..

Any suggestion welcome



Current Thread