[xsl] Selecting the first node set

Subject: [xsl] Selecting the first node set
From: "Fraser Goffin" <goffinf@xxxxxxxxxxx>
Date: Sat, 05 Aug 2006 12:21:58 +0100
Given the following simplified XML instance, can anyone suggest an expression that will return ONLY the 'Value' node containing <enum> children with values A, B and C. I can't rely on the name of the parent node of <Value> hence I have deliberately named these as UnknownNameX or any other intervening structure.


/Trade//Value - returns all 3 <Value> nodes /Trade//Value[1] - also returns all 3 <Value> nodes (why is that ?) /Trade//Value[2] - returns nothing (why is that ?)



Current Thread