Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<mxml:xquery-transformer>
<mxml:context-property key="books" value="#[flowVars['books']]" />
<mxml:context-property key="cities" value="#[flowVars['cities']]" />
<mxml:xquery-text>
<![CDATA[
xquery version "3.0";
declare variable $document external;
declare variable $cities external;
declare variable $books external;
<mixes>
{
for $b in $books/BOOKLIST/BOOKS/ITEM,
$c in $cities/cities/city
return <mix title="{$b/TITLE/text()}" city="{$c/@name}" />
}
</mixes>
]]>
</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.