[PATCH] RelaxNG schema

olichtne at redhat.com olichtne at redhat.com
Mon May 20 12:50:03 UTC 2013


From: Ondrej Lichtner <olichtne at redhat.com>

The following patch adds the hopefully complete RelaxNG schema. To validate your
recipe use the validation script attached to Jans email [1]. I'm not sending the
script as a patch to the git repo because I don't know if this will be the way
we validate our recipes. That needs to be discussed.

There are a few details that I wasn't sure of so they might be changed later.
For example the schema will validate the following:

<option name="a" value="b">c</option>

Which the recipe parser will accept, by using the value 'b', but I think this
might be confusing and there should be at least a warning if not an error. The
error could be solved in the schema.

[1] https://lists.fedorahosted.org/pipermail/lnst-developers/2013-May/001198.html

Ondrej Lichtner (1):
  add recipe-schema.rng

 recipe-schema.rng | 447 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 447 insertions(+)
 create mode 100644 recipe-schema.rng

-- 
1.7.11.7



More information about the LNST-developers mailing list