diff --git a/configure.php b/configure.php index fa26ad285..6338f1b4d 100755 --- a/configure.php +++ b/configure.php @@ -814,10 +814,16 @@ function getFileModificationHistory(): array { } } -{ # Automatic xi:include / xi:fallback fixups +if ( $ac['LANG'] != 'en' ) +{ + // XInclude failures are soft errors on translations, so remove + // residual XInclude tags on translations to keep them building. + + $explain = false; $xpath = new DOMXPath( $dom ); - $nodes = $xpath->query( "//*[local-name()='include']" ); + $xpath->registerNamespace( "xi" , "http://www.w3.org/2001/XInclude" ); + $nodes = $xpath->query( "//xi:include" ); foreach( $nodes as $node ) { $fixup = null; @@ -831,8 +837,15 @@ function getFileModificationHistory(): array { case "refsect1": $fixup = "