|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Counting items related by a linked list
I have the following type of xml document: Note: 1) All IDs are unique and can be any positive number 2) The link pairs below can link any item to any different Item. 3) CItems are always in the "Target" portion of the link table. 4) No item can be linked more than once to another item. The question: I would like to define a variable such that given the CItem ID, say 1003, I can get a count of all the AItems linked to it. <TopLevel> <AItem> <ID=1/> <Name=/> </AItem> <AItem> <ID=2/> <Name=/> </AItem> <AItem> <ID=3/> <Name=/> </AItem> <AItem> <ID=4/> <Name=/> </AItem> <AItem> <ID=5/> <Name=/> </AItem> <BItem> <ID=101/> <Name=/> </BItem> <BItem> <ID=102/> <Name=/> </BItem> <BItem> <ID=103/> <Name=/> </BItem> <BItem> <ID=104/> <Name=/> </BItem> <BItem> <ID=105/> <Name=/> </BItem> <BItem> <ID=106/> <Name=/> </BItem> <CItem> <ID=1001/> <Name=/> </CItem> <CItem> <ID=1002/> <Name=/> </CItem> <CItem> <ID=1003/> <Name=/> </CItem> <CItem> <ID=1004/> <Name=/> </CItem> <CItem> <ID=1005/> <Name=/> </CItem> <CItem> <ID=1006/> <Name=/> </CItem> <CItem> <ID=1007/> <Name=/> </CItem>
</TopLevel> _________________________________________________________________ Get rid of annoying pop-up ads with the new MSN Toolbar FREE! http://clk.atdmt.com/AVE/go/onm00200414ave/direct/01/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








