-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add process:execute
#602
Comments
Hey Reuben, Did you consider using an external function for this? Something like this should work:
This way the NodeJS dependency also stays were it should be. FontoXPath is also running in the browser, where I don;t have access to shell commands. Kind regards, Martin |
Thanks, I'll try this. It would still be nice to have an implementation on platforms where it makes sense; I think this is not the only feature that doesn't make sense in the browser but does in other environments. |
Hey Reuben, What kind of functions would those be? I'm not opposed to setting up an extension module to FontoXPath or something with those kinds of functions, to make FontoXPath easier to use in different environments. I'm now mainly working with the browser, but I guess some standard functions to access external information or maybe some of the [EXPath](expath.org] functions? |
Yes, your examples are exactly what I'm thinking of: accessing the file system, running processes, the sort of thing one wants to do in a server, command-line environment. The motivating case for my templating system Ruth, as linked above, is to be able to run arbitrary external commands. |
as per https://en.wikibooks.org/wiki/XQuery/Execute_External_Process
This is not a standard function, of course, but this seems to be the commonest version of the function implemented in other systems.
The text was updated successfully, but these errors were encountered: