Subject: Re: LibXSLT problem (possibly)



On Wednesday, 04. January 2006 23:08, Aaron Steager wrote:

> in makeforelements.xsl. I did check it and there is only one instance
> of each template. Also the web files and perl files were pulled over
> from another AxKit system we have and it all works fine on that one so I
> think the different versions may be the issue.> Hi all,
> I tracked the problem further and have it narrowed down but not sure
> what the problem is. I did alot of searching on google and forums to see
> if anybody encountered this before and I couldn't find any that came
> close to matching my problem The pertaint info from the error log is
>
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit] LibXSLT
> match_uri: /styles/emailalerts.xsl
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit] LibXSLT
> open_content_uri: /styles/emailalerts.xsl
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit] Style
> Provider Override: Apache::AxKit::Provider::File
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit]
> decoding from UTF-8
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit] [req]
> File Provider given $r: /usr/local/www/data/mvp/styles/emailalerts.xsl
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit]
> encoding to UTF-8
> compilation error: file /styles/makeformelements.xsl line 8 element
> template xsl:template: error duplicate name 'make-textfield'
> compilation error: file /styles/makeformelements.xsl line 66 element
> template
> xsl:template: error duplicate name 'make-textfield-ho'
> compilation error: file /styles/makeformelements.xsl line 123 element
> template
> xsl:template: error duplicate name 'make-textarea'
> compilation error: file /styles/makeformelements.xsl line 170 element
> template
> xsl:template: error duplicate name 'make-checkbox'
> compilation error: file /styles/makeformelements.xsl line 204 element
> template
> xsl:template: error duplicate name 'make-selectlist'
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit]
> [LibXSLT] performing transformation
> [Wed Jan 4 14:52:32 2006] [warn] [client 192.168.2.222] [AxKit] Caught
> an exception
> [Wed Jan 4 14:52:32 2006] [error] [client 192.168.2.222] [AxKit]
> [Error] Can't call method "transform" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.7/mach/Apache/AxKit/Language/LibXSLT.pm
> line 124.\n
> [Wed Jan 4 14:52:32 2006] [error] [client 192.168.2.222] [AxKit] From:
> /usr/local/lib/perl5/site_perl/5.8.7/mach/Apache/AxKit/Exception.pm : 9
>
> In emailalerts.xsl I have
>
> <xsl:include href="/styles/makeformelements.xsl"/>
> .......
> <xsl:call-template name="make-checkbox">
> <xsl:with-param
> name="checkname">monthly_winners</xsl:with-param>
> <xsl:with-param name="checklabel">Monthly Winner
> Alerts</xsl:with-param>
> <xsl:with-param name="checkvalue">1</xsl:with-param>
> <xsl:with-param name="checked"><xsl:value-of
> select="monthly_winners"/></xsl:with-param>
> <xsl:with-param name="newline">1</xsl:with-param>
> </xsl:call-template>
>
> to make a checkbox. And if I'm understanding the error it's saying that
> there are multiple
>
> <xsl:template name="make-....">
>

Your XSLT is probably faulty. I have made the experience that libxslt is
usually right in saying you do something wrong, although it often fails to be
helpful ;)

Newer libxslt versions often catch more errors, and what may work in older
versions by coincidence may now be wrong. Try commenting large parts of your
stylesheets to narrow down the problematic locations.

--
CU
JÃrg




Privacy