Summary
- Accept undeclared namespace prefixes only when every use is confined to an SCL
<Private>subtree, parse an internal compatibility copy, and expose a non-blocking warning without modifying the source XML. - Use a worker-safe XML DOM implementation so large-file parsing remains in the Web Worker; transport progress, structured errors, models, and warnings through an explicit worker protocol.
- Keep frontend and Python CLI behavior aligned, and clear stale file/model/validation state after failed main or compare imports.
Validation
-
npm run build— passed. - Focused frontend tests — 18 passed.
-
python -m pytest tests -v— 44 passed. -
npm run test— 42 passed, with the same 5 pre-existing Landsnet/validation failures present at baseline324a4f7; no new failures. -
git diff --check— passed. - Original 61,828,495-byte engineering SCD, without source modification:
- Frontend Web Worker: 66 IED, 225 GOOSE, 48 SV; visible
csgcompatibility warning; full validation completed with 3,222 issues. - Python CLI: 66 IED, 203 AccessPoint, 605 ReportControl, 225 GOOSE, 48 SV, 6,272 ExtRef, 933 DataSet;
csgwarning; 20.471 s in the final run.
- Frontend Web Worker: 66 IED, 225 GOOSE, 48 SV; visible
- Follow-up invalid-file UI check:
No file loaded, 0 IED, no stale compatibility warning, and noAll checks passed; the strict namespace error retained line 2 / column 8.
Notes
- The real engineering SCD remains local and is not committed or uploaded.
- The target is
feature/current-workbecause issue #2 (closed) reproduces against commit324a4f7on that branch;maindoes not contain the Python CLI and related current-work features.
Closes #2 (closed)