In a standard install my $xslfile = C4::Context->config('intranetdir')."/koha-tmpl/intranet-tmpl/prog/en/xslt/compact.xsl"; fails because that path doesn't exist.
Patch sent
Is this a problem in master?
Looks like Owen has fixed this in master.