Skip to content

Instantly share code, notes, and snippets.

@bt4R9
Last active January 1, 2016 09:09
Show Gist options
  • Save bt4R9/8123263 to your computer and use it in GitHub Desktop.
Save bt4R9/8123263 to your computer and use it in GitHub Desktop.
func convert(nodeset o, scalar text, scalar value){
[
for o.item {
{
'text': .*[name() == text]
'value': .*[name() == value]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment