<person name = "fred"/>
<person name ="sue"/>
<person name = "jill" />
<person name = "khan"/>
<cheese name ="camembert"/>
<cheese name="roquefort"/>
<liking person="fred" cheese="camembert"/>
<liking person="fred" cheese="roquefort"/>
<liking person ="sue" cheese ="roquefort"/>
<liking person ="jill" cheese = "camembert" />
<liking person ="khan" cheese = "camembert"/>
我做了很多的努力,找到对的谁像上面XML文档中相同的奶酪使用FLOWR人。 但是我无法做出逻辑能够帮助我找到一个像一样的奶酪一样的人的逻辑,双重不应该重复。
你试过了什么? –
Leos Literak我需要在doc(“cheese.xml”)/ cheeseEaters/cheese for $ y in doc(“cheese.xml”)/ cheeseEaters /喜欢[@cheese = $ x的情况下尝试购买 – Arshad