2014-09-05 33 views

回答

1

Simple map operator (!)工作得很像/,除了左手操作數必須是節點集並沒有限制,並且沒有將結果排序爲文檔順序。例如,(1 to 7)!(.*.)返回序列(1, 4, 9, 16, 25, 36, 49)

+1

我是否認爲'(1到7)!(。*。,。+。)'返回'(1,2,4,4,9,6,16,8,25,10,36 ,12,49,14)'? – Davio 2014-09-05 08:26:56

+0

你好。謝謝你的解釋。我想知道是否有任何可以評估XPath 3.0的軟件?我希望測試它的各種新功能。 – 2014-09-05 08:31:16

+2

@達維奧是的,達維奧,確切! Chong Lip Phang:您可以在線測試XPath 3.0,例如http://videlibri.sourceforge.net/cgi-bin/xidelcgi – duDE 2014-09-05 08:40:18

1

再舉一例:

let $s := "The Taming of the Shrew" 
return tokenize($s, ' ')!(string-length(.)||upper-case(.)) 

返回( 「3顯示」, 「6TAMING」, 「20F中」, 「3顯示」, 「5SHREW」)

這也採用了新的字符串連接符「 ||」。