Mashups in EMML : Writing Mashups in EMML : Declaring Mashup and Macro Variables and Parameters : <output>
<output>
 
Commonly Supported Output Character Encodings
The parameter that holds the result returned from a mashup, operation or macro.
See also Declaring Mashup and Macro Variables and Parameters for more information and examples.
Can Contain
Typically empty. Can contain text and any well-formed literal XML. If content is defined within this statement, this is the sole output for the mashup or macro.
Allowed In
mashup | macro | operation
Attributes
Name
Required
Description
name
yes
The required name for this output parameter. Parameter names must be unique within the scope of the mashup or macro.
type
yes
The required data type for the result of this mashup or macro. Valid values for this include:
*boolean
*date (deprecated, use datetime instead)
*datetime
*document (complex, structured data)
*number
*string
*Any token that identifies a data type defined by a published mashable. Tokens are typically used for input or output parameters where the service has metadata for a named datatype.
subtype
Optionally further defines the datatype of document-type results for this mashup or macro:
*HTML
*JSON
If this is not present, document-type output is represented as a well-formed XML document.
Note:  
Currently, subtype is only supported for parameters and variables for <mashup>, <macro> and <directinvoke>.
Setting subtype="HTML" can help prevent parsing errors for HTML results from web sites or web services.
For web services that return JSON responses, setting subtype ensures that the JSON response is not converted to XML.
Note:  
With responses left in JSON format, you cannot process the response with other EMML statements except <script> using JavaScript code. See Handling JSON Responses or Inputs for more information and examples.
service
The optional name of the registered mashable that has metadata defining the data type for this parameter or variable. This is required if the value of the type attribute is a token.
default
The optional, simple default value to use for this variable, input parameter or output parameter. You cannot set default values for document-type variables or parameters.
label
The optional label to display for this output parameter. Typically, this is used in Wires or in apps.
output-cdata-section-elements
A list of element names, separate by whitespace, whose text content should be wrapped in CDATA sections in this output. For more information and examples, see Wrapping Results or Variables in CDATA Sections.
output-encoding
The character encoding to use for the output of this mashup. This defaults to UTF-8.
This may be any valid character encoding supported by the JDK used by the application server that hosts the Presto Server. See Commonly Supported Output Character Encodings for common valid values.
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback