(Q7) Generate an <emp> element containing an "empid" attribute and nested <name> and <job> elements. The values of the attribute and nested elements are specified by variables that are bound in other parts of the query.

<emp empid = $id>
   <name> $n </name> ,
   <job> $j </job>
</emp>
  • Element constructors are first-order expressions too (unlike XSLT 1.0)
  • Use an XML-like syntax, but still not XML
  • Individual variable references imply deep copies of that variable's value
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>