Subject: Re: [xsl] Node selection based on parent attribute From: ronald heller <ronald@xxxxxxxxxxx> Date: Fri, 30 Aug 2002 14:45:37 +0200 |
<menu id=6> <menu id=7/> <menu id=8/> </menu>
<xsl:for-each "menu[@id=$id]/menu"> <xsl:value-of select="@id"/> </xsl:for-each>
cheers RH At 12:32 PM 30-08-02 +0000, you wrote:
Hi,
I would like to produce a list of child nodes from a parent that has a specific attribute value, ie with the following xml structure I want to just retrive the children of the menu node with an id of 6.
<menu id=6>
<menu id=7/>
<menu id=8/>
</menu>
<menu id=9>
<menu id=10/>
<menu id=11/>
</menu>
I have tried
<xsl:for-each "../@id=$id">
<xsl:value-of select="@id"/>
</xsl:for-each>
Using a param passed in from asp.
Am I on the right track, and would the above method be the best to retrieve a certain section of a heirachacal xml structure based on a parent attribute.
I am using asp with the msxml parser.
Thanks in advance.
_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Salience B.V. "The XML place to be" Coltbaan 27b 3439 NG Nieuwegein
Ronald Heller Technisch Consultant www.salience.nl ronald@xxxxxxxxxxx
T +31(0)30 60 56 675 F +31(0)30 60 56 324 M +31(0)6 20 41 25 77 MSN ronald_heller@xxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Node selection based on paren, katharine wykes | Thread | Re: [xsl] Node selection based on p, katharine wykes |
AW: [xsl] Xalan complains about rel, Costantino . Sertori | Date | Re: [xsl] other engines than cocoon, martin |
Month |