Re: Problem with homemade logicsheet

2002-09-25 Thread Vadim Gritsenko

Alan Hodgkinson wrote:

>>Jeff Turner wrote:
>>
>>Alan Hodgkinson wrote:
>>...
>>
>>
>>>  >>  
>>>
>> ^^^
>>
>>
>  ^
>  |
>Arrrg!+-->  'styesheet' != 'stylesheet'
>
>That solved part of the problem. As you pointed out, I also 
>had 'xsp' instead of 'xsl'. It came from copying an XSP 
>page in order to get the correct namespaces. Oops! 
>
>Jeff: many thanks for you help!
>
>..but unfortunately it doesn't solve the entire problem.
>
>That is, I cannot make the technique described in Matthew and 
>Carston's book (and the Cocoon web site) work where you use 
>the 'context:' protocol to define the location of xsl file. 
>
>  
>
>value="http://softxs.ch/cocoon/logicalOutput/1.0"/>
>
>  
>
>I've tried the following variations in cocoon.xconf for the 
>logicsheet href. All of them fail:
>
>  context://lop.xsl
>  context://logicsheets/lop.xsl
>  file:///lop.xsl
>  file:///logicsheets/lop.xsl
>
>..they all cause a resource not found error in the logs.
>
>As a last resort I tried:
>
>  logicsheets/lop.xsl
>
>E.g. with no protocol in the href. This appears to work, but 
>don't ask me why! For now it's an acceptible work-around, but it 
>definitely does not seem to be working as documented. Strange.
>
>Note that I can also make the logic sheet work if I configure my 
>cocoon.xconf as follows:
>
>  
>
>value="http://softxs.ch/cocoon/logicalOutput/1.0"/>
>
>  
>
>but this requires me to create a jar file with the appropriate
>structure that I place in WEB-INF/lib. And then you have to bounce
>Tomcat, makeing the developement cycle much slower.
>
>I'd appreciate any feedback on the way the href in cocoon.xconf
>is supposed to function.
>

Is this the same bug?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10473

Vadim


>Best wishes,
>
>Alan.
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Problem with homemade logicsheet

2002-09-25 Thread Alan Hodgkinson


> Jeff Turner wrote:
> 
> Alan Hodgkinson wrote:
> ...
> > ^^^
  ^
  |
Arrrg!+-->  'styesheet' != 'stylesheet'

That solved part of the problem. As you pointed out, I also 
had 'xsp' instead of 'xsl'. It came from copying an XSP 
page in order to get the correct namespaces. Oops! 

Jeff: many thanks for you help!

..but unfortunately it doesn't solve the entire problem.

That is, I cannot make the technique described in Matthew and 
Carston's book (and the Cocoon web site) work where you use 
the 'context:' protocol to define the location of xsl file. 

  

http://softxs.ch/cocoon/logicalOutput/1.0"/>

  

I've tried the following variations in cocoon.xconf for the 
logicsheet href. All of them fail:

  context://lop.xsl
  context://logicsheets/lop.xsl
  file:///lop.xsl
  file:///logicsheets/lop.xsl

..they all cause a resource not found error in the logs.

As a last resort I tried:

  logicsheets/lop.xsl

E.g. with no protocol in the href. This appears to work, but 
don't ask me why! For now it's an acceptible work-around, but it 
definitely does not seem to be working as documented. Strange.

Note that I can also make the logic sheet work if I configure my 
cocoon.xconf as follows:

  

http://softxs.ch/cocoon/logicalOutput/1.0"/>

  

but this requires me to create a jar file with the appropriate
structure that I place in WEB-INF/lib. And then you have to bounce
Tomcat, makeing the developement cycle much slower.

I'd appreciate any feedback on the way the href in cocoon.xconf
is supposed to function.

Best wishes,

Alan.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Problem with homemade logicsheet

2002-09-24 Thread Jeff Turner

On Tue, Sep 24, 2002 at 01:25:22PM +, Alan Hodgkinson wrote:
...
>   http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Problem with homemade logicsheet --> bug or config error?

2002-09-24 Thread Alan Hodgkinson


Alan Hodgkinson wrote:

> I'm trying to implement and integrate my own logic sheet and
> am having trouble deploying it. I suspect that the problem
> is related to the href that defines the buildit-logicsheet
> in cocoon.xconf.

> I've exhausted all the tips from similar problems that I found in
> the mail archives.

And noticed a recent, similar mail where it mentions that logicsheets 
have 'stopped working'. 

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg18252.html

Could this be related?

> Perhaps one of you gurus could help.

Yup.. definitely gonna need a guru. Even if it's just to find the 
dumb mistake that _I_ made.
 
> My environment is:
> - CVS head (as of 11-Sep-2002)

I updated to the latest CVS head. (Logging seems slightly better, 
thanks!)

> - Toomcat 4.0.1
> - JDK 1.3.0rc1-b17.

I have been trying again to solve this by creating a jar file and
referencing it using "resouce://ch/softxs/cocoon/lop.xsl" in 
cocoon.xconf. I then placed the jar file in WEB-INF/lib in my
application directory ( $TOMCAT_HOME/webapps/tc ). Is that what 
we're supposed to do?

In any case, it didn't work either. But now it reports errors
corresponding to what is in the lop.xsl file, which means that
the cocoon.xconf is at least functioning (though it quite 
irritating that the context: and file: protocols don't work as
documented, because I have to restart cocoon after every change)

I notice in the logs the following error:

  ERROR   (2002-09-24) 19:48.44:261   [core.xslt-processor]
(/test/lop-select.html)   
  HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:   
  resource://ch/softxs/cocoon/lop.xsl; Line 7; Column 59; 
  ; SystemID: resource://ch/softxs/cocoon/lop.xsl; Line#: 7; Column#: 59
  javax.xml.transform.TransformerException: stylesheet requires
attribute: 
  version

Which I presume is refering to initial tag . Well, I do
have a version="1.0" in that tag. See below..

> 
> Relevant file extracts follow:
> --
> 
> The xsp page: lop-select.xsp
> 
>language="java"
> xmlns:xsp="http://apache.org/xsp";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";
> xmlns:lop="http://softxs.ch/cocoon/logicalOutput";
>   >
>   
>  connection="timetracker"
> table="Projects"
> value-field="projectId"
> text-field="name"/>
>   
>   
> 
> The logicsheet: lop.xsl
> 
>   
Added the following line: (is it required at the start of XSP and XSL
files?)



>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:xsp="http://apache.org/xsp";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";
> xmlns:lop="http://softxs.ch/cocoon/logicalOutput";>
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> >From sitemap.xmsp: The request used to test is: 'select-lop.html'
> 
>   
> 
> 
>   

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>