[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Select and display a node

Subject: Select and display a node
From: Sébastien Bicaïs <s.bicais@xxxxxxxxxxx>
Date: Wed, 9 Feb 2005 09:57:50 +0100
display anode
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:

<rss>
	<channel>
		<item id="24874">
			<title>News 1</title>
			<page id="456">
			<pageNumber>1</pageNumber>
				<layout>1</layout>
				<title>qsdqsd</title>
				<date />
			</page>
			<page id="457">
				<pageNumber>1</pageNumber>
				<layout>1</layout>
				<title>qsdqsd</title>
				<date />
			</page>
		</item>
	</channel>
</rss>



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

I have tried the following:

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

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


Any suggestion welcome

Thanx,

seb

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.