You might have better luck with using libxml2/libxslt as your XSLT processor. Most people find it more reliable and faster (though it can be more of a pain to install, if you can get XML::LibXSLT installed from CPAN you should be OK).
On Thursday 11 September 2003 11:11 am, Cedric Passerini wrote: > Hi, > > I installed AxKit 1.62 and the OpenOffice Provider. AxKit works fine with > .xml files, but I have some problem running the OpenOffice Provider. > > When I try to access an OpenOffice document (.sxw), my browser displays > the content.xml file (without HTML tags). > > Here is the error_log : > > [warn] [AxKit] fast handler called for /test.sxw > [warn] [AxKit] Running plugin: Apache::AxKit::Plugin::OpenOffice > [warn] [AxKit] Content Provider Override: > Apache::AxKit::Provider::OpenOffice [warn] [AxKit] decoding from UTF-8 > [warn] [AxKit] [req] File Provider given $r: /intranet/htdocs/test.sxw > [warn] [AxKit] checking if we process this resource > [warn] [AxKit] media: screen, preferred style: #default > [warn] [AxKit] Cache: key = 54ce1004a74f3709a42aca48c6c41155 > [warn] [AxKit] getting styles and external entities from the XML > [warn] [AxKit] styles cached > [warn] [AxKit] cache doesn't exist > [warn] [AxKit] some condition failed. recreating output > [warn] [AxKit] styles: > Apache::AxKit::Language::Sablot(/stylesheets/oo2html.xsl) > [warn] [AxKit] Style Provider Override: Apache::AxKit::Provider::File > [warn] [AxKit] [uri] File Provider looking up uri /stylesheets/oo2html.xsl > [warn] [AxKit] encoding to UTF-8 > [warn] [AxKit] [uri] File Provider set filename to > /intranet/htdocs/stylesheets/oo2html.xsl > [warn] [AxKit] about to execute: Apache::AxKit::Language::Sablot::handler > [error] [AxKit] [Sablotron] [45] Error: msgtype:error :: code:45 :: > module:Sablotron :: URI:arg:/template :: line:136 :: node:element > '<xsl:apply-templates>' :: msg:variable not found > [warn] [AxKit] Caught an exception > [warn] [AxKit] [DECLINED] From: /usr/lib/perl5/site_perl/5.8.0/Error.pm : > 148 > > It seems that Sablotron produces an error with that line of the > oo2html.xsl file : > [line 136] <xsl:apply-templates select="$meta"/> > > and "$meta" is defined in the oocommon.xsl file like this : > > <xsl:variable > name="meta" > select="document( concat( $oo.sxwfile, '/meta.xml'), > /)/office:document-meta/office:meta" > /> > > > If I try to write that xsl:variable in the oo2html.xsl file, I have the > following error : > > [error][AxKit] [Sablotron] [45] Error: msgtype:error :: code:45 :: > module:Sablotron :: URI:arg:/template :: line:20 :: node:element > '<xsl:variable>' :: msg:variable not found > > > I'm using AxKit 1.62, Apache 1.3.26, mod_perl 1.27, Perl 5.8.0, Sablotron > 0.82, XML::Sablotron 0.98, Apache-AxKit-Provider-OpenOffice 1.02 > > Any advice ? > > Cedric > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Giant Electronic Brain Internet/E-Commerce Consulting Services --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
