xsl-list
[Top] [All Lists]

RE: [xsl] Cartesian product of sets of nodes

2009-08-28 13:42:52
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 



 


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