-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add header + footer in batch script? #103
Comments
Hello Shohreh, Yes, it can. In addition, I would also suggest you use the integrated EXPath File Module to directly list, load and parse the local gpx-files within I didn't know gpx-files, but I assume you mean files like this one. With "direct element constructors":
(if you get With "computed constructors":
Without
...so with the custom XML-declaration you can force it to "UTF-8". This however is only on screen! If you save the output to a file, then
Alternatively you can also use
@benibela How about |
Thanks very much! However, even after upgrading to the latest (0.9.8), the first two commands return "Error Unknown option: output-node-indent (when reading argument: output-node-indent)" :
And the third one returns "err:XPST0003: This language feature is not available in the selected language. XQuery is required to use constructors" :
|
I already mentioned this in my post. Please check the url again. |
Sorry, I only checked the main site (0.9.8), not the development section on Sourceforge (0.9.9). Is there a way to prevent xidel from displaying the output in the terminal? With big files, it takes a long time. SOLVED Also, I find no new file in the directory (output just flies down the screen), and using redirection doesn't work: |
I highly doubt using
...is specified, which is not the case here. |
Indeed, it created a file that only contained… "<empty/>" Is there no way to save the output into a new file, since "> output.gpx" triggers an error?
|
This is probably outside the scope of |
I delete the output file before running the app. The error only occurs when directing the output to a file, not when run as-is (ie. output to the screen). If the output can't be saved into a file, what's the point? |
Care to share this input file so I can have a look? Also please tell me the exact command / query you've tried. |
On Windows, in a batch file, I tried the three commands mentioned above. They all fail when redirecting the output to a file instead of the screen.
Just create a couple of GPX files and try to join their points (trkpt) to get a single file:
|
If you do You could do
But ignore-namespaces is an input option, not an output option |
Good idea :-)
"But ignore-namespaces is an input option, not an output option" : I just copy/pasted the instructions above. Thanks! |
So, a workflow error in the end. I guess it's all settled now. @benibela Hah! The documentation really needs a big overhaul! |
But there are also options that are both like |
Then I'd say specify them twice:
Or just create 3 categories:
|
I am not sure if the command line parser can handle that |
What do you mean? |
The documentation is automatically generated by the command-line parser |
Hello,
Can Xidel add a header and footer, as a smarter way than this?
Thank you.
The text was updated successfully, but these errors were encountered: