[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] processing nodes by value precedence

Subject: [xsl] processing nodes by value precedence
From: "Matthew Stoeffler matthew.stoeffler@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Feb 2016 20:57:46 -0000

Lets say Ibm processing products that can have multiple types of a certain
node distinguished by value, of which I want only one in my result, and I have
a precedence order by type of those nodes that shoudl determine which one I
get.  So, if the child of product Ibm interested in is price currency and my
product had






And my preference is to take the only one price in the order 1., US, 2. CA,

In context product, if I say


I get the FR price because itbs first in doc order, but my expression was
meant to say process nodes in this sequence order, taking the first one, in
the sequence, not in the doc order of the input tree.

I thought the above instruction would be a short cut to achieving this, but it
doesnbt work. Is there a concise way to express  the kind of precedence I


Current Thread