Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -985,19 +985,28 @@ function xml_validate_jing()
$cmdJing = "java -jar {$srcdir}/docbook/jing.jar {$schema} {$idempath}";
exec( $cmdJing , $out , $ret );

if ( ! is_array( $out ) )
$out = [];

if ( $ret == 0 )
{
echo "done.\n";
return;
}
else
{
echo "failed.\n";
if ( is_array( $out ) )
foreach ( $out as $line )
echo "$line\n";

echo "failed.\n";
foreach ( $out as $line )
echo "$line\n";

// Allow translations with missing/mismatched IDREFs to continue building.

$countFatal = count( $out );
foreach ( $out as $line )
if ( preg_match( '/IDREF "[^"]+" without matching ID/', $line ) )
$countFatal--;

if ( $GLOBALS['ac']['LANG'] === 'en' || $countFatal > 0 )
errors_are_bad( 1 );
}
}

function xml_validate_libxml( $dom )
Expand Down