Difference between revisions of "XQuery Recipes"

From BaseX Documentation
Jump to navigation Jump to search
m (categories)
Line 9: Line 9:

Revision as of 00:36, 13 December 2010

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