Support vendor prefixes in SCL Private imports

已合并 庞浩请求将2-scl-import-parsing合并到feature/current-work

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 baseline 324a4f7; 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 csg compatibility 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; csg warning; 20.471 s in the final run.
  • Follow-up invalid-file UI check: No file loaded, 0 IED, no stale compatibility warning, and no All 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-work because issue #2 (closed) reproduces against commit 324a4f7 on that branch; main does not contain the Python CLI and related current-work features.

Closes #2 (closed)

合并请求报告