I try to call MXQuery via Console. This just works fine.
But if i want to transfer some external parameter, it doesn't work anymore.
I read in the doku to use option -e, but if I do so, I get the exception "Incorrect format to set external variable"
Command: "java -jar mxquery.jar -f Autosar_Namechecker.xq -e " + path_xq
where path_xq names the variable.
And how do I receive the external variable in the XQuery file?
Thanks for your help.
Best regards,
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For those who are interested, the solution command sounds:
"java -jar mxquery.jar -f Autosar_Namechecker.xq -e xq_path=" + xq_path
You have to name the variable in command with the same name as in the XQuery file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I try to call MXQuery via Console. This just works fine.
But if i want to transfer some external parameter, it doesn't work anymore.
I read in the doku to use option -e, but if I do so, I get the exception "Incorrect format to set external variable"
Command: "java -jar mxquery.jar -f Autosar_Namechecker.xq -e " + path_xq
where path_xq names the variable.
And how do I receive the external variable in the XQuery file?
Thanks for your help.
Best regards,
Simon
For those who are interested, the solution command sounds:
"java -jar mxquery.jar -f Autosar_Namechecker.xq -e xq_path=" + xq_path
You have to name the variable in command with the same name as in the XQuery file.