XSLT Error - parser error : Document is empty

webeau nginx-forum at forum.nginx.org
Fri Jun 30 05:32:04 UTC 2017

I have been using the same XSLT files and proxy to an xml document for
several generations without any problem.  Recently (~1.11) I am getting an
error when I do 'nginx -t':

/etc/nginx/xsl/so.xslt:1: parser error : Document is empty
xsltParseStylesheetFile : cannot parse /etc/nginx/xsl/so.xslt
nginx: [error] xsltParseStylesheetFile("/etc/nginx/xsl/so.xslt") failed in
nginx: configuration file /etc/nginx/nginx.conf test failed

I have made no changes to the config or the xslt but have never seen this
error before.

When I use xlstproc using the same stylesheet with the url to the xml file,
the transform works as expected.  I am uncertain why this behavior changed.

I am looking for suggestions on how I might diagnose this issue further.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275228,275228#msg-275228

More information about the nginx mailing list