Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

XSD Validation error for Dependency Injection #17460

Copy link
Copy link
Closed
@chippyash

Description

@chippyash
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.