REXML::Validation::RelaxNG
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with REXML::Validation::RelaxNG and reproduce the failure using the supplied openmath2.rng example in Ruby 2.7 and IRB. Inspect relaxng.rb around line 89 and determine why the AnyName constant is unavailable. Done means the schema can be passed to RelaxNG without this NameError and the supported usage is documented.
Written by the indexing model from the issue text.
Description
Let openmath2.rng be the file https://www.openmath.org/standard/om20-2019-07-01/openmath2.rng
If I try to validate using that file, I get the following error:
$ gem list |grep rexml
rexml (default: 3.2.3)
$ ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
$ irb -v
irb 1.2.1 (2019-12-24)
$ irb
irb(main):001:0> require "rexml/validation/relaxng"
=> true
irb(main):002:0> schema = File.new( "openmath2.rng" )
irb(main):003:0> validator = REXML::Validation::RelaxNG.new( schema )
Traceback (most recent call last):
6: from /usr/bin/irb:23:in `<main>'
5: from /usr/bin/irb:23:in `load'
4: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in `<top (required)>'
3: from (irb):3
2: from (irb):3:in `new'
1: from /usr/lib/ruby/2.7.0/rexml/validation/relaxng.rb:89:in `initialize'
NameError (uninitialized constant REXML::Validation::RelaxNG::AnyName)
irb(main):004:0>
Apart the AnyName, how exactly is used REXML::Validation::RelaxNG ? I didn't find the documentation about it
- Dominant language
- Ruby
- Stars
- 181
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/rexml
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
XPath underscored function name is wrongly acceptedPossibly taken @sjh9714 claimed this 80 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
bug f:request-creation professional
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mysociety/alaveteli#9733 · 1 comment ·
Maintainers usually reply within 1 day
-
needs verification
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 13 days
-
🐛 bug 👩💻 équipe CE 🧑🏭 entreprises
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
betagouv/conseillers-entreprises#4808 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day