Skip to content

Instantly share code, notes, and snippets.

@ryanjdew
Created June 23, 2012 13:40
Show Gist options
  • Select an option

  • Save ryanjdew/2978334 to your computer and use it in GitHub Desktop.

Select an option

Save ryanjdew/2978334 to your computer and use it in GitHub Desktop.
XPath returning new nodes 2
let $root := element root {
element _1 {50},
element _2 {40},
element _3 {30},
element _4 {20},
element _5 {10}
}
return unordered { $root/*/text {node-name(.)} }
(: =>
_1
_2
_3
_4
_5
:)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment