RE: [xsl] how to test for direct child element

Subject: RE: [xsl] how to test for direct child element
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Wed, 8 Nov 2006 13:23:13 -0500
> From: wrew ewrwe [mailto:meenananju@xxxxxxxxxxx]
> Sent: 08 November, 2006 13:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] how to test for direct child element
>
> Hi:
>
> I have an xml in this format:
>
> <step1>
> <text><para>test</para></text>
> <note><para>some notes</para></note>
> </step1>
>
> How do I check if "note" element comes immediately ater <step1>?
> That is if we have <step1><note><para></para></note></step1>
> only I want to process the node.

//step1/*[1]/self::note

Current Thread