Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Expressions for Mashups | Dynamic Mashup Expressions | Dynamic Expressions in Literal XML
 
Dynamic Expressions in Literal XML
Variable or parameter declarations and mashup statements that define the structure of the result returned by that statement can include the literal XML structure of the content and literal data. While the XML in a variable declaration body is taken literally, other commands can also use dynamic mashup expressions to define the data that should fill this literal structure dynamically.
For example:
<constructor outputvariable="$result">
<res:mailingList>
<res:displayName>{$filterResult/list/name}</res:displayName>
<res:email>{$filterResult/list/email}</res:email>
<res:greet>Hello {$filterResult/list/name}, </res:greet>
</res:mailinglist>
</constructor>
Mashup expressions can also contain XPath functions or predicates, such as this example:
<appendresult outputVariable="$result">
<res:member>
<res:name>{upper-case($list/memberName)}</res:name>
...
</res:member>
</appendresult>
These dynamic expression can use XQuery expressions instead of XPath for more complicated construction scenarios such as iterating through several variables or using sorting. See Using XQuery Expressions in Construction Statements.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release