Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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