You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Anna Afonchenko <an...@ubaccess.com> on 2002/12/16 12:25:46 UTC
Using saxon extensions in Cocoon?
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 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
Re: Using saxon extensions in Cocoon?
Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
You may have multiple independent problems in your
setup:
I understand your environment is as folows:
1.) there are two independent webapps running in your container,
a.) the original cocoon webapp
b.) your cocoon-dev webapp
2.) You have inserted saxon-6.5.2.*.jar into the WEB-inf/lib
of your cocoon-dev.
Now when accessing your pages within cocoon-dev, you get the
error xml page can't be displayed.
Please look into the cocoon logs (WEB-INF/logs/core.log) and
search for the last stack trace. On top of this stack trace
you may find the original Saxon message, that created this
failure. You will have to look around a bit. Eventually you will
find the cause of your problem in the logs.
3.) You have inserted saxon-6.5.2*.jar additionally into your
cocoon webapp
Now you get /cocoon is not available.
That seems to be something with your tomcat setup. Look into
the logfiles of your tomcat container and check, if one of
your webapps has crashed ?
By the way, did you restart tomcat after you changed the
cocoon.xconf ?
regards, hussayn
Anna Afonchenko wrote:
> 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" <da...@saxess.com>
> To: <co...@xml.apache.org>
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using saxon extensions in Cocoon?
Posted by Anna Afonchenko <an...@ubaccess.com>.
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" <da...@saxess.com>
To: <co...@xml.apache.org>
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using saxon extensions in Cocoon?
Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>