[Libosinfo] [PATCH] schema: allow multiple <name> elements under OS variant
Daniel P. Berrange
berrange at redhat.com
Mon Nov 9 13:03:11 UTC 2015
The OS <variant> tag must allow multiple <name> elements
because there can be translations present.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
Pushed to master as a build-fix
data/schemas/libosinfo.rng | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/data/schemas/libosinfo.rng b/data/schemas/libosinfo.rng
index b97e1cb..6149f14 100644
--- a/data/schemas/libosinfo.rng
+++ b/data/schemas/libosinfo.rng
@@ -222,9 +222,16 @@
<element name='variant'>
<attribute name='id'>
</attribute>
- <element name='name'>
- <text/>
- </element>
+ <oneOrMore>
+ <element name='name'>
+ <optional>
+ <attribute name='xml:lang'>
+ <text/>
+ </attribute>
+ </optional>
+ <text/>
+ </element>
+ </oneOrMore>
</element>
</define>
--
2.5.0
More information about the Libosinfo
mailing list