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: <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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Finding sequences of same, Dimitre Novatchev | Thread | Re: [xsl] Select and display a node, Joris Gillis |
Re: [xsl] Finding sequences of same, Mukul Gandhi | Date | RE: [xsl] Can I use a boolean varia, Michael Kay |
Month |