xsl-list
[Top] [All Lists]

Re: [xsl] node comparision for equality

2006-06-13 15:27:48
uppaluri satyaprasad wrote:
however i need to also test if
BusPartnerCodeValue (i.e. D06001 here) and BusPartnerCodeTypeCode (i.e. 00003) are equal in two nodes within BPPLCode. if these two values are equal, the BPPLCode nodes are equal and i shall process only one node.
we can ignore ProductLevel/ProductLevelCode here.

This looks like the "select distinct" problem, which you can solve
with an approach described here:
 http://jenitennison.com/xslt/grouping/index.xml
Use grouping by content, using
concat(BusPartnerCodeType/BusPartnerCodeTypeCode,':',BusPartnerCodeValue)
as key indicator.
(unfortunately, http://jenitennison.com/xslt/unique.xml is a stub).

J.Pietschmann

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>