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

Re: [libvirt] [PATCH V3 3/4] Extend NWFilter parameter parser to cope with lists of values



On 10/27/2011 06:09 AM, Daniel P. Berrange wrote:
On Mon, Oct 24, 2011 at 12:07:29PM -0400, Stefan Berger wrote:
Index: libvirt-acl/docs/schemas/nwfilter.rng
===================================================================
--- libvirt-acl.orig/docs/schemas/nwfilter.rng
+++ libvirt-acl/docs/schemas/nwfilter.rng
@@ -313,14 +313,16 @@
        <data type="NCName"/>
      </attribute>
      <optional>
-<element name="parameter">
-<attribute name="name">
-<ref name="filter-param-name"/>
-</attribute>
-<attribute name="value">
-<ref name="filter-param-value"/>
-</attribute>
-</element>
+<zeroOrMore>
+<element name="parameter">
+<attribute name="name">
+<ref name="filter-param-name"/>
+</attribute>
+<attribute name="value">
+<ref name="filter-param-value"/>
+</attribute>
+</element>
+</zeroOrMore>
      </optional>
    </define>
Since you have<zeroOrMore>  I think you can remove the parent<optional>
element now
Fixed.
   Stefan


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