Declaring Namespaces
You must declare these namespaces in a mashup script:
Namespaces used in component mashable information sources.
Note: | When you declare namespaces for component mashables, you must use the same namespace prefix as the Presto Server. |
Namespaces used in the construction of input parameters, output parameters or variables.
The
macro reference namespace for any custom statements (macros) that you use in your mashup. See
Calling a Macro for more information.
The
EMML namespace and the
Presto EMML Extension namespace.
Note: | See EMML
Namespaces for the currently supported namespaces for EMML and macros. |
You declare namespaces using the xmlns attribute on any element in a mashup script. Typically, it is easier to define all the namespaces used in the script on the <mashup> element. For macros, especially in a macro library, it is a good practice to define namespaces on <macro>.
This example shows <mashup> with the default namespaceDe set to EMML:
It has two additional namespace declarations, for Atom and XHTML, that are used in the <constructor> statement to build the body of a <directinvoke> that posts to a blogging service. Namespaces are simply valid URIs - they can be URLs or URNs.
Note: | Previous releases used <namespace> elements to define namespace for component mashables. This technique is deprecated, although it is still supported. |