All direct edits to RelaxNG files should be in the .rnc files. The program TRANG should be used to generate a correcsponding .rng file. For Ubuntu, you can install with:
sudo apt-get install trang
To convert the .rnc file to .rng, use the following syntax:
trang {filename}.rnc {filename}.rng