If you have a collection with more X-definitions enter the name of X-definition with root XML data:
<xd:def xmlns:xd="http://www.xdef.org/xdef/4.2" name="Example" root="Person" > <xd:declaration scope="local"> String qry = "'Age of ' || /Person/@name || ' is ' || /Person/@age"; </xd:declaration> <Person xd:script="finally outln(xquery(qry));" name="string();" age="int();" /> </xd:def>
Input data
If necessary you can specify the name and namespace of the model:
and namespace:
<Person name="Alice" age="32"/>
You can edit
X-definition
or
Input data