Hi
Given the following input (number of column elements is arbitrary);
<wrapper>
<column>
<price>111</price>
<price>222</price>
<price>333</price>
<price>444</price>
<price>555</price>
<price>666</price>
<price>777</price>
<price>888</price>
<price>999</price>
</column>
<column>
<price>999</price>
<price>888</price>
<price>777</price>
<price>666</price>
<price>555</price>
<price>444</price>
<price>333</price>
<price>222</price>
<price>111</price>
</column>
<column>
<price>555</price>
<price>666</price>
<price>777</price>
<price>111</price>
<price>222</price>
<price>333</price>
<price>444</price>
<price>555</price>
<price>666</price>
</column>
</wrapper>
I need to identify the price element(s) with the lowest value within
certain position ranges.
So, range1 --> Position() < 5
range2 --> Position() >=5
---------------
REQUIRED OUTPUT
---------------
<wrapper>
<column>
<price>111</price>
<price>222</price>
<price>333</price>
<price>444</price>
<price>555</price>
<price>666</price>
<price>777</price>
<price>888</price>
<price>999</price>
</column>
<column>
<price>999</price>
<price>888</price>
<price>777</price>
<price>666</price>
<price>555</price>
<price>444</price>
<price>333</price>
<price>222</price>
<price lowest="range2">111</price>
</column>
<column>
<price>555</price>
<price>666</price>
<price>777</price>
<price lowest="range1">111</price>
<price>222</price>
<price>333</price>
<price>444</price>
<price>555</price>
<price>666</price>
</column>
</wrapper>
I am able to use XSLT 2. Could someone please point me in the right
direction?
Thanks.
--
Kevin
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--