8000 XSD Validation error for Dependency Injection · Issue #17460 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
XSD Validation error for Dependency Injection #17460
Closed
@chippyash

Description

@chippyash

http://symfony.com/schema/dic/services/services-1.0.xsd fails validation in both PhpStorm and OxygenXml

error is (output from OxygenXml when validating the XSD file)

System ID: http://symfony.com/schema/dic/services/services-1.0.xsd
Main validation file: http://symfony.com/schema/dic/services/services-1.0.xsd
Engine name: Saxon-EE 9.5.1.7
Severity: fatal
Description: Error in complex type container: Ambiguous content model, there are two xs:any wildcards that match overlapping sets of namespaces
Start location: 20:0

and appears to be caused by a duplicate definition of

<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />

at L 27 & 31

net result is that DI container utilising an XML definition won't compile.

[edit]
Container definition will compile under most circumstances but if there is a slight error in the xml that is not caught by the XSD, (XSD is not a perfect tool in and of itself,) then it appears that most of these parsers lose their way. However, the invalid syntax of the XSD itself is a problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0