Created
June 13, 2013 12:17
-
-
Save bencomp/5773235 to your computer and use it in GitHub Desktop.
Return all <unittitle> elements in which the first word (sequence of non-space characters) ends with a comma.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $content := <top><unittitle>Test, another word</unittitle></top> | |
return $content//unittitle[ends-with(tokenize(./text(), " ")[1], ",")] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment