How to reproduce:
- Open the attached "IN-145890_xsderror" project
- Open Assets\SchemaBugTest.uxml in Rider
- Observe the Problems window
Actual result: <Style>, <Template> and <Instance> are flagged "not allowed" under <UXML> - the generated UXMLType schema doesn't permit them
Expected result: No errors are thrown
Reproducible with: 6000.0.0f1, 6000.0.78f1, 6000.3.18f1, 6000.5.1f1, 6000.6.0b1, 6000.7.0a1
Reproducible on: Windows 11 (25H2)
Not reproducible on: No other environments tested
Note: To inspect the generated schema directly: open the project folder, UIElementsSchema\UnityEngine.UIElements.xsd. Find the "UXMLType" complexType - its [xs:choice|xs:choice] lists only <xs:element ref="tns:VisualElement" />. The Style/Template/Instance elements (and StyleType/TemplateType/InstanceType) are defined further down in the same file but are never referenced from UXMLType