Skip to content

configure.php: recover failed XIncludes inside classsynopsis#326

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/xinclude-fixup-classsynopsis
Open

configure.php: recover failed XIncludes inside classsynopsis#326
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/xinclude-fixup-classsynopsis

Conversation

@lacatoire

@lacatoire lacatoire commented Jul 23, 2026

Copy link
Copy Markdown
Member

xinclude_residual_fixup() recovers failed XIncludes on translations per
parent element, but had no classsynopsis case, so a failed include targeting
a methodsynopsis or fieldsynopsis inside a class synopsis hard-failed the
build (Unknown parent of failed XInclude: classsynopsis).

Adds a classsynopsis case injecting a <classsynopsisinfo role="comment">
marker, a valid child per the DocBook 5.2 RNG.

Related:

@alfsb

xinclude_residual_fixup handled listitem/refentry/refsect1/tbody/variablelist
parents but not classsynopsis, so a failed XInclude targeting a methodsynopsis
or fieldsynopsis inside a class synopsis hit the default branch and hard-failed
the build (Unknown parent of failed XInclude: classsynopsis).

Add a classsynopsis case that injects a <classsynopsisinfo role="comment">
carrying the failure marker. This is a valid child of classsynopsis per the
DocBook 5.2 RNG (verified), so translations with a missing class-member include
now surface the failure and keep validating, as intended for the other parents.
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