XQuery Recipes

From BaseX Documentation
Revision as of 10:51, 13 December 2010 by Michael (talk | contribs) (changed brush to xquery)
Jump to navigation Jump to search

This page contains code snippets that mainly originate from our Mailing List.

Computed Elements

Returns dynamically named elements:

let $name:= "Element1"
let $class := "hi"
let $contents :=<foo><br />Bar!</foo>
return element {$name}{
		attribute {"about"}{$class},$contents
}