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

RE: Cartesian product of sets of nodes

Subject: RE: Cartesian product of sets of nodes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 28 Aug 2009 18:42:21 +0100
RE:  Cartesian product of sets of nodes
> Hi,
> 
> we've a variable number of sets of nodes of variable 
> carindinality grouped from incoming xml, 
> 
> S1, S2, S3, ... Sn
> 
> is there a way of obtaining the cartesian product
> 
> S1 x S2 x S3 x S4 x... Sn
> 

I think it would be useful to explain what you mean by showing the XML input
and the desired XML output.

My understanding is that "cartesian product" has a mathematical meaning, and
a conventional usage when talking about the relational model, and they
aren't the same. One doesn't see the term used much in relation to XML. In
particular, I'm not sure how you would represent a "variable number of sets
of nodes" in the XPath data model, unless the nodes all happen to be in the
same tree.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

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.