-
Q: I'd like to participate. How do I begin?
-
0
Learn XQuery...
— BeniBela · 2 years ago
-
-
Q: Other than writing code, how can I contribute?
-
0Post example usages
Well, you have to write some code, since Xidel/XQuery is a programming language itself.
It is an incredible powerful language that can do a lot of querying tasks with a single line, but people do not know that and do not know XQuery.
So if someone posts a long bash script for a webpage, you can show them how to replace the entire script with a single call of Xidel.
Or if you have a webpage that you want to parse, or automate some uploading task, you can do it with Xidel, and show people how you did it.
— BeniBela · 2 years ago
-
-
Q: What's a good bug for a newcomer to tackle?
-
0Add a math layer wrapper
XQuery 3 has a lot of mathematical functions, math:cos, math:log, math:sqrt, ...
(http://www.w3.org/TR/xpath-functions-31/#trigonometry)Xidel does not have them, but Pascal does.
So you need to write a wrapper for each function, that calls the corresponding Pascal function and add it to Xidel. (you probably can use my Pascal meta programming language to automatically generate most of these functions, like here https://github.com/benibela/bbutils/blob/master/bbutils_template.pas#L124-L140 )
It is trivial (except possible for some boundary conditions), but has very low priority, since I doubt many people want to calculate some cosine when parsing a webpage.
— BeniBela · 2 years ago
-
-
Q: What is a bug or issue with Xidel that you've been putting off, neglecting, or just plain avoiding?
-
0
— lmpanellawile · 2 years ago -
0Implement a format integer function
Converting an integer to a string sounds like an easy task, but the W3 always overcomplicates everything: http://www.w3.org/TR/xpath-functions-31/#formatting-integers
Implementing this all is quite a daunting task, but necessary for full XQuery compliance.
This implementation can be done in XQuery or Pascal, whereby latter would be more efficient.
— BeniBela · 2 years ago -
0Implement a format number function
Then we need a function to format decimals or floating point numbers: http://www.w3.org/TR/xpath-functions-31/#formatting-numbers
— BeniBela · 2 years ago -
0Implement a format date function
And finally a function to format datetimes: http://www.w3.org/TR/xpath-functions-31/#formatting-dates-and-times
— BeniBela · 2 years ago
-
About Xidel
Xidel is a command line tool to download and extract data from HTML/XML pages as well as JSON APIs. It also is an interpreter for the Turing-complete languages XPath/XQuery/JSONiq and a replacement for the wget/curl/sed/awk/jq/xmlstarlet/xpath tools.
from the profile of BeniBela
People who want to help (none listed yet)
Registered contributors (1)
Volunteer opportunities, etc.
No volunteer opportunities in Xidel indexed here yet. Add a bug tracker.
No one on OpenHatch has signed up as a mentor for Xidel. Can you? Add the tag.
No one on OpenHatch has signed up as a mentor for XQuery, Pascal. Can you? Add the tag.
You can embed the "I want to help" button on your website. (More about this.)