[ https://issues.apache.org/jira/browse/SYNAPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577306#action_12577306 ]
Ruwan Linton commented on SYNAPSE-235: -------------------------------------- In-order to fix this issue we need to add an optional attribute to the elements which has xpath as an attribute to specify the bodyRelative or envelopeRelative nature of the xpath.... Since this is going to be another attribute on the same scope as the xpath attribute I don't quite like the attribute name "relative" having values body and envelope, because it is a property of the xpath that we are trying to configure through another attribute. On the other hand if we go to a attribute name like "xpathBodyRelative" having values true and false, then this is too long :( One other solution is to add a special character in to the xpath it self and specify the relativity inside xpath itself... For example like; expression="//getQuote/request, true" (if ',' is not significant in XPath) Thoughts? Ruwan > Allow XPath expressions to be specified relative to envelope or body via an > attribute > ------------------------------------------------------------------------------------- > > Key: SYNAPSE-235 > URL: https://issues.apache.org/jira/browse/SYNAPSE-235 > Project: Synapse > Issue Type: Improvement > Reporter: Asankha C. Perera > Assignee: Ruwan Linton > > This would make XPath expressions simpler without consideration for SOAP 1.1 > or 1.2 or REST etc > Default could be envelope (i.e. what we have now - for backward > compatibility), and an optional attribute could specify if it should be > relative to the body -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]