Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<mxml:xquery-transformer>
<mxml:xquery-text>
<![CDATA[
xquery version "3.0";
declare variable $document external;
for $n in 1 to 10
group by $mod := $n mod 2
return
if ($mod = 0) then
<even>{$n}</even>
else
<odd>{$n}</odd>
]]>
</mxml:xquery-text>
</mxml:xquery-transformer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.