Mashups in EMML : Advanced Mashup Techniques : Defining and Using Custom Mashup Statements with Macros : Including Macro Domains in Mashup Scripts or Macros
Including Macro Domains in Mashup Scripts or Macros
 
<include>
You can use macros in a mashup script or another macro if:
*They are inner macros that are defined within that mashup script or macro.
*They are registered as global macros.
*They are reusable macros and you include the macro domain that defines them in your mashup script or macro.
To include a macro domain in a mashup script or another macro, add <include> directly within <mashup>, <macro> or <operation> and specify the domain. In the Mashup Editor, you can automatically include the appropriate macro domain when you add the macro call to a mashup script. See Adding Macro Calls Automatically in the Mashup Editor for information.
For example:
<mashup name="myMashup"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/
../xsd/EMMLPrestoSpec.xsd"
xmlns="http://http://www.openmashup.org/schemas/v1.0/EMML"
xmlns:macro = "http://www.openmashup.org/schemas/v1.0/EMMLMacro"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions">

<include domain="myConversionMacros"/>
...
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback