Xml 如何从20人的列表中获得10人的所有可能组合+;XSLT中的人?
我有一个xml,如下所示:Xml 如何从20人的列表中获得10人的所有可能组合+;XSLT中的人?,xml,xslt,combinations,xslt-3.0,Xml,Xslt,Combinations,Xslt 3.0,我有一个xml,如下所示: <?xml version="1.0" encoding="utf-8" ?> <ReportData> <Employee> <name>Alpha</name> <country>IND</country> <Rate>10</Rate> </Emp
<?xml version="1.0" encoding="utf-8" ?>
<ReportData>
<Employee>
<name>Alpha</name>
<country>IND</country>
<Rate>10</Rate>
</Employee>
<Employee>
<name>Charlie</name>
<country>US</country>
<Rate>9.5</Rate>
</Employee>
<Employee>
<name>Tango</name>
<country>IND</country>
<Rate>8</Rate>
</Employee>
...
<!-- 20 more employees -->
</ReportData>
阿尔法
IND
10
查理
美国
9.5
探戈
IND
8.
...
我需要在以下两个条件下获得10名员工的所有可能组合:
如果你要求一个算法,这是一个错误的地方问。如果您知道要使用的算法,并且在用XSLT表达时遇到困难,那么最好用伪代码解释该算法,这样我们就有了一个起点。我的直接反应是,任何幼稚的算法都会非常慢。