Skip to content

xmlns aggregation #28843

@StephaneDelcroix

Description

@StephaneDelcroix

Description

Support aggregating an existing xmlns into a global one

This feature isn't supported in XLS, but it's possible to emulate this by sourcegenerating the equivalent XmlnsDefinitionAttributes

Limitation:

  • the x: namespace can't be aggregated
  • you can only aggregate into the global namespace
  • global namespace scope the current project scope

(Public) API Changes

rename 2nd ctor parameter of XmlnsDefinitonAttribute from clrNamespace to target

Usage Scenarios

[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "http://schemas.microsoft.com/dotnet/2021/maui")]

Backward Compatibility

Support this with a source gen until XLS knows how to handle it

Difficulty

Low

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions