1 |
On 01/26/2016 02:52 PM, Dirkjan Ochtman wrote: |
2 |
> All, |
3 |
> |
4 |
> TL;DR: I think we should switch from DTD to RELAX NG (compact syntax, |
5 |
> ideally) for our XML validation needs. It is more expressive and more |
6 |
> readable. |
7 |
> |
8 |
|
9 |
A great idea. |
10 |
|
11 |
|
12 |
> What other stuff would need to be updated? |
13 |
> |
14 |
|
15 |
I would appreciate examples of some common tasks like validating |
16 |
projects.xml, but since we don't have those now, it's not critical. |
17 |
This used to be kinda straightforward with xmllint, |
18 |
|
19 |
$ xmllint --valid --noout projects.xml && echo "OK" |
20 |
|
21 |
but now that www.gentoo.org is on HTTPS, even that doesn't work. There's |
22 |
an example in the devmanual that needs updating along those lines (at |
23 |
the bottom of the page). In fact, all of the herds junk needs to be updated: |
24 |
|
25 |
https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/ |
26 |
|
27 |
Our DTDs are available under https://www.gentoo.org/dtd/ -- do we need |
28 |
to put the rnc files somewhere accessible? Or do we only need the DTDs |
29 |
public for the DOCTYPE declarations? |
30 |
|
31 |
Thanks for preemptively hacking repoman. |