[PATCH] relaxng: Fix rule for /os/variant/name

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

 



Since the variant name can be translated, the <name> node needs to be
enclosed in <oneOrMore>. A recent update to the French translation broke
test-xml-validate since win-7.xml (for example) now has 2 <name> nodes
for some variants.
---
 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