Rules with a body property containing a dot in its name #739
Unanswered
14geronimo
asked this question in
Help
Replies: 1 comment 2 replies
-
Hi @14geronimo |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to create a Rule on a value
myValue
for the XML attribute at this Xpath:/server/requests/CustomServer.processRq/@xslt
If the third nested element didn't have a dot in its name, e.g.
CustomServerProcessRq
instead ofCustomServer.processRq
, then this Rule works perfectly:However I can't figure out a way to express this property in object-path because of the dot in the element name. I've tried these in Mockoon, to no avail:
server.requests.CustomServer.ProcessRq._attributes.xslt
["server", "requests", "CustomServer.ProcessRq", "_attributes", "xslt"]
server.requests.[CustomServer.ProcessRq]._attributes.xslt
server.requests."CustomServer.ProcessRq"._attributes.xslt
server.requests.'CustomServer.ProcessRq'._attributes.xslt
server.requests.CustomServer\.ProcessRq._attributes.xslt
server.requests.CustomServer\u002EProcessRq._attributes.xslt
(U+002E is unicode for the dot character)server.requests.CustomServer\u002E ProcessRq._attributes.xslt
server.requests.\u0043\u0075\u0073\u0074\u006F\u006D\u0053\u0065\u0072\u0076\u0065\u0072\u002E\u0070\u0072\u006F\u0063\u0065\u0073\u0073\u0052\u0071._attributes.xslt
(the unicode representation of string "CustomServer.processRq")server.requests.\u0043 \u0075 \u0073 \u0074 \u006F \u006D \u0053 \u0065 \u0072 \u0076 \u0065 \u0072 \u002E \u0070 \u0072 \u006F \u0063 \u0065 \u0073 \u0073 \u0052 \u0071 ._attributes.xslt
server.requests.\u0043 \u0075 \u0073 \u0074 \u006F \u006D \u0053 \u0065 \u0072 \u0076 \u0065 \u0072 \u002E \u0070 \u0072 \u006F \u0063 \u0065 \u0073 \u0073 \u0052 \u0071._attributes.xslt
Are dotted element names supported at all by Mockoon, or would this be a request for improvement?
Beta Was this translation helpful? Give feedback.
All reactions