Make sure that this block of code looks like
# Make verbosity level uniformly available to called scripts
# Disable network entities
# The names parameter for the XSLT stylesheet
# Enable XInclude
SKIP_VALIDATION had been always set to 0 which causes the first error
XSLTOPTS were set to XSLTOPTS="$XSLTOPTS --nonet"