EMML

Dynamic Variable Creation

Hi fellow mashers,

Does anyone know if it's possible to dynamically create a variable in an emml script.

For example:

 Some variable that contains a string value:

  <variable name="dynamVar" type="string" default="myVariable" />

then

  <assign literal="a bit of data" outputvariable="{$dynamVar}" />

resulting in: [Read More...]

Custom XPath Functions using Groovy

Hi,

Is there anyone in the MDC interested in seeing if you can use Groovy to build custom XPath functions?

Just as an experiment, I have tried it out, but after a couple of attempts I've got to the point where I've exceeded my Java/Groovy skills. The last shot at this produced the following result when running an emml in debug mode: [Read More...]

Problem creating useful column names using constructor

I have a mashup created in wires.  It returns the data I expect, however it would be useful to have a friendlier set of names in any mashlet produced.  I was hoping to simply wrap this mashup in a new mashup and move the data to a new xml document as the documentation suggests, but this approach is not delivering the data I expect - though i am getting xml tree I expect.  The emml is included below: [Read More...]

Break example

Posted 02/25/2010 - 14:23 by hyeung

I am new to EMML. I tired to break from a loop. I experimented with the code from the help file but failed.

First, it complained on variable 'cnt' not found. I added definition for cnt and it gave an error on: Unsuitable operands for arithmetic operation (xs:string, xs:integer)

Can someone teach me how to make this work?

Thanks.

  [Read More...]

Mashups connecting to JMS Queues

We ae in the process of desiging a process where we create a mashup that connects to a JMS queue, get the recent messages in the queue and then take the message data and publish this data to a webservice. Is there any examples that show how to connect to a JMS queue using a mashup and get the messages in the JMS queue.

 

Thanks

Variable Declaration for Groovy

Hi Mashers,

Does anyone know what the rules are around declaration of variables in an enclosing emml script are for Groovy code execution?

The following Groovy code executes fine in the Groovy Console (1.6.5): [Read More...]

Adding a CDATA section in emml output

Hi Mashers,

I'm workin on building an emml output document that needs to include a CDATA section, but I'm having problems getting the output rendered properly because the CDATA section is evaluated as the script is parsed and a nested CDATA causes problems..

Essentially I need to do something like:

    <![CDATA[<!CDATA[... the actual cdata content to be output ...]]]]

but this doesn't work. [Read More...]

<assign fromexpr=.....> failed to pass xml fragment to <invoke inputvariables=....>

Hi

<invoke ... inputvariables="inputVariable"  ...> seems not to take the full xml value from <assign fromexpr="an xpath" outputvariable="inputVariable" >

I had 2 simple mashups: TestMashupWsdlClient and TestMashupWsdl.  TesMashupWsdlClient created an input variable from <assign fromexpr=.....> and pass it to mashup TestMashupWsdl. The TestMashupWsdl printed out the input value from TestMashupWsdl Client. [Read More...]

Groovy script behaviour in <macro>

Hi mashers,

I'm having problems getting the output from a macro that has an embedded Groovy script to return the hashCode value of a string it is passed. I can get the script to run fine in the main emml script body, returning the hash value I expect, but when the Groovy script is run from within a macro, the output appears to be null.Can anyone see why the returned data from the macro execution is different. Many thanks, Innes

Here's the emml code: [Read More...]

Syndicate content