Revision [1275]

Last edited on 2010-03-01 14:04:27 by DavidLee
Additions:
ml:invoke -v test.xq id 123
The "-t" option is used to serialize directly as text. This converts non element output such as attributes directly to text.
Otherwise xml output is used. Using -t and redirecting to a variable results in a string type variable, otherwise an XML type variable is produced.
See [[Serialization]].
Deletions:
$ ml:invoke -v test.xq id 123


Revision [1274]

Edited on 2010-03-01 14:01:09 by DavidLee
Additions:
||-c,connect uri||Use the connection string instead of $MLCONNECT||
||-t||Output result as text (instead of xml).||
||-v|| Assign variables (parameters) from the remaining arguments||
||script||path to script on the marklogic server||
Deletions:
-connect uri
-c uri Use the connection string instead of $MLCONNECT
-t Output result as text (instead of xml).
-v Assign variables (parameters) from the remaining arguments
script path to script on the marklogic server


Revision [469]

Edited on 2009-04-10 16:23:19 by DavidLee
Additions:
====Example====
Assuming the prefix "ml" is imported as the marklogic module, invoke the "test.xq" script on the server passing in a parameter "id" with the value "123"
%%
$ ml:invoke -v test.xq id 123
%%


Revision [468]

Edited on 2009-04-10 16:22:03 by DavidLee
Additions:
====Synopsis====
invoke [-c uri|-connect uri] [-t] [-v] script [varname value [varname value ...]]
====Description====
Invokes a script (xquery file) residing on a Mark Logic server.
Optionally passing in variable (parameters) to the script.
-connect uri
-c uri Use the connection string instead of $MLCONNECT
-t Output result as text (instead of xml).
-v Assign variables (parameters) from the remaining arguments
script path to script on the marklogic server


Revision [467]

Edited on 2009-04-10 16:17:13 by DavidLee

No Differences

Revision [466]

Edited on 2009-04-10 16:17:06 by DavidLee
Additions:
----
Deletions:
---


Revision [465]

Edited on 2009-04-10 16:17:00 by DavidLee
Additions:
[[ModuleMarkLogic MarkLogic Extension Module]]
Deletions:
[[MarkLogic]]


Revision [464]

The oldest known version of this page was created on 2009-04-10 16:16:32 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki