<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