You may use XPath extension functions [1] to fulfill your requirement. [1] - http://ode.apache.org/xpath-extensions.html
<http://ode.apache.org/xpath-extensions.html>Thanks, Waruna 2010/9/30 Armin Töpfer <[email protected]> > Hi all, > > I have a problem with adding an element to a sequence. Some important > snippets for this scenario: > > Schema: > <xs:element name="outputElement"> > <xs:complexType> > <xs:sequence> > <xs:element maxOccurs="unbounded" name="output" type="xs:string"/> > </xs:sequence> > </xs:complexType> > </xs:element> > > WSDL message: > <message name="outputMessage"> > <part element="ns_xs:outputElement" name="outputType"/> > </message> > > Variable: > <variable messageType="ns2:outputMessage" name="StartWorkflowOutVar" > xmlns:ns2="http://esysbio.bccs.uib.no/schema/MyWorkflow"/> > > Initialization of variable: > <assign> > <copy> > <from> > <literal> > <tns_6:outputElement > > xmlns:tns_6="http://esysbio.bccs.uib.no/schema/MyWorkflow/xsd"> > <tns_6:output/> > </tns_6:outputElement> > </literal> > </from> > <to variable="StartWorkflowOutVar" part="outputType" /> > </copy> > </assign> > > This works fine, but I want to add dynamically more <output/> elements > to <outputElement/>. At that point I fail. > I tried many different things, none of them worked. One of those is: > <assign insert="last"> > <copy> > <from> > <literal> > <tns_6:output > xmlns:tns_6="http://esysbio.bccs.uib.no/schema/MyWorkflow/xsd"/> > </literal> > </from> > <to>$StartWorkflowOutVar.outputType</to> > </copy> > </assign> > > Please help me. I hope I provide all information you need. > > Regards, > Armin > -- ----------------------------------------------------- Regards, Waruna Ranasinghe blog: http://warunapw.blogspot.com twitter: http://twitter.com/warunapww http://lk.linkedin.com/in/waruna www.facebook.com/waruna.ranasinghe www.wso2.org
