I'm not sure how to explain what the problem is but I will do my best with what I have got. This problem might be related to xsp but I am not sure because changing the xsl page gives a different problem. Here goes.
I have this xsp page, and it calls a perl module that I have tested and used in .epl and other .pl files. This page is located in /home/ from my web doc root. index.xsp <?xml version="1.0" encoding="UTF-8"?> <xsp:page language="Perl" xmlns:xsp="http://apache.org/xsp/core/v1" xmlns:except="http://axkit.org/NS/xsp/exception/v1" xmlns:param="http://axkit.org/NS/xsp/param/v1" xmlns:cookie="http://axkit.org/NS/xsp/cookie/v1" xmlns:session="http://www.apache.org/1999/XSP/Session" xmlns:auth="http://www.creITve.de/2002/XSP/Auth" xmlns:global="http://www.creITve.de/2002/XSP/Session" > <xsp:structure> <xsp:import>MyLib::Modules</xsp:import> </xsp:structure> <TMST> <BodyInformation> <Title>Modules</Title> <xsp:logic> my $module = MyLib::Modules->new( { id => 4 }); <Modules> <ModuleId><xsp:expr>$module->title</xsp:expr></ModuleId> </Modules> </xsp:logic> </BodyInformation> </TMST> </xsp:page> And in my http.conf file I point an xsl sheet for all pages in this dir: <Location /home/> AxAddProcessor text/xsl /home/xsl/home.xsl </Location> And here is the xsl: home.xsl <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <xsl:template match="/TMST/BodyInformation"> <TABLE widht="100%" cellpadding="3" cellspacing="0" border="0"> <TR> <TD><B><xsl:value-of select="Title"/></B></TD> </TR> <xsl:apply-templates /> </TABLE> </xsl:template> <xsl:template match="Module"> <TR> <TD><xsl:value-of select="ModuleId"/></TD> </TR> </xsl:template> </xsl:stylesheet> Now, when I access the index.xsp page all it does is print out my perl code to the screen: MyLib::Modules Modules my $module = MyLib::Modules->new( { id => 4 }); $module->title When I look at the source code the page shows basically this: <?xml version="1.0" encoding="UTF-8"?> <TMST><BodyInformation> toomuchsparetime::Modules Modules my $module = toomuchsparetime::Modules->new( { id => 4 }); $module->title </BodyInformation></TMST> It looks like it's not doing the xsl transform for some reason. Plus it's not executing the perl code, like server doesn't know what to do with .xsp pages. But, I know I have the http.conf file setup because if I access a .xml page it will use the xsl page for and do the transform. Another error I encountered happened when trying to hack at this problem and I can't remember the differences I made, but the error started out with: expected > at line ### MyLib::Module ... ^ I'm not sure what caused that either, but right now I am so clueless as to what to try to do. Any hints or suggestions would be greatly greatly appreciated. Thanks, Jason Kumpf --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
