Mashups in EMML : Expressions for Mashups : Dynamic Mashup Expressions
Dynamic Mashup Expressions
 
Dynamic Expressions in Literal XML
Dynamic Expressions in XPath Expressions
Dynamic mashup expressions provide dynamic content in a mashup script. You can use dynamic mashup expressions:
*In literal XML: to define the data to fill the mashup result, variable or parameter that is being constructed. See Dynamic Expressions in Literal XML for examples
*In most XPath expressions or EMML attributes that accept an XPath expression: This can replace the entire XPath expression or any part of the XPath expression.
Note:  
You cannot nest dynamic mashup expressions. So you cannot use a dynamic mashup expression in an XPath inside a dynamic mashup expression for literal XML. This can be useful to make any EMML statement dynamic including macros. See Dynamic Expressions in XPath Expressions and <macro> for examples.
*In <template> elements to build syntax or any string dynamically: This is commonly done to build a dynamic expression to use as input parameters for a generic mashup script or generic macro. But you can use the <template> element to build any string dynamically within a mashup script or macro. See Dynamic XPath or Other Syntax in Mashups for examples.
*In <constructor> or <appendresult>: with XQuery expressions. See Using XQuery Expressions in Construction Statements for examples.
Dynamic expressions are XPath expressions enclosed in braces ( { expression } ). Variable references start with $ in dynamic mashup expressions. For example:
{$filterResult/list/name}
{upper-case($list/memberName)}
{$selectedItem}[matches(description, 'Ruby')
Hello, my name is {$currentUser}!]
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback