[PATCH] schema: allow multiple <name> elements under OS variant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The OS <variant> tag must allow multiple <name> elements
because there can be translations present.

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---

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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux