This is an automated email from the ASF dual-hosted git repository.

tkobayas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/main by this push:
     new 7ab182fe24 [incubator-kie-drools-6159] Clean up rules in xml format 
(#6198)
7ab182fe24 is described below

commit 7ab182fe2403c7e1656dc78997d4351830cabeaa
Author: Toshiya Kobayashi <[email protected]>
AuthorDate: Wed Dec 18 18:14:49 2024 +0900

    [incubator-kie-drools-6159] Clean up rules in xml format (#6198)
---
 .../src/main/resources/META-INF/drools-4.0.xsd     | 357 --------------------
 .../src/main/resources/META-INF/drools-5.2.xsd     | 359 ---------------------
 .../resources/AllResourceTypes/simple-xmlrule.xml  |  41 ---
 3 files changed, 757 deletions(-)

diff --git a/drools-compiler/src/main/resources/META-INF/drools-4.0.xsd 
b/drools-compiler/src/main/resources/META-INF/drools-4.0.xsd
deleted file mode 100644
index 6c56868ca1..0000000000
--- a/drools-compiler/src/main/resources/META-INF/drools-4.0.xsd
+++ /dev/null
@@ -1,357 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<xs:schema xmlns:drools="http://drools.org/drools-5.0"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" 
targetNamespace="http://drools.org/drools-5.0";>
-  <xs:element name="package">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:import"/>
-        <xs:element ref="drools:importfunction"/>
-        <xs:element ref="drools:global"/>
-        <xs:element ref="drools:function"/>
-        <xs:element ref="drools:rule"/>
-        <xs:element ref="drools:query"/>
-      </xs:choice>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="rule">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element maxOccurs="unbounded" minOccurs="0" 
ref="drools:rule-attribute"/>
-        <xs:element ref="drools:lhs"/>
-        <xs:element ref="drools:rhs"/>
-      </xs:sequence>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-<!-- All rules must have unique names -->
-    <xs:key name="ruleName">
-      <xs:selector xpath="drools:rule"/>
-      <xs:field xpath="@name"/>
-    </xs:key>
-  </xs:element>
-  <xs:element name="query">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element ref="drools:lhs"/>
-      </xs:sequence>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-<!-- All rules must have unique names -->
-    <xs:key name="queryName">
-      <xs:selector xpath="drools:query"/>
-      <xs:field xpath="@name"/>
-    </xs:key>
-  </xs:element>
-  <xs:element name="rule-attribute">
-    <xs:complexType>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-      <xs:attribute name="value" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="import">
-    <xs:complexType>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-    <xs:element name="importfunction">
-      <xs:complexType>
-        <xs:attribute name="name" type="xs:string" use="required"/>
-      </xs:complexType>
-    </xs:element>
-  <xs:element name="global">
-    <xs:complexType>
-      <xs:attribute name="type" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="function">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element maxOccurs="unbounded" minOccurs="0" 
ref="drools:parameter"/>
-        <xs:element name="body" type="xs:string"/>
-      </xs:sequence>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-      <xs:attribute name="return-type" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="parameter">
-    <xs:complexType>
-      <xs:attribute name="type" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="rhs" type="xs:string"/>
-  <xs:element name="lhs">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:abstractConditionalElement"/>
-        <xs:element ref="drools:not"/>
-        <xs:element ref="drools:exists"/>
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:eval"/>
-        <xs:element ref="drools:forall"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-<!-- Restriction Conective  -->
-  <xs:element name="abstractRestrictionConnective" 
type="drools:restrictionElementType" abstract="true"/>
-  <xs:element name="abstractConditionalElement" 
type="drools:conditionalElementType" abstract="true"/>
-  <xs:element name="abstractConstraintConective" 
type="drools:constraintConnectiveElementType" abstract="true"/>
-  <xs:complexType name="restrictionElementType">
-    <xs:choice maxOccurs="unbounded" minOccurs="0">
-      <xs:element ref="drools:literal-restriction"/>
-      <xs:element ref="drools:variable-restriction"/>
-      <xs:element ref="drools:return-value-restriction"/>
-      <xs:element ref="drools:qualified-identifier-restriction"/>
-    </xs:choice>
-  </xs:complexType>
-  <xs:complexType name="conditionalElementType">
-    <xs:choice maxOccurs="unbounded" minOccurs="0">
-      <xs:element ref="drools:not"/>
-      <xs:element ref="drools:exists"/>
-      <xs:element ref="drools:eval"/>
-      <xs:element ref="drools:pattern"/>
-    </xs:choice>
-  </xs:complexType>
-  <xs:complexType name="constraintConnectiveElementType">
-    <xs:choice maxOccurs="unbounded" minOccurs="0">
-      <xs:element ref="drools:field-constraint"/>
-    </xs:choice>
-  </xs:complexType>
-  <xs:element name="and-restriction-connective" 
substitutionGroup="drools:abstractRestrictionConnective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:restrictionElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:or-restriction-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="or-restriction-connective" 
substitutionGroup="drools:abstractRestrictionConnective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:restrictionElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:and-restriction-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-<!-- Conditional Element -->
-  <xs:element name="and-conditional-element" 
substitutionGroup="drools:abstractConditionalElement">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:conditionalElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:or-conditional-element"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="or-conditional-element" 
substitutionGroup="drools:abstractConditionalElement">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:conditionalElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:and-conditional-element"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-<!-- Logical Connectives -->
-  <xs:element name="and-constraint-connective" 
substitutionGroup="drools:abstractConstraintConective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:constraintConnectiveElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:or-constraint-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="or-constraint-connective" 
substitutionGroup="drools:abstractConstraintConective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:constraintConnectiveElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:and-constraint-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="not">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="1">
-        <xs:element ref="drools:abstractConditionalElement"/>
-        <xs:element ref="drools:not"/>
-        <xs:element ref="drools:exists"/>
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:accumulate"/>
-        <xs:element ref="drools:collect"/>
-        <xs:element ref="drools:forall"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="exists">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:abstractConditionalElement"/>
-        <xs:element ref="drools:accumulate"/>
-        <xs:element ref="drools:collect"/>
-        <xs:element ref="drools:forall"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="forall">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:pattern"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="collect">
-    <xs:complexType>
-      <xs:choice maxOccurs="1" minOccurs="1">
-        <xs:element ref="drools:pattern"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="expression" type="xs:string"/>
-  <xs:group name="accumulate">
-    <xs:sequence>
-      <xs:choice>
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:abstractConditionalElement"/>
-      </xs:choice>
-      <xs:choice>
-        <xs:sequence>
-          <xs:element name="init" type="xs:string"/>
-          <xs:element name="action" type="xs:string"/>
-          <xs:element name="result" type="xs:string"/>
-        </xs:sequence>
-        <xs:element ref="drools:external-function"/>
-      </xs:choice>
-    </xs:sequence>
-  </xs:group>
-  <xs:element name="accumulate">
-    <xs:complexType>
-      <xs:choice maxOccurs="1" minOccurs="1">
-        <xs:group ref="drools:accumulate"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="from">
-    <xs:complexType>
-      <xs:choice maxOccurs="1">
-        <xs:element ref="drools:collect"/>
-        <xs:element ref="drools:expression"/>
-        <xs:element ref="drools:accumulate"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="eval" type="xs:string"/>
-  <xs:element name="pattern">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:field-binding"/>
-        <xs:element ref="drools:field-constraint"/>
-        <xs:element ref="drools:from"/>
-        <xs:element ref="drools:predicate"/>
-        <xs:element ref="drools:abstractConstraintConective"/>
-      </xs:choice>
-      <xs:attribute name="field-name" type="xs:string" use="optional"/>
-      <xs:attribute name="identifier" type="xs:string" use="optional"/>
-      <xs:attribute name="object-type" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="field-constraint">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:restrictionElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:abstractRestrictionConnective"/>
-          </xs:choice>
-          <xs:attribute name="field-name" type="xs:string" use="required"/>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="field-binding">
-    <xs:complexType>
-      <xs:attribute name="field-name" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="literal-restriction">
-    <xs:complexType>
-      <xs:attribute name="evaluator" type="xs:string" use="required"/>
-      <xs:attribute name="value" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="external-function">
-    <xs:complexType>
-      <xs:attribute name="evaluator" type="xs:string" use="required"/>
-      <xs:attribute name="expression" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="variable-restriction">
-    <xs:complexType>
-      <xs:attribute name="evaluator" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="return-value-restriction">
-    <xs:complexType>
-      <xs:simpleContent>
-        <xs:extension base="xs:string">
-          <xs:attribute name="evaluator" type="xs:string" use="required"/>
-        </xs:extension>
-      </xs:simpleContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="qualified-identifier-restriction">
-    <xs:complexType>
-      <xs:simpleContent>
-        <xs:extension base="xs:string">
-          <xs:attribute name="evaluator" type="xs:string" use="required"/>
-        </xs:extension>
-      </xs:simpleContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="predicate">
-    <xs:complexType>
-      <xs:simpleContent>
-        <xs:extension base="xs:string">
-          <xs:attribute name="field-name" type="xs:string" use="optional"/>
-          <xs:attribute name="identifier" type="xs:string" use="optional"/>
-        </xs:extension>
-      </xs:simpleContent>
-    </xs:complexType>
-  </xs:element>
-</xs:schema>
diff --git a/drools-compiler/src/main/resources/META-INF/drools-5.2.xsd 
b/drools-compiler/src/main/resources/META-INF/drools-5.2.xsd
deleted file mode 100644
index fbc8d7195d..0000000000
--- a/drools-compiler/src/main/resources/META-INF/drools-5.2.xsd
+++ /dev/null
@@ -1,359 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<xs:schema xmlns:drools="http://drools.org/drools-5.2"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" 
targetNamespace="http://drools.org/drools-5.2";>
-  <xs:element name="package">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:import"/>
-        <xs:element ref="drools:importfunction"/>
-        <xs:element ref="drools:global"/>
-        <xs:element ref="drools:function"/>
-        <xs:element ref="drools:rule"/>
-        <xs:element ref="drools:query"/>
-      </xs:choice>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="rule">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element maxOccurs="unbounded" minOccurs="0" 
ref="drools:rule-attribute"/>
-        <xs:element ref="drools:lhs"/>
-        <xs:element ref="drools:rhs"/>
-      </xs:sequence>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-<!-- All rules must have unique names -->
-    <xs:key name="ruleName">
-      <xs:selector xpath="drools:rule"/>
-      <xs:field xpath="@name"/>
-    </xs:key>
-  </xs:element>
-  <xs:element name="query">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element ref="drools:lhs"/>
-      </xs:sequence>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-<!-- All rules must have unique names -->
-    <xs:key name="queryName">
-      <xs:selector xpath="drools:query"/>
-      <xs:field xpath="@name"/>
-    </xs:key>
-  </xs:element>
-  <xs:element name="rule-attribute">
-    <xs:complexType>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-      <xs:attribute name="value" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="import">
-    <xs:complexType>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-    <xs:element name="importfunction">
-      <xs:complexType>
-        <xs:attribute name="name" type="xs:string" use="required"/>
-      </xs:complexType>
-    </xs:element>
-  <xs:element name="global">
-    <xs:complexType>
-      <xs:attribute name="type" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="function">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element maxOccurs="unbounded" minOccurs="0" 
ref="drools:parameter"/>
-        <xs:element name="body" type="xs:string"/>
-      </xs:sequence>
-      <xs:attribute name="name" type="xs:string" use="required"/>
-      <xs:attribute name="return-type" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="parameter">
-    <xs:complexType>
-      <xs:attribute name="type" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="rhs" type="xs:string"/>
-  <xs:element name="lhs">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:abstractConditionalElement"/>
-        <xs:element ref="drools:not"/>
-        <xs:element ref="drools:exists"/>
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:eval"/>
-        <xs:element ref="drools:forall"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-<!-- Restriction Conective  -->
-  <xs:element name="abstractRestrictionConnective" 
type="drools:restrictionElementType" abstract="true"/>
-  <xs:element name="abstractConditionalElement" 
type="drools:conditionalElementType" abstract="true"/>
-  <xs:element name="abstractConstraintConective" 
type="drools:constraintConnectiveElementType" abstract="true"/>
-  <xs:complexType name="restrictionElementType">
-    <xs:choice maxOccurs="unbounded" minOccurs="0">
-      <xs:element ref="drools:literal-restriction"/>
-      <xs:element ref="drools:variable-restriction"/>
-      <xs:element ref="drools:return-value-restriction"/>
-      <xs:element ref="drools:qualified-identifier-restriction"/>
-    </xs:choice>
-  </xs:complexType>
-  <xs:complexType name="conditionalElementType">
-    <xs:choice maxOccurs="unbounded" minOccurs="0">
-      <xs:element ref="drools:not"/>
-      <xs:element ref="drools:exists"/>
-      <xs:element ref="drools:eval"/>
-      <xs:element ref="drools:pattern"/>
-    </xs:choice>
-  </xs:complexType>
-  <xs:complexType name="constraintConnectiveElementType">
-    <xs:choice maxOccurs="unbounded" minOccurs="0">
-      <xs:element ref="drools:field-constraint"/>
-    </xs:choice>
-  </xs:complexType>
-  <xs:element name="and-restriction-connective" 
substitutionGroup="drools:abstractRestrictionConnective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:restrictionElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:or-restriction-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="or-restriction-connective" 
substitutionGroup="drools:abstractRestrictionConnective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:restrictionElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:and-restriction-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-<!-- Conditional Element -->
-  <xs:element name="and-conditional-element" 
substitutionGroup="drools:abstractConditionalElement">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:conditionalElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:or-conditional-element"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="or-conditional-element" 
substitutionGroup="drools:abstractConditionalElement">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:conditionalElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:and-conditional-element"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-<!-- Logical Connectives -->
-  <xs:element name="and-constraint-connective" 
substitutionGroup="drools:abstractConstraintConective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:constraintConnectiveElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:or-constraint-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="or-constraint-connective" 
substitutionGroup="drools:abstractConstraintConective">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:constraintConnectiveElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:and-constraint-connective"/>
-          </xs:choice>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="not">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="1">
-        <xs:element ref="drools:abstractConditionalElement"/>
-        <xs:element ref="drools:not"/>
-        <xs:element ref="drools:exists"/>
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:accumulate"/>
-        <xs:element ref="drools:collect"/>
-        <xs:element ref="drools:forall"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="exists">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:abstractConditionalElement"/>
-        <xs:element ref="drools:accumulate"/>
-        <xs:element ref="drools:collect"/>
-        <xs:element ref="drools:forall"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="forall">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:pattern"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="collect">
-    <xs:complexType>
-      <xs:choice maxOccurs="1" minOccurs="1">
-        <xs:element ref="drools:pattern"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="expression" type="xs:string"/>
-  <xs:element name="expr" type="xs:string"/>  
-  <xs:group name="accumulate">
-    <xs:sequence>
-      <xs:choice>
-        <xs:element ref="drools:pattern"/>
-        <xs:element ref="drools:abstractConditionalElement"/>
-      </xs:choice>
-      <xs:choice>
-        <xs:sequence>
-          <xs:element name="init" type="xs:string"/>
-          <xs:element name="action" type="xs:string"/>
-          <xs:element name="result" type="xs:string"/>
-        </xs:sequence>
-        <xs:element ref="drools:external-function"/>
-      </xs:choice>
-    </xs:sequence>
-  </xs:group>
-  <xs:element name="accumulate">
-    <xs:complexType>
-      <xs:choice maxOccurs="1" minOccurs="1">
-        <xs:group ref="drools:accumulate"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="from">
-    <xs:complexType>
-      <xs:choice maxOccurs="1">
-        <xs:element ref="drools:collect"/>
-        <xs:element ref="drools:expression"/>
-        <xs:element ref="drools:accumulate"/>
-      </xs:choice>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="eval" type="xs:string"/>
-  <xs:element name="pattern">
-    <xs:complexType>
-      <xs:choice maxOccurs="unbounded" minOccurs="0">
-        <xs:element ref="drools:field-binding"/>
-        <xs:element ref="drools:field-constraint"/>
-        <xs:element ref="drools:from"/>
-        <xs:element ref="drools:predicate"/>
-        <xs:element ref="drools:expr"/>        
-        <xs:element ref="drools:abstractConstraintConective"/>
-      </xs:choice>
-      <xs:attribute name="field-name" type="xs:string" use="optional"/>
-      <xs:attribute name="identifier" type="xs:string" use="optional"/>
-      <xs:attribute name="object-type" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="field-constraint">
-    <xs:complexType>
-      <xs:complexContent>
-        <xs:extension base="drools:restrictionElementType">
-          <xs:choice maxOccurs="unbounded" minOccurs="0">
-            <xs:element ref="drools:abstractRestrictionConnective"/>
-          </xs:choice>
-          <xs:attribute name="field-name" type="xs:string" use="required"/>
-        </xs:extension>
-      </xs:complexContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="field-binding">
-    <xs:complexType>
-      <xs:attribute name="field-name" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="literal-restriction">
-    <xs:complexType>
-      <xs:attribute name="evaluator" type="xs:string" use="required"/>
-      <xs:attribute name="value" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="external-function">
-    <xs:complexType>
-      <xs:attribute name="evaluator" type="xs:string" use="required"/>
-      <xs:attribute name="expression" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="variable-restriction">
-    <xs:complexType>
-      <xs:attribute name="evaluator" type="xs:string" use="required"/>
-      <xs:attribute name="identifier" type="xs:string" use="required"/>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="return-value-restriction">
-    <xs:complexType>
-      <xs:simpleContent>
-        <xs:extension base="xs:string">
-          <xs:attribute name="evaluator" type="xs:string" use="required"/>
-        </xs:extension>
-      </xs:simpleContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="qualified-identifier-restriction">
-    <xs:complexType>
-      <xs:simpleContent>
-        <xs:extension base="xs:string">
-          <xs:attribute name="evaluator" type="xs:string" use="required"/>
-        </xs:extension>
-      </xs:simpleContent>
-    </xs:complexType>
-  </xs:element>
-  <xs:element name="predicate">
-    <xs:complexType>
-      <xs:simpleContent>
-        <xs:extension base="xs:string">
-          <xs:attribute name="field-name" type="xs:string" use="optional"/>
-          <xs:attribute name="identifier" type="xs:string" use="optional"/>
-        </xs:extension>
-      </xs:simpleContent>
-    </xs:complexType>
-  </xs:element>
-</xs:schema>
diff --git 
a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml
 
b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml
deleted file mode 100644
index 6baa88502f..0000000000
--- 
a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<package xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"; 
name="AllResourceTypes" xmlns="http://drools.org/drools-5.2";
-         xs:schemaLocation="http://drools.org/drools-5.2 
drools.org/drools-5.2.xsd">
-
-  <rule name="simple_rule">
-    <rule-attribute name="salience" value="10"/>
-    <rule-attribute name="no-loop" value="true"/>
-    <rule-attribute name="agenda-group" value="agenda-group"/>
-    <rule-attribute name="activation-group" value="activation-group"/>
-
-    <lhs>
-      <pattern identifier="sample" object-type="String">
-      </pattern>
-    </lhs>
-    <rhs>
-
-    </rhs>
-  </rule>
-
-</package>
-


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to