[ http://wso2.org/jira/browse/ESBJAVA-232?page=comments#action_14091 ] Evanthika Amarasiri commented on ESBJAVA-232: ---------------------------------------------
Fixed in 1.1-beta-1. The namespaces are resolved properly. The issue will be closed > The namespace declared inside the Switch mediator not applied to a Property > mediator which is declared within the Switch mediator > --------------------------------------------------------------------------------------------------------------------------------- > > Key: ESBJAVA-232 > URL: http://wso2.org/jira/browse/ESBJAVA-232 > Project: WSO2 ESB > Issue Type: Bug > Components: Administration Console > Affects Versions: 1.0-RC-2-b1 > Environment: Windows XP, JDK1.5, Firefox 2.0.0.3 > Reporter: Evanthika Amarasiri > Fix For: 1.5-QA-b1 > > > Below are the steps to reproduce the issue > 1. Go to "Sequences" > 2. Add a "Switch" mediator as below > *********************************************************************************************************** > <switch source="//m0:getQuote/m0:request/m0:symbol" > xmlns:m0="http://services.samples/xsd"> > <case regex="IBM"> > <!-- the property mediator sets a local property on the *current* > message --> > <property name="symbol" value="Great stock - IBM"/> > </case> > <case regex="MSFT"> > <property name="symbol" value="Are you sure? - MSFT"/> > </case> > <default> > <!-- it is possible to assign the result of an XPath expression > as well --> > <property name="symbol" > expression="fn:concat('Normal Stock - ', > //m0:getQuote/m0:request/m0:symbol)" > xmlns:m0="http://services.samples/xsd"/> > </default> > </switch> > *********************************************************************************************************** > Note that there is a namespace (m0) declared inside the property mediator > 3. Save the above configuration and you will see that the namespace added for > the property mediator is not saved. > 4. If you specify the namespace as m0 and not as m1, then the namespace is > saved successfully -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://wso2.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Esb-java-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
