forked from 0ad/0ad
historic_bruno
2c9939ac74
Adds converted Relax NG XML grammars for each (Note: don't edit these directly, modify the compact syntax .rnc files instead, then use a conversion tool http://relaxng.org/#conversion to generate the .rng files). Adds Perl script to validate the XML files using the new grammars This was SVN commit r15377.
22 lines
812 B
Plaintext
22 lines
812 B
Plaintext
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
|
|
##
|
|
# NOTE: To modify this Relax NG grammar, edit the Relax NG Compact (.rnc) file
|
|
# and use a converter tool like trang to generate the Relax NG XML (.rng) file
|
|
##
|
|
|
|
element Terrains {
|
|
element Terrain {
|
|
attribute groups { text } & # comma-separated list of groups
|
|
attribute mmap {
|
|
list {
|
|
xsd:integer { minInclusive = "0" maxInclusive = "255" }, # R
|
|
xsd:integer { minInclusive = "0" maxInclusive = "255" }, # G
|
|
xsd:integer { minInclusive = "0" maxInclusive = "255" } # B
|
|
}
|
|
}? &
|
|
attribute angle { xsd:float }? & # degrees
|
|
attribute size { xsd:float }? &
|
|
attribute movementclass { text }?
|
|
}
|
|
}
|