Hi Hussayn. Thank you for your help I looked on the hint enabling saxon, and I am meeting the following problems:
under the Tomcat webapps directory I have the original cocoon directory, and I have cocoon-dev, my working directory with the WebInf dir copied from the original cocoon. I edited the cocoon.xconf file, adding <component role="org.apache.cocoon.components.xslt.XSLTProcessor/Saxon" class="org.apache.cocoon.components.xslt.XSLTProcessorImpl" logger="core.xslt-processor"> <parameter name="use-store" value="true"/> <parameter name="incremental-processing" value="false"/> <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/> </component> and I copied the saxon.jar to the WebInf/lib dir. Now my problem starts: When I put the saxon.jar only in cocoon dir, but not in the cocoon-dev dir, the cocoon works, but I still can't use any saxon functions, because if I do, I get the error: The XML page cannot be displayed... If I put the saxon.jar in the cocoon-dev directory too, the cocoon stops running at all, giving me the error: type Status report message /cocoon description The requested resource (/cocoon) is not available. Can you explain this mistery to me, please? I am very confused, and stuck on my work because of this. Thank you very very much. Anna ----- Original Message ----- From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 16, 2002 2:57 PM Subject: Re: Using saxon extensions in Cocoon? you need to enable saxon. there are some hint in the cocoon-wiki at http://outerthought.net/wiki/Wiki.jsp I gathered all infos i could find on this issue into one "howto" document. What i did is documented in http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install You will find info, how I managed building a fresh cocooon with saxon support and a little bit more, but it is currently an internal document. I'm still workming on it ;-) good luck, hussayn Anna Afonchenko wrote: > Hi all. > I have an xsl stylesheet that uses a few saxon extension functions. > When I was applying this stylesheet on an xml file through command line, > everything worked, > but now I am trying to run it through Cocoon, and I get the message: > > The XML page cannot be displayed > > Cannot view XML input using style sheet. Please correct the error and > then click the Refresh <javascript:location.reload()> button, or try > again later. > > ------------------------------------------------------------------------ > > XML document must have a top level element. Error processing resource > 'http://localhost:8080/cocoon-dev/ub/violations.html'. > > And if I look in the source of this page, it is empty. > If I remove the line in xsl that uses saxon function, everything else > works fine. > > How can I use saxon extensions from Cocoon? > I am sure that should be simple, but I can't work it out myself. > > Thank you very much for your help. > > Anna --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>