Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(write): force adding local namespace declarations
This ensures that we always use the inner most form for namespace declarations in cases where namespaces are declared multiple times, with different prefixes: ```xml <root:complexNesting xmlns:root="http://properties" id="ComplexNesting"> <complexNesting xmlns="http://properties"> <complexNesting> <foo:complexNesting xmlns:foo="http://properties" /> </complexNesting> </complexNesting> </root:complexNesting> ``` Outer, unused declarations are still cleaned up accordingly, as this is our existing behavior. This means that we never export something like this (because we strip the global, unused declaration): ```xml <root xmlns="http://extended" xmlns:unused="http://properties" id="Root"> <base xmlns="http://properties" /> </root> ``` Related to bpmn-io/bpmn-js#1310
- Loading branch information