The invocation of xsltproc uses an environment export of the form "export VAR=value" which does not work in pure bourne shells like the Solaris sh where this must be written as "VAR=value ; export VAR". The attached patch fixes the issue (slightly edited).
Created attachment 8493 [details] Patch
*** This bug has been marked as a duplicate of bug 9595 ***