Skip to content

Fix/unresolvable reference - #37

Merged
PonteIneptique merged 2 commits into
mainfrom
fix/unresolvable-reference
Sep 24, 2026
Merged

PonteIneptique merged 2 commits into
mainfrom
fix/unresolvable-reference

Conversation

@PonteIneptique

Copy link
Copy Markdown
Member

No description provided.

…ences

A reference whose unit only exists under a later occurrence of a repeated
milestone parent (e.g. a column the text comes back to) resolved to None,
and generate_xpath() handed None to Saxon as an XPath context, which
segfaulted. A missing parent ("9.A" without column 9) silently resolved
to the first matching child of the whole document.

- _resolve_groups stops at the first unit it cannot find
- generate_xpath raises UnresolvableReference (a ValueError)
- get_xpath_proc refuses a None context instead of reaching Saxon
@PonteIneptique
PonteIneptique merged commit 84a87dc into main Sep 24, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant