XQuery Element Constructors II


Element name can also be computed on the fly with computed element/attribute constructors:

Same as before, but the variable $n is bound to "example":

		element { $n } {
			element title { $i//title }
		}

will return the same as before