apigee / api-platform-samples

Working samples for the Apigee API Platform
Apache License 2.0
498 stars 713 forks source link

all_policies.xsd schema validation error with xmllint #83

Open dteirney opened 7 years ago

dteirney commented 7 years ago

Hello, was hoping to use the all_policies.xsd to validate all of the XML files in our source tree that contain Apigee API Policies.

However, I get lots of schema validation errors using xmllint

../api-platform-samples/schemas/policy/access_entity.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/access_entity.xsd:24: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/access_entity.xsd:37: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/assign_message.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/assign_message.xsd:23: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/assign_message.xsd:36: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/basic_authentication.xsd:7: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/basic_authentication.xsd:22: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/basic_authentication.xsd:35: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/cache.xsd:11: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/cache.xsd:38: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/cache.xsd:51: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/extract_variables.xsd:16: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/extract_variables.xsd:38: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/extract_variables.xsd:51: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/flow_callout.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/flow_callout.xsd:14: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/flow_callout.xsd:27: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/java_callout.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/java_callout.xsd:15: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/java_callout.xsd:28: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/java_script.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/java_script.xsd:16: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/java_script.xsd:29: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/json_threat_protection.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/json_threat_protection.xsd:19: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/json_threat_protection.xsd:32: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/json_to_xml.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/json_to_xml.xsd:16: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/json_to_xml.xsd:29: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/keyvaluemap-operations.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Property' does already exist.
../api-platform-samples/schemas/policy/keyvaluemap-operations.xsd:6: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/keyvaluemap-operations.xsd:32: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/keyvaluemap-operations.xsd:45: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/keyvaluemap-operations.xsd:79: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyBean' does already exist.
../api-platform-samples/schemas/policy/ldap.xsd:6: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Password' does already exist.
../api-platform-samples/schemas/policy/ldap.xsd:9: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/ldap.xsd:21: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/ldap.xsd:34: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/message_logging.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/message_logging.xsd:19: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/message_logging.xsd:32: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/message_validation.xsd:6: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/message_validation.xsd:19: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/message_validation.xsd:32: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v1.xsd:9: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Property' does already exist.
../api-platform-samples/schemas/policy/oauth_v1.xsd:13: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v1.xsd:28: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v1.xsd:41: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v1.xsd:42: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'GenerateErrorResponse' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'GenerateResponse' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:9: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Property' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:12: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:67: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:80: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:81: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'customAttribute' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:90: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'generateErrorResponse' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:99: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'generateResponse' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:105: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:113: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyExpiryBean' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:120: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'token' does already exist.
../api-platform-samples/schemas/policy/oauth_v2_verify_api_key.xsd:189: element simpleType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}simpleType': A global simple type definition 'format' does already exist.
../api-platform-samples/schemas/policy/quota_spike_ratelimit.xsd:7: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Property' does already exist.
../api-platform-samples/schemas/policy/quota_spike_ratelimit.xsd:14: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/quota_spike_ratelimit.xsd:28: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/quota_spike_ratelimit.xsd:41: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/quota_spike_ratelimit.xsd:76: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyBean' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:15: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:28: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:39: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'copyAction' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:53: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameAction' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:83: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'action' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:86: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameEntry' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:90: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'removeAction' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:97: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'addAction' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:104: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameValueAction' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:133: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameValueEntry' does already exist.
../api-platform-samples/schemas/policy/raise_fault.xsd:140: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'setAction' does already exist.
../api-platform-samples/schemas/policy/regular_expression_protection.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/regular_expression_protection.xsd:24: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/regular_expression_protection.xsd:37: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/regular_expression_protection.xsd:137: element simpleType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}simpleType': A global simple type definition 'type' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Namespace' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Property' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:7: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:16: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:29: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:43: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'namespace' does already exist.
../api-platform-samples/schemas/policy/saml.xsd:61: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyBean' does already exist.
../api-platform-samples/schemas/policy/script.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/script.xsd:15: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/script.xsd:28: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:18: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:31: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:45: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'copyAction' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:59: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameAction' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:89: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'action' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:92: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameEntry' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:96: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'removeAction' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:103: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'addAction' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:110: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameValueAction' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:139: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'nameValueEntry' does already exist.
../api-platform-samples/schemas/policy/service_callout.xsd:146: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'setAction' does already exist.
../api-platform-samples/schemas/policy/statistics_collector.xsd:3: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'Property' does already exist.
../api-platform-samples/schemas/policy/statistics_collector.xsd:6: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/statistics_collector.xsd:14: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'propertyBean' does already exist.
../api-platform-samples/schemas/policy/statistics_collector.xsd:37: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/statistics_collector.xsd:50: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/xml_threat_protection.xsd:4: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/xml_threat_protection.xsd:18: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/xml_threat_protection.xsd:31: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/xml_to_json.xsd:5: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/xml_to_json.xsd:18: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/xml_to_json.xsd:31: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
../api-platform-samples/schemas/policy/xsl.xsd:6: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/xsl.xsd:19: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'stepDefinitionBean' does already exist.
../api-platform-samples/schemas/policy/xsl.xsd:32: element complexType: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': A global complex type definition 'leafBean' does already exist.
WXS schema ../api-platform-samples/schemas/all_policies.xsd failed to compile

Is the all_policies.xsd intended to be used like this?

warrenc5 commented 6 years ago

maven fails with the same error - I guess the complexType should be factored out to a common.xsd

        <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>xml-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>validate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <validationSets>
                        <validationSet>
                            <dir>src/main/schemas</dir>
                            <includes>
                                <include>**/*.xsd</include>
                            </includes>
                        </validationSet>
                        <validationSet>
                            <dir>src/main/apiproxy</dir>
                            <includes>
                                <include>**/*.xml</include>
                            </includes>
                            <systemId>src/main/schemas/all_.xsd</systemId>
                        </validationSet>
                    </validationSets>
                </configuration>
            </plugin>

There is also a validation error in jwt.xsd

lllewellyn commented 5 years ago

This issue impacts both all.xsd and all_policies.xsd. I'd love to see this working, particularly to validate shared flows.

I opened issue 113 for the error in jwt.xsd.