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. These statements 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 © 2006-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback