[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Intersection Problem

Subject: Intersection Problem
From: "Carlos Sanchez" <carlos@xxxxxxxx>
Date: Mon, 24 Jul 2000 08:23:38 -0500
intersection problem
Hi,

I have two documents that look as follows:

Doc 1:

<statResult>
  <drilldowns>
	<drilldown>
	  <drilldownType>Asset Type</drilldownType>
        <drilldownName>Asset Type</drilldownName>
      </drilldown>
      <drilldown>
	  <drilldownType>Book Location</drilldownType>
        <drilldownName>NYC</drilldownName>
      </drilldown>
  </drilldowns>
</statResult>
<statResult>
  <drilldowns>
	<drilldown>
	  <drilldownType>Currency</drilldownType>
        <drilldownName>USD</drilldownName>
      </drilldown>
  </drilldowns>
</statResult>
(* There are many statResult nodes where the drilldowns vary in number and
in content*)

Document 2:
  <drilldowns>
	<drilldown>
	  <drilldownType>Currency</drilldownType>
	</drilldown>
  <drilldowns>
  (* There may be several drilldown nodes *)

How I can "Intersect" document 2 with document 1 so that it brings the
<statResult> nodes which have the equal number or more drilldown nodes found
in doc 2. (The intersection key is drilldownType)

Thx,

Carlos Sanchez
The RiskMetrics Group



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.