RE: Error handling in xsp:element...

2002-07-30 Thread Per Kreipke

> > If I do the following in an XSP, the CInclude transformer doesn't
> recognize
> > the cinclude:include element because it has no namespace associated
> with it.
> >
> > 
>
> This is incorrect.

Of course. I thought it might take it from the a parent XSP element but it
doesn't.

> >name="src">strURL
> > 
> >
> >
> > I had to change it to be:
> >
> >  > uri="http://apache.org/cocoon/include/1.0";>
>
> This is also not ok. Should be:
>
>  uri="http://apache.org/cocoon/include/1.0";>

Yep, you're right of course, copy/paste sloppiness.

> >name="src">strURL
> > 
> >
> >
> > In the second example, the condition where I forget to include both
> @prefix
> > and @uri, I get an error. But in the first example, there's no error
> even
> > though cinclude:include is an invalid XML element name without a
> namespace.
> >
> > xsp.xsl would need an extra check.
>
> It will not be efficient to do this, because this check must be made at
> run time, and every time. I guess you have not considered that this is
> possible:
>
>  uri="http://apache.org/cocoon/include/1.0";>
>   "incl" + "ude"
> 
[aside: is  a real thing?]

I see you're point. But I'm willing to let that case go for efficiency as
long as we protect the beginner from naiive mistakes like
name="cinclude:include". Just testing for ':' within @name would help
prevent highlight their error instead of doing nothing at all.

It turns out that the CIncludeTransformer (correctly) skips the element
completely (because the namespace URI isn't applied to the element) but when
you examine the XML, it's not at all apparent, especially if you've added
the cinclude namespace at the top. Instead, the cinclude:include element
continues to appear in the output, no matter what you do to the sitemap,
mistakenly thinking that the transformer isn't being executed.

Per


-
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: pb with http request

2002-07-30 Thread Joerg Heinicke

This has nothing to do with the example, it's a common error message, 
when having the XML declaration not as the absolutely first thing in the 
XML file. There must not be any whitespaces or other characters in front 
of the XML declaration and it has to be in the form as at 
http://www.w3.org/TR/REC-xml#sec-prolog-dtd. Watch for case-sensitivity 
too. Have a look in all the related files to fix the bug.

cyril vidal wrote:
> Hy, 
>  
> I just was trying to run the example wrotten by Steve Punk in "Getting 
> started with Cocoon 2" http://www.xml.com/lpt/a/2002/07/10/cocoon2.html
>  
> More precisely, the last example that calculates a factorial from a 
> numeric value submitted via HTTP POST.
>  
> Here's the sitemap:
>  
> http://apache.org/cocoon/sitemap/1.0";>



> 
>  
>  
> and here's the file mystylesheet.xsl that I've copied in integrality 
> from the original source:
>  
> 
> 

This one seems to be ok, but I can't see whether there are any 
whitespaces in the file of course.

> 
> 
> 
> 
> 
> 

> 
> 
>  
> 
> When I run this by pointing my browser to http://localhost/mypage?input=5
> 
> I receive the following error message:
> 
> *description* _org.apache.cocoon.ProcessingException: Exception in 
> creating Transform Handler: org.xml.sax.SAXParseException: The XML 
> declaration may only appear at the very beginning of the document._
> 
> _I _don't understand why this occurs. Can you help me please?
> 
> Thanks in advance,
> 
> Cyril Vidal
> Email: [EMAIL PROTECTED] 
> Web: http://www.planetexml.com

Regards,

Joerg


-
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: java.lang.OutOfMemoryError

2002-07-30 Thread Joerg Heinicke

Without a look on the stack trace OutOfMemoryError often occurs while 
having endless loops/endless recursive calls etc. in the XSLT.

Regards,

Joerg

[EMAIL PROTECTED] wrote:
> I see these OutOfMemory errors in my webserver logs. Does anybody know
> what's causing this error. I have a 3MB xml file that I am trying to
> transforming to html. My XSLT traverses this 3MB xml to extract only
> relevant information based on user's input and generate an xml out of it.
> Please help...
> 
> [30/Jul/2002:16:44:33] failure ( 503):
>Internal error: Unexpected error condition
> thrown (java.lang.OutOfMemoryError,no description), stack:
> java.lang.OutOfMemoryError
>at
> org.apache.xml.utils.FastStringBuffer.append(FastStringBuffer.java,
> Compiled Code)
>at
> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.characters(SAX2DTM.java, Compiled
> Code)
>at
> 
>org.apache.xalan.transformer.TransformerHandlerImpl.characters(TransformerHandlerImpl.java,
> 
> Compiled Code)
>at
> org.apache.cocoon.xml.AbstractXMLPipe.characters(AbstractXMLPipe.java,
> Compiled Code)
>at
> org.apache.xerces.parsers.AbstractSAXParser.characters(AbstractSAXParser.java,
> 
> Compiled Code)
>at
> org.apache.xerces.impl.XMLNamespaceBinder.characters(XMLNamespaceBinder.java,
> 
> Compiled Code)
>at
> org.apache.xerces.impl.dtd.XMLDTDValidator.characters(XMLDTDValidator.java,
> Compiled Code)
>at
> 
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java,
> 
> Compiled Code)
>at
> 
> 
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java,
>Compiled Code)
>at
> 
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java,
> 
> Compiled Code)
>at
> 
>org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java,
> 
> Compiled Code)
>at
> 
>org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java,
> 
> Compiled Code)
>at
> org.apache.xerces.parsers.XMLParser.parse(XMLParser.java, Compiled Code)
>at
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)
> 
> 
>at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:241)
>at
> 
>org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)
> 
> 
>at
> org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:142)
>at
> 
>org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java,
> 
> Compiled Code)
>at
> 
>org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java,
> 
> Compiled Code)
>at
> 
>org.apache.cocoon.www.file_.c_.iPlanet.Servers.docs.sitemap_xmap.matchN10065(docs\sitemap_xmap.java,
> 
> Compiled Code)
>at
> 
>org.apache.cocoon.www.file_.c_.iPlanet.Servers.docs.sitemap_xmap.process(docs\sitemap_xmap.java,
> 
> Compiled Code)
>at
> 
>org.apache.cocoon.www.file_.c_.iPlanet.Servers.docs.sitemap_xmap.process(docs\sitemap_xmap.java,
> 
> Compiled Code)
>at
> org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled Code)
>at
> org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
>at
> org.apache.cocoon.www.sitemap_xmap.matchN10357(www\sitemap_xmap.java,
> Compiled Code)
>at
> org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java, Compiled
> Code)
>at
> org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java, Compiled
> Code)
>at
> org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled Code)
>at
> org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
>at
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java,
> Compiled Code)
>at org.apache.cocoon.Cocoon.process(Cocoon.java,
> Compiled Code)
>at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java,
> Compiled Code)
>at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
> 
>com

RE: action not working

2002-07-30 Thread sylviat

Hi Vadim -

Thanks for the suggestion - my code now works
perfectly.  I actually knew that an action not
returning a map object will cause the rest of the
pipeline, inside the , to be skipped.  

I didn't think this was my problem because in sample
code 'employee.xsp' the action is not always executed,
yet the pipeline always executes -- at least that how
it seems. Maybe I'm missing something.

Anyway, thanks again.  It's great that you're out
there, answering questions and giving help.  It's
really appreciated.

Sylvia 


--- Vadim Gritsenko <[EMAIL PROTECTED]>
wrote:
> > From: sylviat [mailto:[EMAIL PROTECTED]]
> > 
> > Vadim, thanks a lot for your reply.  I now
> understand
> > the '../1' syntax.  Unfortunately though it seems
> that
> > this is not the problem.
> > 
> > The matchers in my pipeline are hard coded, ie:
> > 
> > 
> >  
> >  src="abc.xsp" />
> > 
> > 
> >   
> 
> If action set did not returned result (i.e., no
> action were executed),
> sitemap processing will continue, which will result
> in 404. You can add
> here something like:
> 
>  src="no-actionset.xsp" />
> 
> 
> 
> > 
> 
> Then you always will get some result on this URL.
> 
> 
> Vadim
> 
> 
> > I am getting "The requested URI /cocoon/demo/abc"
> was
> > not found." message (I am running from the
> subsitemap
> > "demo").  But when I comment out 
> and
> >  it runs fine.  I also tried this from
> the
> > main sitemap with the same bad results.
> > 
> > Originally, I cloned the /forms/employee pipeline
> (it
> > uses the db actions ), changed the 'src'
> attributes
> > for generate and transform files, and put those
> files
> > in /docs/samples/forms - just like the
> /forms/employee
> > pipeline.  It works fine from there with the
> action
> > and all, but not from anywhere else.
> > 
> > Any ideas?  Again, thanks so much for your help
> and
> > effort.
> > Sylvia
> > 
> > --- Vadim Gritsenko <[EMAIL PROTECTED]>
> > wrote:
> > > > From: sylviat [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Hello -
> > > >
> > > > I am a new cocoon user having a problem with
> > > > getting
> > > > an action to run from a pipeline.  There is a
> FAQ
> > > > which describes my problem exactly "Why does
> > > > Cocoon
> > > > return an error when I add an action to a
> > > > pipeline?".
> > >
> > > Here is some info on topic of '../' syntax:
> > >
> 
>
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102441015928210&w=2
> > >
> > > > I am sure the answer given is correct but I
> > > > honestly
> > > > don't understand it.  That's probably because
> I
> > > > don't
> > > > know that much about cocoon yet.
> > > >
> > > > I'm under some pressure to get my code up an
> > > > running.
> > > > Could someone please describe, in simpler
> terms,
> > > > what
> > > > to do to fix this problem and perhaps give a
> bit
> > > > of an
> > > > example?  I'd also be glad to read
> documentation
> > > > if
> > > > someone could point it out.  Is there an
> archive?
> > >
> > > http://xml.apache.org/cocoon/mail-archives.html
> > >
> > > Vadim
> > >
> > >
> > > > thanks, Sylvia
> 
> 
>
-
> 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]>
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

-
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]>




xsl:fo problem not getting data from the javascript

2002-07-30 Thread Gerald Michalitz

hallo

sorry for the long code but i need a little help (please)

my page2fo-javascript.xsl has this


http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";
  xmlns:lxslt="http://xml.apache.org/xslt";
xmlns:my-ext="ext1"
extension-element-prefixes="my-ext">

  
   http://www.w3.org/1999/XSL/Format";>


 
   
   
   
 

 
   
 
   
 



  
Seite:  
  

  

  

   
  

  

  

  

  

  

  

  

  

  

and my hello-page2-pdf.xml has this:

XML nach HTML

Should you think if your are too late




transformation to pdf works well but i miss the part of the deadline-node in
the pdf.file

how can i get the data-string into the pdf

thanks a lot

gerald


-
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: Error handling in xsp:element...

2002-07-30 Thread Vadim Gritsenko

> From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> 
> If I do the following in an XSP, the CInclude transformer doesn't
recognize
> the cinclude:include element because it has no namespace associated
with it.
> 
> 

This is incorrect.


>   strURL
> 
> 
> 
> I had to change it to be:
> 
>  uri="http://apache.org/cocoon/include/1.0";>

This is also not ok. Should be:

http://apache.org/cocoon/include/1.0";>


>   strURL
> 
> 
> 
> In the second example, the condition where I forget to include both
@prefix
> and @uri, I get an error. But in the first example, there's no error
even
> though cinclude:include is an invalid XML element name without a
namespace.
> 
> xsp.xsl would need an extra check.

It will not be efficient to do this, because this check must be made at
run time, and every time. I guess you have not considered that this is
possible:

http://apache.org/cocoon/include/1.0";>
  "incl" + "ude"


Vadim


> Per



-
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]>




How to use LinkSerializer

2002-07-30 Thread Torsten Knodt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
currently I have the problem, that LinkSerializer isn't working on all 
HTML-Tags, that I'm using in my HTML output. I've thought about adding them 
to the source, but I think it's better to prepend a xsl to the LinkSerializer 
to transform these tags to xlinks. When I'm not wrong this is also done in 
the java source for the existing tags. But I could'n figure out the right 
format to output to the LinkSerializer. Any hints? Can anyone give me 
examples how the tags should look to be used by LinkSerializer?

With kind regards
Torsten Knodt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Rw65vxZktkzSmiwRArMkAJ4r9OSCa+HU1Z3VLcnSP99rcEg4FwCbBHWQ
6WV6FgEXCcuxJ0XkmfaukJU=
=m8sS
-END PGP SIGNATURE-


-
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: multiple checkboxes and request parameters passed to an xsl

2002-07-30 Thread Barbara Post

hello Christian,, I don't want to use xsp, only xsl
so...


Babs
--
website: www.babsfrance.fr.st
ICQ #: 135868405
- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 7:45 PM
Subject: Re: multiple checkboxes and request parameters passed to an xsl


> On 30.Jul.2002 -- 07:15 PM, Barbara Post wrote:
> > Hello, how can my stylesheet get all the http request parameters since
the
> > http request sends a variable number of parameters named "checkedbox_i"
for
> > example, "i" being an unique identifier ? checkboxes are in variable
number
> > on the submit page, depending on a former choice.
> >
>
> Have a look at the getParameterValues() method (or
> ). They return arrays
> containing all values.
>
> Chris.
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> 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]>
>
>


-
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]>




pb with http request

2002-07-30 Thread cyril vidal



Hy,  
 
I just was trying to run the example 
wrotten by Steve Punk in "Getting started with Cocoon 2" http://www.xml.com/lpt/a/2002/07/10/cocoon2.html
 
More precisely, the last example that 
calculates a factorial from a numeric value submitted via HTTP 
POST.
 
Here's the sitemap:
 
http://apache.org/cocoon/sitemap/1.0">  
    
  

 

 
  
  

 
  
 

 
  
                   

 
   

 
 
and here's the file mystylesheet.xsl 
that I've copied in integrality from the original source:
 





xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:http="http://xml.apache.org/cocoon/requestgenerator/2.0">
























1




 
When I run this by pointing my browser to http://localhost/mypage?input=5
I receive the following error 
message:
description org.apache.cocoon.ProcessingException: 
Exception in creating Transform Handler: org.xml.sax.SAXParseException: The XML 
declaration may only appear at the very beginning of the document.
I don't understand why this occurs. Can you help me 
please?
Thanks in advance,
Cyril VidalEmail: [EMAIL PROTECTED]Web: http://www.planetexml.com


Re: AW: Action and Transform map:parameter

2002-07-30 Thread Anand_Krishnan


I do have those param names inside my XSLT. Anyway I found an alternate way
to send values to these parameters from my URL without going thru .
Thank you.




   
 
  From:Sternath Elmar <[EMAIL PROTECTED]>  
 
 07/26/02 04:43 AM 
 
 Please respond to cocoon-users
 
   
 
   
 
  To:"'[EMAIL PROTECTED]'"   
 
<[EMAIL PROTECTED]>  
 
  cc:  
 
  Subject:AW: Action and Transform map:parameter   
 
   
 




Hi,

do you define your parameter inside the xsl stylesheet as follows:
 before accessing it with $name?

The way you pass parameters to (XSLT) transformer seems to be ok.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 25. Juli 2002 18:16
An: [EMAIL PROTECTED]
Betreff: Action and Transform map:parameter


Hi,

I am facing trouble in getting across value for my parameters from Action
into my Transformer. Here is what I am attempting to do -

  

  


  







  

  

In my action I extract the name-value pair from my URI and send it to my
sitemap. I know I am extracting the value because I am able to send the
values to my generator but not to my transformer. Am I doing something
wrong here? Or is there a different way to pass parameters to my XSL
transformer. Any help would be appreciated.

Thank you,
Anand Krishnan


-
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]>

-
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]>





-
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]>




java.lang.OutOfMemoryError

2002-07-30 Thread Anand_Krishnan

I see these OutOfMemory errors in my webserver logs. Does anybody know
what's causing this error. I have a 3MB xml file that I am trying to
transforming to html. My XSLT traverses this 3MB xml to extract only
relevant information based on user's input and generate an xml out of it.
Please help...

[30/Jul/2002:16:44:33] failure ( 503):
   Internal error: Unexpected error condition
thrown (java.lang.OutOfMemoryError,no description), stack:
java.lang.OutOfMemoryError
   at
org.apache.xml.utils.FastStringBuffer.append(FastStringBuffer.java,
Compiled Code)
   at
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.characters(SAX2DTM.java, Compiled
Code)
   at
org.apache.xalan.transformer.TransformerHandlerImpl.characters(TransformerHandlerImpl.java,

Compiled Code)
   at
org.apache.cocoon.xml.AbstractXMLPipe.characters(AbstractXMLPipe.java,
Compiled Code)
   at
org.apache.xerces.parsers.AbstractSAXParser.characters(AbstractSAXParser.java,

Compiled Code)
   at
org.apache.xerces.impl.XMLNamespaceBinder.characters(XMLNamespaceBinder.java,

Compiled Code)
   at
org.apache.xerces.impl.dtd.XMLDTDValidator.characters(XMLDTDValidator.java,
Compiled Code)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java,

Compiled Code)
   at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java,
   Compiled Code)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java,

Compiled Code)
   at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java,

Compiled Code)
   at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java,

Compiled Code)
   at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java, Compiled Code)
   at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)


   at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:241)
   at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)


   at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:142)
   at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java,

Compiled Code)
   at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java,

Compiled Code)
   at
org.apache.cocoon.www.file_.c_.iPlanet.Servers.docs.sitemap_xmap.matchN10065(docs\sitemap_xmap.java,

Compiled Code)
   at
org.apache.cocoon.www.file_.c_.iPlanet.Servers.docs.sitemap_xmap.process(docs\sitemap_xmap.java,

Compiled Code)
   at
org.apache.cocoon.www.file_.c_.iPlanet.Servers.docs.sitemap_xmap.process(docs\sitemap_xmap.java,

Compiled Code)
   at
org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled Code)
   at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
   at
org.apache.cocoon.www.sitemap_xmap.matchN10357(www\sitemap_xmap.java,
Compiled Code)
   at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java, Compiled
Code)
   at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java, Compiled
Code)
   at
org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled Code)
   at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
   at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java,
Compiled Code)
   at org.apache.cocoon.Cocoon.process(Cocoon.java,
Compiled Code)
   at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java,
Compiled Code)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java,

Compiled Code)
   at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java,
Compiled Code)
   at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java,

Compiled Code)

Thank you,
Anand Krishnan


-

Re: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Gerhard Hipfinger

Thank you Terry,

I will try this shortly, I report success story (hopefully) when I am done.

Gerhard

Terry Anderson wrote:

>Actually, built the .war into the .ear along with the applications.xml
>file.
>
>-Original Message-
>From: Per Kreipke [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, July 30, 2002 12:53 PM
>To: [EMAIL PROTECTED]
>Subject: RE: jboss 3 + cocoon 2.0.3
>
>
>Terry,
>
>>Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 
>>3.0.0
>>+ tomcat 4.0.3 running.
>>
>>I built the standard cocoon webapp (.war) into a .ear file and 
>>deployed from that.
>>
>
>It sounds like you simply renamed the .war to .ear. Is that what you
>meant or did you specify a different build target?
>
>Per
>


-
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: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Terry Anderson

Actually, built the .war into the .ear along with the applications.xml
file.

-Original Message-
From: Per Kreipke [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 30, 2002 12:53 PM
To: [EMAIL PROTECTED]
Subject: RE: jboss 3 + cocoon 2.0.3


Terry,

> Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 
> 3.0.0
> + tomcat 4.0.3 running.
>
> I built the standard cocoon webapp (.war) into a .ear file and 
> deployed from that.

It sounds like you simply renamed the .war to .ear. Is that what you
meant or did you specify a different build target?

Per


-
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]>





-
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]>




Error handling in xsp:element...

2002-07-30 Thread Per Kreipke

If I do the following in an XSP, the CInclude transformer doesn't recognize
the cinclude:include element because it has no namespace associated with it.


  strURL



I had to change it to be:

http://apache.org/cocoon/include/1.0";>
  strURL



In the second example, the condition where I forget to include both @prefix
and @uri, I get an error. But in the first example, there's no error even
though cinclude:include is an invalid XML element name without a namespace.

xsp.xsl would need an extra check.

Per


-
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: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Per Kreipke

Terry,

> Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 3.0.0
> + tomcat 4.0.3 running.
>
> I built the standard cocoon webapp (.war) into a .ear file and deployed
> from that.

It sounds like you simply renamed the .war to .ear. Is that what you meant
or did you specify a different build target?

Per


-
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: multiple checkboxes and request parameters passed to an xsl

2002-07-30 Thread Christian Haul

On 30.Jul.2002 -- 07:15 PM, Barbara Post wrote:
> Hello, how can my stylesheet get all the http request parameters since the
> http request sends a variable number of parameters named "checkedbox_i" for
> example, "i" being an unique identifier ? checkboxes are in variable number
> on the submit page, depending on a former choice.
> 

Have a look at the getParameterValues() method (or
). They return arrays
containing all values.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: ESQL erros - cocoon2.0.3

2002-07-30 Thread Dominic Reynolds

Chris,
  I have attached the output (including stack trace).

  I haven't got any esql to work. I even tried not using the datasource 
(even though it works in the actions i've created) and include the esql 
tags for drive, url, username etc. and the reult is the same: the 
compiled java doesn't seem to be supplying an ESQLConnection reference 
(thats intantiated) to the ESQLQuery class.

Thanks for your help,
dominic.

Christian Haul wrote:

>On 29.Jul.2002 -- 01:23 PM, Dominic Reynolds wrote:
>  
>
>> I am trying to use ESQL (basic xsp page modelled on the samples).
>>
>>my problem is that I get the following null pointer exception:
>>
>>Original exception : java.lang.NullPointerException
>>   at 
>>org.apache.cocoon.components.language.markup.xsp.EsqlQuery.(EsqlQuery.java:99)
>>
>>
>>And looking at the source it seems that I'm not passing a connection to 
>>the constructor:
>>Esql.java -
>>
>>public EsqlQuery( EsqlConnection connection, String query ) {
>>   this.connection = connection;
>>   this.limitMethod = connection.getLimitMethod();   << line 99
>>
>>
>>Now looking at the generated java code for my xsp:
>>cocoon-files/org/apache/cocoon/www/upgrades/docs/upgrade_xsp.java
>>is see:
>>
>> private EsqlConnectionCocoon2 _esql_connection = null;
>>// .
>>// . some non-connection related java stuff..
>>// .
>>_esql_query = new EsqlQuery( _esql_connection, String.valueOf(
>> ""   + "SELECT guid FROM appliances WHERE guid="+
>>   (request.getHeader("guid"))
>> ) );
>>
>>
>>So the generated java code is incorrect. I know the datasource i'm using 
>>is ok as I am using it in an action and it works fine.
>>I must be doing something wrong here...but what?
>>
>>
>
>Everything looks fine. Could you produce a complete stack trace?
>Other XSPs using esql work fine, right?
>
>  
>
>>Below is the xsp that is called:
>>
>>
>>> language="java"
>> xmlns:xsp="http://apache.org/xsp";
>> xmlns:esql="http://apache.org/cocoon/SQL/v2";
>> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>>   >
>>   
>> regdata
>> 
>>   SELECT guid FROM appliances WHERE 
>>guid=
>>   
>> 
>>   
>> 
>>
>>

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul

On 30.Jul.2002 -- 04:34 PM, Frank Taffelt wrote:
> > So you need to return a cursor as first parameter and use
> > @resultset-from-object="1"
> 
> yes but the to code to achive this is oracle dependent:
> IMHO code to achive this should look like:
> 
> 1 CallableStatement cstmt = conn.prepareCall(query);
>  2 cstmt.registerOutParameter(1,OracleTypes.CURSOR);
> 3 cstmt.execute();
> 4 ResultSet rset = (ResultSet)cstmt.getObject(1);
> 
> the problem is line 2 which uses OracleType.CURSOR and no standard jdbc type
> . i think this
> code is not suitable for esql-logicsheet or ist it ?
> 
> without registering the cursor the oracle driver assumes a different
> signature for the procedure and therefore cannot find it (this explains the
> error from my last try).

I'm certain that others do use oracle sps the way described. Actually,
the esql sp support started that way...

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Terry Anderson

Gerhard,

Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 3.0.0
+ tomcat 4.0.3 running.

I built the standard cocoon webapp (.war) into a .ear file and deployed
from that.  When I tried to deploy the .war file, I got the same error
you mention below.  The .ear file works, however.

Good luck,

Terry Anderson

-Original Message-
From: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 5:07 PM
To: [EMAIL PROTECTED]
Subject: jboss 3 + cocoon 2.0.3


Hi!

I deployed my own war file based on cocoon 2.0.3 in jboss 3.0 (with 
tomcat 4.0.3).

The deployment works without any errors but when I try to access the 
application I get the following error message

java.io.FileNotFoundException:
/opt/jboss/bin/jndi:/localhost/sitemap.xmap (Datei oder Verzeichnis
nicht gefunden)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:103)
at
org.apache.cocoon.components.source.FileSource.getInputStream(FileSource
.java:140)
at
org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(
AbstractStreamSource.java:161)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
erateResource(ProgramGeneratorImpl.java:367)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateResource(ProgramGeneratorImpl.java:333)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:292)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
at java.lang.Thread.run(Thread.java:536)


So it seems that jndi is used to locate the sitemap.xmap. Where can I 
configure this one?

Thanks,
Gerhard

--
openForce Information Technology GesmbH http://www.openforce.at/



-
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]>





-
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: XSP implents Interface ?

2002-07-30 Thread Vadim Gritsenko

> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
> 
> We have an architecture where a command puts objects into the request
or
> session and the XSP fetches those Objects. Since both the command and
the
> XSP need to know the attribute name of a particular object in the
> request, I thought it might be nice to have an interface where the
> attribute names are declared. Then both the XSP and the command could
> implement this interface.

I got your point.

If there is interest in adding this feature, and no developer will
object, it should not be too complex to implement this feature.

Vadim


> Thanks,
> 
> 
> Hans
> 
> Vadim Gritsenko wrote:
> 
> > > From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
> > >
> > > Hallo!
> > >
> > > Can a XSP implement an interface?
> >
> > No.
> >
> > (why?)
> >
> > Vadim
> >
> > > If yes, what would be the proper syntax?
> > >
> > > Many thanks,
> > >
> > > Hans


-
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]>




multiple checkboxes and request parameters passed to an xsl

2002-07-30 Thread Barbara Post

Hello, how can my stylesheet get all the http request parameters since the
http request sends a variable number of parameters named "checkedbox_i" for
example, "i" being an unique identifier ? checkboxes are in variable number
on the submit page, depending on a former choice.

on the submit page the user chose the checkboxes to check then submitted.

Best idea would be a javascript to create an unique parameter "checkboxes"
with i1_i2_i3... for value, then xsl could do substrings ?

Thanks for any idea. the unknown data is the number of checkboxes, and the
number of them to be checked... then the checked ones are used to match
against an xml file and construct final html output (another form).
Hoping that I am clear enough.

Babs


-
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: How to switch to another resource if one resource is not available?

2002-07-30 Thread Vadim Gritsenko

> From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> 
...

> > > See lint.xmap
> >
> > I don't see it in 2.0.3, is lint.xmap a 2.1 file? Will it work
> > under 2.0.3?
> 
> Forget it, I figured it out: you meant lint/sitemap.xmap

Oops. My bad. Yes, lint/sitemap.xmap. I was trying to put in there as
much syntax constructs as allowed, but it's not complete still.

Vadim



-
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: action not working

2002-07-30 Thread Vadim Gritsenko

> From: sylviat [mailto:[EMAIL PROTECTED]]
> 
> Vadim, thanks a lot for your reply.  I now understand
> the '../1' syntax.  Unfortunately though it seems that
> this is not the problem.
> 
> The matchers in my pipeline are hard coded, ie:
> 
> 
>  
> 
> 
> 
>   

If action set did not returned result (i.e., no action were executed),
sitemap processing will continue, which will result in 404. You can add
here something like:





> 

Then you always will get some result on this URL.


Vadim


> I am getting "The requested URI /cocoon/demo/abc" was
> not found." message (I am running from the subsitemap
> "demo").  But when I comment out  and
>  it runs fine.  I also tried this from the
> main sitemap with the same bad results.
> 
> Originally, I cloned the /forms/employee pipeline (it
> uses the db actions ), changed the 'src' attributes
> for generate and transform files, and put those files
> in /docs/samples/forms - just like the /forms/employee
> pipeline.  It works fine from there with the action
> and all, but not from anywhere else.
> 
> Any ideas?  Again, thanks so much for your help and
> effort.
> Sylvia
> 
> --- Vadim Gritsenko <[EMAIL PROTECTED]>
> wrote:
> > > From: sylviat [mailto:[EMAIL PROTECTED]]
> > >
> > > Hello -
> > >
> > > I am a new cocoon user having a problem with
> > > getting
> > > an action to run from a pipeline.  There is a FAQ
> > > which describes my problem exactly "Why does
> > > Cocoon
> > > return an error when I add an action to a
> > > pipeline?".
> >
> > Here is some info on topic of '../' syntax:
> >
 http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102441015928210&w=2
> >
> > > I am sure the answer given is correct but I
> > > honestly
> > > don't understand it.  That's probably because I
> > > don't
> > > know that much about cocoon yet.
> > >
> > > I'm under some pressure to get my code up an
> > > running.
> > > Could someone please describe, in simpler terms,
> > > what
> > > to do to fix this problem and perhaps give a bit
> > > of an
> > > example?  I'd also be glad to read documentation
> > > if
> > > someone could point it out.  Is there an archive?
> >
> > http://xml.apache.org/cocoon/mail-archives.html
> >
> > Vadim
> >
> >
> > > thanks, Sylvia


-
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: How to use map:redirect-to combined with serverpages

2002-07-30 Thread Christian Hoofe

This is my solution for a serverpage redirect combined with an action:

1. Sitemaps needs ServerPagesAction

  

   
   

2. Site matcher

   

  
 
  



   ...

   

3. Call of the matcher

   

   ...



The "next" parameter tells the sitemap the next page to call. In this case the itself.

4. The xsp page with the database logic 'db/art_grp_chg.xsp'



http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:action="http://apache.org/cocoon/action/1.0";
>

  
   A Database Driven XSP Page

   
 

   String process = null;
   String id_str = null;
   intid = -1;
   String ord_str = null;
   intordnr = -1;
   String name = null;

   process  = ;
   id_str   = ;
   id   = Integer.parseInt(id_str); 
   ord_str   = ;
   ordnr = Integer.parseInt(ord_str); 
   name = ;


   
  db

 

   UPDATE artikel_gruppen
   SET   gruppe_ordnung   = 
   ordnr,
   gruppe_name   =  
   name,
   WHERE gruppen_id =   
id;

 
 
 
 

   
   


  
Important is the , which signals the sitemap matcher the success. 
This can be enhanced with an additional  in case of an esql exception 

Christian Hoofe

> > From: Christian Hoofe [mailto:[EMAIL PROTECTED]]
> > 
> > I tried the following code in the sitemap to redirect to a page after
> saving
> > values to the
> > database using art_grp_chg.xsp and receive an sitemap error.
> 
> You actually want to write not XSP page but action.
> 
> 
> >
> > 
> >   
> >   
> >   
> >  
> >  
> >  
> >  src="xdocs/db/art_grp_chg.xsp"/>
> > 
> 
> These two lines mean: "SEND PAGE TO CLIENT"
> 
> > 
> 
> This line means: "DON'T SEND PAGE TO CLIENT, SEND HIM TO ANOTHER URL".
> 
> These are *not* compatible with each other. Choose one of them.
> 
> 
> Vadim
> 
> 
> >  
> >   
> > 
> >
> > 
> > I am looking for a simple way to do something similar to the
> > response.sendRedirect(""); I used in my Cocoon 1.8.2. code.
> > 
> > Configuration:
> > Cocoon 2.0.3
> > Tomcat 4.1.7
> > Win98
> > 
> > Thanks
> > Christian
> > 
> > 
> > 
> >   Christian Hoofe
> >   Email  [EMAIL PROTECTED]
> > 
> 




  Christian Hoofe
  Wittelsbacherstr. 3
  D 10707 Berlin

  Tel+49 30 887 290 33
  Fax+49 30 887 290 32
  Mobil  +49 179 12 98 470
  Email  [EMAIL PROTECTED]









-
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: XSP implents Interface ?

2002-07-30 Thread Dr. Hans M. Rupp

We have an architecture where a command puts objects into the request or
session and the XSP fetches those Objects. Since both the command and the
XSP need to know the attribute name of a particular object in the
request, I thought it might be nice to have an interface where the
attribute names are declared. Then both the XSP and the command could
implement this interface.

Thanks,


Hans

Vadim Gritsenko wrote:

> > From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
> >
> > Hallo!
> >
> > Can a XSP implement an interface?
>
> No.
>
> (why?)
>
> Vadim
>
> > If yes, what would be the proper syntax?
> >
> > Many thanks,
> >
> > Hans
>
> -
> 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]>

--

Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



-
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: How to switch to another resource if one resource is not available?

2002-07-30 Thread Per Kreipke

> > > That's very interesting. I don't recall ever seeing 'peer' 
> > > elements in the various sample sitemaps, only nested 
> > elements.
> > > 
> > > Does that also mean that one could do the following to selectively
> > read from
> > > an existing file or apply transforms?
> > > 
> > > 
> > >   
> > >   
> > > 
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > >   
> > > 
> > > 
> > >   
> > >   
> > > 
> > 
> > Yes.
> > 
> > See lint.xmap
> 
> I don't see it in 2.0.3, is lint.xmap a 2.1 file? Will it work 
> under 2.0.3?

Forget it, I figured it out: you meant lint/sitemap.xmap

Per

-
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: How to switch to another resource if one resource is not available?

2002-07-30 Thread Per Kreipke

> > That's very interesting. I don't recall ever seeing 'peer' 
> > elements in the various sample sitemaps, only nested 
> elements.
> > 
> > Does that also mean that one could do the following to selectively
> read from
> > an existing file or apply transforms?
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> 
> Yes.
> 
> See lint.xmap

I don't see it in 2.0.3, is lint.xmap a 2.1 file? Will it work under 2.0.3?

Per




-
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]>




Problem in Installing Cocoon in IBM Websphere

2002-07-30 Thread kavitha ramesh
Hi,
 
I have installed Cocoon 2.0 in the IBM Websphere 4.0.3 and my JSP Generator doesnt work.If someone knows please help me,,,
 
Kavitha.
 
Sell you car, by placing a classified ad on Yahoo India Autos . It's Free!! 
  

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt

> So you need to return a cursor as first parameter and use
> @resultset-from-object="1"

yes but the to code to achive this is oracle dependent:
IMHO code to achive this should look like:

1 CallableStatement cstmt = conn.prepareCall(query);
 2 cstmt.registerOutParameter(1,OracleTypes.CURSOR);
3 cstmt.execute();
4 ResultSet rset = (ResultSet)cstmt.getObject(1);

the problem is line 2 which uses OracleType.CURSOR and no standard jdbc type
. i think this
code is not suitable for esql-logicsheet or ist it ?

without registering the cursor the oracle driver assumes a different
signature for the procedure and therefore cannot find it (this explains the
error from my last try).

so i think it's not yet the time for a summary  ...

P.S. i'm not that jdbc-oracle-expert maybe somebody has a solution for this


-
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: using request selector to choose xsl

2002-07-30 Thread Vadim Gritsenko

> From: Jo Bourne [mailto:[EMAIL PROTECTED]]
> 
> Hi Vadim,
> 
> I am confused by your example, the way it reads to me the default xsl
will
> always run, even if the special one is detected and run first?

You have not interpreted sitemap correctly.


> >
> >  

Add generator.

> >  

Is "style" request parameter present?

> >  

Yes:

> >

Add transformer.

> >

Add serializer and **stop** sitemap processing.

> >  

No:

> >  

Add transformer.

> >  

Add serializer and **stop** sitemap processing.

> >



PS See lint.xmap, it will open your eyes.

Vadim


> thanks
> Jo
> 
> At 9:18 AM -0400 30/7/02, Vadim Gritsenko wrote:
> > > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> >>
> >> Hello,
> >>
> >> is this ok for your problem ? But if "style" is not specified this
> >> wouldn't
> >> be ok. So you would have to specify a default value anyway when
> >> submitting...
> >
> >Edited version:
> >
> >
> >  
> >
> >  
> >  
> >
> >
> >  
> >
> >  
> >  
> >
> >
> >Vadim
> >
...


-
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: action not working

2002-07-30 Thread sylviat

Vadim, thanks a lot for your reply.  I now understand
the '../1' syntax.  Unfortunately though it seems that
this is not the problem.

The matchers in my pipeline are hard coded, ie:


  



   


I am getting "The requested URI /cocoon/demo/abc" was
not found." message (I am running from the subsitemap
"demo").  But when I comment out  and
 it runs fine.  I also tried this from the
main sitemap with the same bad results.

Originally, I cloned the /forms/employee pipeline (it
uses the db actions ), changed the 'src' attributes
for generate and transform files, and put those files
in /docs/samples/forms - just like the /forms/employee
pipeline.  It works fine from there with the action
and all, but not from anywhere else.  

Any ideas?  Again, thanks so much for your help and
effort.  
Sylvia

--- Vadim Gritsenko <[EMAIL PROTECTED]>
wrote:
> > From: sylviat [mailto:[EMAIL PROTECTED]]
> > 
> > Hello -
> > 
> > I am a new cocoon user having a problem with
> getting
> > an action to run from a pipeline.  There is a FAQ
> > which describes my problem exactly "Why does
> Cocoon
> > return an error when I add an action to a
> pipeline?".
> 
> Here is some info on topic of '../' syntax:
> 
>
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102441015928210&w=2
> 
> 
> > I am sure the answer given is correct but I
> honestly
> > don't understand it.  That's probably because I
> don't
> > know that much about cocoon yet.
> > 
> > I'm under some pressure to get my code up an
> running.
> > Could someone please describe, in simpler terms,
> what
> > to do to fix this problem and perhaps give a bit
> of an
> > example?  I'd also be glad to read documentation
> if
> > someone could point it out.  Is there an archive?
> 
> http://xml.apache.org/cocoon/mail-archives.html
> 
> Vadim
> 
>  
> > thanks, Sylvia
> 
> 
>
-
> 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]>
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

-
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: caching strategy

2002-07-30 Thread Vadim Gritsenko

> From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> 
> Hi Vadim,
> 
> thanks for your support. Caching works now for JSPs and also for
> CIncludeTransformer as long as I get my XML input from static xml
files.
> Unfortunately, I have to get my XML input via HTTP requests from a
remote
> server. In this case, these requests are always executed, caching does
not
> work. Do you have any idea how to solve this problem??

IIRC, remote server has to return "Last-Modified" header (see URLSource.
getInfos()). Otherwise, Cocoon will assume that content is not cacheable
(in accordance with http spec).

Vadim


> Thanks,
> Elmar
> 
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 26. Juli 2002 15:24
> An: [EMAIL PROTECTED]
> Betreff: RE: caching strategy
> 
> 
> > From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> >
> > Hi Vadim,
> >
> > thanks for your response. Just another, more detailed question now:
> > I have not
> > yet understood very well what I have to do to decide whether the
> > cached stuff
> > can be used or a new request to the back end server has to be sent
> > (depending
> > on whether a data manipulating request was done before or not).
> > Do I have to
> > mark the cached stuff somehow as 'dirty' as soon as a manipulating
> > request is
> > sent? Or do I have to keep track of the last request? And if so,
> > do you have a
> > suggestion how to do it??
> 
> Components decide for themselves whether whatever it does changed or
> not. Browse through user docs, for example:
> http://xml.apache.org/cocoon/userdocs/generators/file-generator.html:
> "Cacheable: yes - uses the last modification date of the xml document
> for validation".
> 
> For XSPs, see cacheable.xsp sample.
> 
> Vadim
> 
> 
...


-
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: using request selector to choose xsl

2002-07-30 Thread Jo Bourne

Hi Vadim,

I am confused by your example, the way it reads to me the default xsl will always run, 
even if the special one is detected and run first?

thanks
Jo

At 9:18 AM -0400 30/7/02, Vadim Gritsenko wrote:
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
>>
>> Hello,
>>
>> is this ok for your problem ? But if "style" is not specified this
>wouldn't
>> be ok. So you would have to specify a default value anyway when
>> submitting...
>
>Edited version:
>
>
>  
>
>  
>  
>
>
>  
>
>  
>  
>
>
>Vadim
>
>
>> Babs
>> - Original Message -
>> From: Jo Bourne <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Tuesday, July 30, 2002 4:39 AM
>> Subject: using request selector to choose xsl
>>
>>
>> > Hi,
>> >
>> > I currently have a request selector working to choose which xsl to
>use
>> based on a query string in the request. I built this using the method
>> recommend repeatedly in the mailing list archives and it works but I
>would
>> like it to simply test whether there is a style paramater and use it
>if
>> there is, or otherwise use the default. Having to specify each
>possible
>> stylesheet in a seperate case is annoying and wasteful. Is there
>another way
>> to do this?
>> >
>> > thanks in advance.
>> > Jo
>> >
>> > PS. here is an example of what I am using at present
>> >
>> >
>> > 
>> >   
>> > 
>> >  
>> >   
>> > 
>> >  
>> >   
>> > 
>> >  
>> >   
>> > 
>> > 
>> >   
>> > 
>> >   
>> > 
>> >
>
>
>-
>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]>


-- 
Jo Bourne
Virtual Artists Pty Ltd

-
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: using request selector to choose xsl

2002-07-30 Thread Jo Bourne

Hey Barbara,

thanks for your suggestion, unfortunately it won't work for us as sending a style all 
the time would require a massive rewrite of our system which generates all the urls 
automatically and it is really only occassional special cases we need to catch with a 
specified style

thanks though!
Jo

At 8:30 AM +0200 30/7/02, Barbara Post wrote:
>Hello,
>
>is this ok for your problem ? But if "style" is not specified this wouldn't
>be ok. So you would have to specify a default value anyway when
>submitting...
>
>
>
>  
>
>
>
>
>
>
>Babs
>- Original Message -
>From: Jo Bourne <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, July 30, 2002 4:39 AM
>Subject: using request selector to choose xsl
>
>
>> Hi,
>>
>> I currently have a request selector working to choose which xsl to use
>based on a query string in the request. I built this using the method
>recommend repeatedly in the mailing list archives and it works but I would
>like it to simply test whether there is a style paramater and use it if
>there is, or otherwise use the default. Having to specify each possible
>stylesheet in a seperate case is annoying and wasteful. Is there another way
>to do this?
>>
>> thanks in advance.
>> Jo
>>
>> PS. here is an example of what I am using at present
>>
>>
>> 
>>   
>> 
>>  
>>   
>> 
>>  
>>   
>> 
>>  
>>   
>> 
>> 
>>   
>> 
>>   
>> 
>>
>>
>> -
>> 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]>
>>
>
>
>-
>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]>


-- 
Jo Bourne
Virtual Artists Pty Ltd

-
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]>




AW: caching strategy

2002-07-30 Thread Sternath Elmar

Hi Vadim,

thanks for your support. Caching works now for JSPs and also for CIncludeTransformer 
as long as I get my XML input from static xml files. Unfortunately, I have to get my 
XML input via HTTP requests from a remote server. In this case, these requests are 
always executed, caching does not work. Do you have any idea how to solve this 
problem??

Thanks,
Elmar

-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 26. Juli 2002 15:24
An: [EMAIL PROTECTED]
Betreff: RE: caching strategy


> From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> 
> Hi Vadim,
> 
> thanks for your response. Just another, more detailed question now: I
have not
> yet understood very well what I have to do to decide whether the
cached stuff
> can be used or a new request to the back end server has to be sent
(depending
> on whether a data manipulating request was done before or not). Do I
have to
> mark the cached stuff somehow as 'dirty' as soon as a manipulating
request is
> sent? Or do I have to keep track of the last request? And if so, do
you have a
> suggestion how to do it??

Components decide for themselves whether whatever it does changed or
not. Browse through user docs, for example:
http://xml.apache.org/cocoon/userdocs/generators/file-generator.html:
"Cacheable: yes - uses the last modification date of the xml document
for validation".

For XSPs, see cacheable.xsp sample.

Vadim



> Regards,
> Elmar
> 
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Juli 2002 18:27
> An: [EMAIL PROTECTED]
> Betreff: RE: caching strategy
> 
> 
> > From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> >
> > Hello,
> >
> > I wrote an application reading data from another application server
> and
> > sending requests to this application server which manipulate these
> data and
> > reread the manipulated data. All this is done inside one pipeline
> using
> > URLMatchers. CIncludeTransformer is used to concatenate multiple
input
> > streams. Reading and Re-Reading is exactly the same pipeline match.
As
> reading
> > of the data is time-consuming I only want to get data from the
server
> after a
> > manipulating request. Any suggestions for a caching strategy, maybe
by
> > extension of the CachingCIncludeTransformer??
> 
> If you include cocoon:/ uris, then they will be cached independently
> (IIRC). If you also use CachingCIncludeTransformer, then whole result
> will be cached too.
> 
> Vadim
> 
> 
> > Regards,
> > Elmar
> 
> 
> -
> 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]>
> 
> -
> 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]>



-
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]>

-
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: Excel generator ("Vadim Autoresponder please read")

2002-07-30 Thread Vadim Gritsenko

> From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Sven Kuenzler
> 
> Andrew C. Oliver schrieb:
> 
>  >> The real use case I had in mind was the application where I used
the
>  >> Serializer out of Cocoon. This application produces an Excel sheet
>  >> which is sent out by Email. So it is not direct a response but a
"side
>  >> effect" to the request. In C2 this is called a "sink" (or will
be).

It's not yet decided will sink be or not.


>  > Okay I got that part...but it sounds kind of like an action to me.
> 
> Well, haven't thought of that (yet). My other idea was about the yet
to
> be  flow script system. Stefano gave an example save2disk() flow that
> would be able to save a resource defined by sitemap to disk (so
what?).
> This was in the vision department of his RT, however. So I don't
expect
> this soon to be possible.

Ditto.

 
>  >> If I wanted to port that app to Cocoon, I thought of using a
>  >> Transformer. Then again, probalby I would not really need a
>  >> WriteableSource for that. IIRC, there is a Transformer which could
>  >> take a Serializer to produce the Excel output.
>  >
>  > Okay so the issue is that you have *two* outputs of sort.  One is
to
>  > email, one is to the browser.  The Excel is to email and probably
HTML
>  > to the browser.
> 
> The other part really is a SOAP response. Which isn't possible with C2
> either.

SOAP is XML, so why "isn't possible"?


> Or at least not as easy as with Axis and friends.
> 
>  > In my mind this doesn't justify *breaking* the logical model of the
>  > sitemap.  It seems you need an Action that makes a seperate
internal
>  > request of sorts and emails the output.  So the action would make a
>  > request to a different pipeline and email that, where the user
response
>  > would be in HTML.

And with ServerPagesAction it's possible to reuse existing logicsheets.


>  > Does that not sound reasonable?  Any thoughts from you Vadim?

It is reasonable, and doable. But, OTOH, it's easier to do such sings
with "side-effect transformer", like SourceWritingTransformer, on top of
which  application was built, or XMLDBTransformer (which
can write to XML:DB), etc.

Also, see recent thread on cocoon-dev with links to all previous
discussions, including "cocoon symmetry":
http://marc.theaimsgroup.com/?t=10276748526&r=1&w=2

Final decision is not made yet.


Vadim

>  >> Sven



-
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: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul

On 30.Jul.2002 -- 03:15 PM, Frank Taffelt wrote:
> the final chapter:
> "...
> Oracle itself can only return result sets from a 'naked' query, or via a
> cursor as a stored procdure output parameter. The latter is not available
> from
> standard JDBC, only the extension to JDBC,
> CallableStatement.getResultSet(int paramindex)
> available from Oracle drivers. ..."

Ah, this is where @resultset-from-object="1" comes back into play:
Have that parameter registered as object and automagically the first
(just noticed a bug: currently only the first) parameter is turned
into the current ResultSet! :-)

So you need to return a cursor as first parameter and use
@resultset-from-object="1"

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: Filtering HTML pages

2002-07-30 Thread Matthew Langham

Hi Klaus,

yes I meant using Tidy. We do this already but on a much lesser scale than
providing a proper "filter" solution.

Matthew



-Original Message-
From: Klaus Bertram [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Filtering HTML pages


Hi Mattthew

What's about the tidy software in the release?

I don't know the details of XHTML but it looks like that tidy is near this


Klaus


> -Original Message-
> From: Matthew Langham [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 1:59 PM
> To: Cocoon-Dev@Xml. Apache. Org; Cocoon-Users@Xml. Apache. Org
> Subject: Filtering HTML pages
>
>
> Hi gang,
>
> we are working on a project where one of the main goals is to provide a
> filter for external web pages. The idea is that the client accesses the
> "filter" running on a server and then receives HTML pages that have been
> filtered according to certain rules.
>
> One way of doing this is obviously running the pages through the html
> generator in the cocoon pipeline and using stylesheets to alter
> the XHTML as
> needed. The advantage being the flexibility and the use of caching.
>
> Has anyone done this already or can perhaps suggest an alternative way of
> doing this?
>
> Matthew
>
> --
> Open Source Group   Cocoon { Consulting, Training, Projects }
> =
> Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
> -
> Cocoon book:
>   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
> =
>
>
>
>
>
> -
> 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]>
>
>


-
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]>


-
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: using request selector to choose xsl

2002-07-30 Thread Vadim Gritsenko

> From: Barbara Post [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> is this ok for your problem ? But if "style" is not specified this
wouldn't
> be ok. So you would have to specify a default value anyway when
> submitting...

Edited version:


  

  
  


  

  
  


Vadim


> Babs
> - Original Message -
> From: Jo Bourne <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 30, 2002 4:39 AM
> Subject: using request selector to choose xsl
> 
> 
> > Hi,
> >
> > I currently have a request selector working to choose which xsl to
use
> based on a query string in the request. I built this using the method
> recommend repeatedly in the mailing list archives and it works but I
would
> like it to simply test whether there is a style paramater and use it
if
> there is, or otherwise use the default. Having to specify each
possible
> stylesheet in a seperate case is annoying and wasteful. Is there
another way
> to do this?
> >
> > thanks in advance.
> > Jo
> >
> > PS. here is an example of what I am using at present
> >
> >
> > 
> >   
> > 
> >  
> >   
> > 
> >  
> >   
> > 
> >  
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >


-
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: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt

the final chapter:
"...
Oracle itself can only return result sets from a 'naked' query, or via a
cursor as a stored procdure output parameter. The latter is not available
from
standard JDBC, only the extension to JDBC,
CallableStatement.getResultSet(int paramindex)
available from Oracle drivers. ..."

found in a newsgroup  :-(

it seems that there is only a DBMS-specific solution to get things working.

for those who are interested - the oracle way in a short summary:
http://www.enterprisedt.com/publications/oracle/result_set.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]>




Problem with IBM Websphere

2002-07-30 Thread kavitha ramesh

Hi,

I have installed Cocoon 2.0 in the IBM Websphere 4.0.3

But the JSP generator is not working.I tried placing
all the jar files(for example jasper-compiler.jar,
etc..,), but it still doesnt work,,,Some one please
help me,,,

Kavitha.


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

-
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: Filtering HTML pages

2002-07-30 Thread Klaus Bertram

Hi Mattthew

What's about the tidy software in the release?

I don't know the details of XHTML but it looks like that tidy is near this


Klaus


> -Original Message-
> From: Matthew Langham [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 1:59 PM
> To: Cocoon-Dev@Xml. Apache. Org; Cocoon-Users@Xml. Apache. Org
> Subject: Filtering HTML pages
>
>
> Hi gang,
>
> we are working on a project where one of the main goals is to provide a
> filter for external web pages. The idea is that the client accesses the
> "filter" running on a server and then receives HTML pages that have been
> filtered according to certain rules.
>
> One way of doing this is obviously running the pages through the html
> generator in the cocoon pipeline and using stylesheets to alter
> the XHTML as
> needed. The advantage being the flexibility and the use of caching.
>
> Has anyone done this already or can perhaps suggest an alternative way of
> doing this?
>
> Matthew
>
> --
> Open Source Group   Cocoon { Consulting, Training, Projects }
> =
> Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
> -
> Cocoon book:
>   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
> =
>
>
>
>
>
> -
> 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]>
>
>


-
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: Excel generator ("Vadim Autoresponder please read")

2002-07-30 Thread Sven Kuenzler

Andrew C. Oliver schrieb:

 >> The real use case I had in mind was the application where I used the
 >> Serializer out of Cocoon. This application produces an Excel sheet
 >> which is sent out by Email. So it is not direct a response but a "side
 >> effect" to the request. In C2 this is called a "sink" (or will be).
 >

 > Okay I got that part...but it sounds kind of like an action to me.

Well, haven't thought of that (yet). My other idea was about the yet to 
be  flow script system. Stefano gave an example save2disk() flow that 
would be able to save a resource defined by sitemap to disk (so what?). 
This was in the vision department of his RT, however. So I don't expect 
this soon to be possible.

 >> If I wanted to port that app to Cocoon, I thought of using a
 >> Transformer. Then again, probalby I would not really need a
 >> WriteableSource for that. IIRC, there is a Transformer which could
 >> take a Serializer to produce the Excel output.
 >
 >
 > Okay so the issue is that you have *two* outputs of sort.  One is to
 > email, one is to the browser.  The Excel is to email and probably HTML
 > to the browser.

The other part really is a SOAP response. Which isn't possible with C2 
either. Or at least not as easy as with Axis and friends.

Sven

 > In my mind this doesn't justify *breaking* the logical model of the
 > sitemap.  It seems you need an Action that makes a seperate internal
 > request of sorts and emails the output.  So the action would make a
 > request to a different pipeline and email that, where the user response
 > would be in HTML.
 >
 > Does that not sound reasonable?  Any thoughts from you Vadim?
 >
 >>
 >> Sven
 >>
 >>
 >>
 >>




-
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: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul

On 30.Jul.2002 -- 02:37 PM, Frank Taffelt wrote:
> ok second try with:
> 
> 
> {call sp_get_stocks( direction="in"type="Int">20) }
> 
> 
>  
>  
>   
> 
> 
> results in :
> 
> Error executing statement: {call sp_get_stocks(?) }: java.sql.SQLException:
> ORA-06550: line 1, column 7:
> PLS-00221: 'SP_GET_STOCKS' is not a procedure or is undefined
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
> 
> this error message is confusing, because i have written a small java-jdbc
> applicaion which calls this procedure
> and receives a resultset from it.

Does your code equal (more or less) the one produced by esql?

> any hints ?

Visibility problems, like connection is made using a different user?

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: Multiple map:resource calls

2002-07-30 Thread Vadim Gritsenko

> From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]]
> 
> Hi all,
> 
> it seems to me like it is not possible to perform multiple  resource="xxx"/> calls in a single matcher.
> 
> Fragments from my sitemap:
> 
> [...]
> 
>  
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>  
> 
> [...]
> 
>   
> 
>   [...]
> 
>   

BTW, this (second call to resource) will never be executed because of
 in first call to resource):

>   
>   
>   
>   
> 
> [...]
> 
> Both resources work, if used only one at a time. But, as soon as I try
to
> use both of them in a single matcher, I get the following exception:
> 
>   duplicate definition of variable methodName in method
matchN10092
> [...] duplicate definition of variable argTypes in method matchN10092
[...]
> duplicate definition of variable argValues in method matchN10092 [...]
> 
> which is obvious, if we look at the generated sitemap.java:
> 
>   map = new HashMap(1);
> 
>   String methodName = "resource_" + substitute(listOfMaps,
> "crea_form_dati");
>   listOfMaps.add(map);
>   this.dumpParameters(listOfMaps);
>   Class[] argTypes = new Class[] {StreamPipeline.class,
> EventPipeline.class, List.class, Environment.class, String.class,
> Boolean.TYPE};
>   Object[] argValues = new Object[] {pipeline, eventPipeline,
> listOfMaps, environment, cocoon_view, new Boolean(internalRequest)};
>   if (true) return invokeMethod(methodName, argTypes, argValues);
> 
>map = new HashMap(1);
> 
>   String methodName = "resource_" + substitute(listOfMaps,
> "aspetto_finale");
>   listOfMaps.add(map);
>   this.dumpParameters(listOfMaps);
>   Class[] argTypes = new Class[] {StreamPipeline.class,
> EventPipeline.class, List.class, Environment.class, String.class,
> Boolean.TYPE};
>   Object[] argValues = new Object[] {pipeline, eventPipeline,
> listOfMaps, environment, cocoon_view, new Boolean(internalRequest)};
>   if (true) return invokeMethod(methodName, argTypes, argValues);
> 
> 
> Any hints? Am I doing wrong in trying to call two resources in a
matcher?
> Are there any correct alternatives?

Congratulations, you found a bug!
Temporary work-around could be:



  

  
  

  
  



Vadim


> 
> Thanks in advance to anyone,
> 
> L.


-
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: XSP implents Interface ?

2002-07-30 Thread Vadim Gritsenko

> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]]
> 
> Hallo!
> 
> Can a XSP implement an interface?

No.

(why?)

Vadim


> If yes, what would be the proper syntax?
> 
> Many thanks,
> 
> Hans




-
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: global variable

2002-07-30 Thread Vadim Gritsenko


> From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> is it possible in Cocoon to define and set some kind of global
variable which
> I can access from all currently running sessions in parallel?

http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=global+variab
les&q=b

Vadim


> Regards,
> Elmar


-
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: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt

ok second try with:


{call sp_get_stocks(20) }


 
 
  


results in :

Error executing statement: {call sp_get_stocks(?) }: java.sql.SQLException:
ORA-06550: line 1, column 7:
PLS-00221: 'SP_GET_STOCKS' is not a procedure or is undefined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

this error message is confusing, because i have written a small java-jdbc
applicaion which calls this procedure
and receives a resultset from it.

any hints ?


-
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: Transforming Big XML Files

2002-07-30 Thread Vadim Gritsenko

> From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]]
> 
> Vadim Gritsenko wrote:
> 
> > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]]
> > >
> > > Vadim Gritsenko wrote:
> > >
> > > > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]]
> > > > >
> > > > > Hi all,
> > > > > I've a problem transforming big xml Files with Xalan
> > > > > or Saxon.
> > > >
> > > > How big are they?
> > >
> > > they are dinamically generated (XSP pages) so have variable sizes
> > > but one of the biggest is 7017 KB
> >
> > I assume you have enough memory for transofmration (java -Xmx)?
> 
> I think so ... TOMCAT_OPTS=" -Xmx128m -Xms64m "
> 
> 
> > > > > I'm using Cocoon2.0.3 with tomcat3.3a on a Red Hat 7.2.
> > > > > So, using Xalan, C2 throws an exception (No more DTM available
> > 
> > > > > Known problem of Xalan)
> > > > > using Saxon C2 throws this strange exception:
> > > > > Original exception : java.lang.ClassCastException:
> > > > > com.icl.saxon.Controller at
> > > > > org.apache.xalan.processor.TransformerFactoryImpl.
> > > > > newTransformerHandler(TransformerFactoryImpl.java:670)
> >
> > This line look strange to me: why org.apache.xalan involved when you
use
> > saxon?
> >
> > Why don't you try without xalan in the classpath?
> 
> So, I like to use both:

But for the debug purposes, can you try running cocoon with only one
xslt processor, saxon, to see what result will you get?


Also, try adding to TOMCAT_OPTIONS:
-Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactor
yImpl


Vadim


> I defined a component
> " with:
>  value="com.icl.saxon.TransformerFactoryImpl"/>
> 
> ." that uses Saxon in cocoon.xconf
> and i defined another transformer (xslt-saxon) that calls this
component
> with:
> "
role>org.apache.cocoon.components.xslt.XSLTProcessor/Saxon role>"
> 
> In WEB-INF/lib there is saxon652.jar
> Here are the coplete extracts of my cocoon.xconf and sitemap.xmap:
> 
> # cocoon.xconf
>  role="org.apache.cocoon.components.xslt.XSLTProcessor/Saxon"
> class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
> logger="core.xslt-processor">
>   
>   
>value="com.icl.saxon.TransformerFactoryImpl"/>
> 
> 
> # sitemap.xmap
> src="org.apache.cocoon.transformation.TraxTransformer">
> false
> false
> 
> 
role>org.apache.cocoon.components.xslt.XSLTProcessor/Saxon role>
> 
>   
> 
> 
> > > > Does Saxon works for you on small files?
> > >
> > > Yes, It work's fine (really faster than Xalan).
> >
> > (same here).
> >
> > > > > So, what can I do?
> > > > > I've to give up to transform big xml files?
> > > > > (Note that there are no problems transforming this files using
> > > > > Xalan or Saxon but commandline!!)
> >
> > (I failed once to transform 100Mb file using command line tool,
instant
> > saxon).
> >
> > Vadim
> >
> > > > > Bye & thanks
> > > > >
> > > > > Alessandro


-
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: Excel generator ("Vadim Autoresponder please read")

2002-07-30 Thread Andrew C. Oliver



Sven Kuenzler wrote:

> Good question. ATM, I only could give artificial scenarios.
>
> The real use case I had in mind was the application where I used the 
> Serializer out of Cocoon. This application produces an Excel sheet 
> which is sent out by Email. So it is not direct a response but a "side 
> effect" to the request. In C2 this is called a "sink" (or will be).

Okay I got that part...but it sounds kind of like an action to me.

> If I wanted to port that app to Cocoon, I thought of using a 
> Transformer. Then again, probalby I would not really need a 
> WriteableSource for that. IIRC, there is a Transformer which could  
> take a Serializer to produce the Excel output.

Okay so the issue is that you have *two* outputs of sort.  One is to 
email, one is to the browser.  The Excel is to email and probably HTML 
to the browser.

In my mind this doesn't justify *breaking* the logical model of the 
sitemap.  It seems you need an Action that makes a seperate internal 
request of sorts and emails the output.  So the action would make a 
request to a different pipeline and email that, where the user response 
would be in HTML.

Does that not sound reasonable?  Any thoughts from you Vadim?

>
> Sven
>
>
>
>
>
>
> Andrew C. Oliver schrieb:
>
>> Explain, elaborate.
>>
>> 2 Why would you want to do it at the transformation point?
>>
>> Sven Kuenzler wrote:
>>
>>> Something that just came to me thinking of the dicussion about an 
>>> ExcelGenerator: What about implementing it as (Writeable)Source 
>>> instead? That way you could use it with SourceWritingTransformer and 
>>> friends, not only as pipeline starting point.
>>>
>>>  Sven
>>>
>>>
>>>
>>>
>>> -
>>> 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]>
>>>
>>>
>>
>>
>>
>>
>> -
>> 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]>
>>
>>
>
>
>
>
>
> -
> 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]>
>
>




-
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]>




Filtering HTML pages

2002-07-30 Thread Matthew Langham

Hi gang,

we are working on a project where one of the main goals is to provide a
filter for external web pages. The idea is that the client accesses the
"filter" running on a server and then receives HTML pages that have been
filtered according to certain rules.

One way of doing this is obviously running the pages through the html
generator in the cocoon pipeline and using stylesheets to alter the XHTML as
needed. The advantage being the flexibility and the use of caching.

Has anyone done this already or can perhaps suggest an alternative way of
doing this?

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
=





-
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: Better way to aggregate?

2002-07-30 Thread Conal Tuohy

If I understand correctly, the aggregation will read the data from each of
the subordinate pipelines WITHOUT the serialization step, so these 2 would
be equivalent.


> -Original Message-
> From: Alex Romayev [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 30 July 2002 22:18
> To: [EMAIL PROTECTED]
> Subject: Better way to aggregate?
>
>
> I've been looking into the aggregation techniques and
> there seems to be two ways people go about doing it.
> I'm trying to understand the pros/cons of the two
> approaches.
>
> Approach 1: Aggregate HTML
> Each map:part calls a pipeline, which generates,
> transforms and serializes to HTML, e.g.,
> 
> 
> 
>
> Approach 2: Aggregate XML
> Each map:part calls a pipeline, which generates and
> serializes to XML, e.g.,
> 
> 
>
> Any ideas?
>
> Cheers,
> -Alex
>
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> -
> 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]>
>
>


-
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]>




Better way to aggregate?

2002-07-30 Thread Alex Romayev

I've been looking into the aggregation techniques and
there seems to be two ways people go about doing it. 
I'm trying to understand the pros/cons of the two
approaches.

Approach 1: Aggregate HTML
Each map:part calls a pipeline, which generates,
transforms and serializes to HTML, e.g.,




Approach 2: Aggregate XML
Each map:part calls a pipeline, which generates and
serializes to XML, e.g.,



Any ideas?

Cheers,
-Alex

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

-
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: ESQL erros - cocoon2.0.3

2002-07-30 Thread Christian Haul

On 29.Jul.2002 -- 01:23 PM, Dominic Reynolds wrote:
> I am trying to use ESQL (basic xsp page modelled on the samples).
> 
> my problem is that I get the following null pointer exception:
> 
> Original exception : java.lang.NullPointerException
>at 
> 
>org.apache.cocoon.components.language.markup.xsp.EsqlQuery.(EsqlQuery.java:99)
> 
> 
> And looking at the source it seems that I'm not passing a connection to 
> the constructor:
> Esql.java -
> 
> public EsqlQuery( EsqlConnection connection, String query ) {
>this.connection = connection;
>this.limitMethod = connection.getLimitMethod();   << line 99
> 
> 
> Now looking at the generated java code for my xsp:
> cocoon-files/org/apache/cocoon/www/upgrades/docs/upgrade_xsp.java
> is see:
> 
>  private EsqlConnectionCocoon2 _esql_connection = null;
> // .
> // . some non-connection related java stuff..
> // .
> _esql_query = new EsqlQuery( _esql_connection, String.valueOf(
>  ""   + "SELECT guid FROM appliances WHERE guid="+
>(request.getHeader("guid"))
>  ) );
> 
> 
> So the generated java code is incorrect. I know the datasource i'm using 
> is ok as I am using it in an action and it works fine.
> I must be doing something wrong here...but what?

Everything looks fine. Could you produce a complete stack trace?
Other XSPs using esql work fine, right?

> 
> Below is the xsp that is called:
> 
> 
>   language="java"
>  xmlns:xsp="http://apache.org/xsp";
>  xmlns:esql="http://apache.org/cocoon/SQL/v2";
>  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>>
>
>  regdata
>  
>SELECT guid FROM appliances WHERE 
> guid=
>
>  
>
>  
> 
> 

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul

On 30.Jul.2002 -- 10:44 AM, Frank Taffelt wrote:
> Hi,
> 
> i'm trying to get an oracle stored procedure working, that returns a
> resultset.
> but i always get a :
> 
> java.lang.RuntimeException: Error executing statement: { call ? :=
> sp_get_stocks(?) } : java.sql.SQLException: ORA-01008: not all variables
> bound
> 
> here is my code:
> 
>  
> { call ? := sp_get_stocks( type="Int">20) }

Try without the @resultset-from-object attribute, it serves a
different purpose. Try 
  { sp_get_stocks(20) }

I believe, oracle doesn't need @needs-query.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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]>




Multiple map:resource calls

2002-07-30 Thread Lorenzo De Sio

Hi all,

it seems to me like it is not possible to perform multiple  calls in a single matcher.

Fragments from my sitemap:

[...]

 













 

[...]



[...]







[...]

Both resources work, if used only one at a time. But, as soon as I try to
use both of them in a single matcher, I get the following exception:

duplicate definition of variable methodName in method matchN10092
[...] duplicate definition of variable argTypes in method matchN10092 [...]
duplicate definition of variable argValues in method matchN10092 [...]

which is obvious, if we look at the generated sitemap.java:

  map = new HashMap(1);
  
  String methodName = "resource_" + substitute(listOfMaps,
"crea_form_dati");
  listOfMaps.add(map);
  this.dumpParameters(listOfMaps);
  Class[] argTypes = new Class[] {StreamPipeline.class,
EventPipeline.class, List.class, Environment.class, String.class,
Boolean.TYPE};
  Object[] argValues = new Object[] {pipeline, eventPipeline,
listOfMaps, environment, cocoon_view, new Boolean(internalRequest)};
  if (true) return invokeMethod(methodName, argTypes, argValues);
  
   map = new HashMap(1);
  
  String methodName = "resource_" + substitute(listOfMaps,
"aspetto_finale");
  listOfMaps.add(map);
  this.dumpParameters(listOfMaps);
  Class[] argTypes = new Class[] {StreamPipeline.class,
EventPipeline.class, List.class, Environment.class, String.class,
Boolean.TYPE};
  Object[] argValues = new Object[] {pipeline, eventPipeline,
listOfMaps, environment, cocoon_view, new Boolean(internalRequest)};
  if (true) return invokeMethod(methodName, argTypes, argValues);


Any hints? Am I doing wrong in trying to call two resources in a matcher?
Are there any correct alternatives?

Thanks in advance to anyone,

L.

-
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]>




XSP implents Interface ?

2002-07-30 Thread Dr. Hans M. Rupp

Hallo!

Can a XSP implement an interface?
If yes, what would be the proper syntax?

Many thanks,

Hans


-
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]>




esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt

Hi,

i'm trying to get an oracle stored procedure working, that returns a
resultset.
but i always get a :

java.lang.RuntimeException: Error executing statement: { call ? :=
sp_get_stocks(?) } : java.sql.SQLException: ORA-01008: not all variables
bound

here is my code:

 
{ call ? := sp_get_stocks(20) }


 
 
  
 
 

am I doing something stupid here or can somebody give me an working example
of an oracle procedure that returns
a resultset.

thanks,
Frank


-
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: Transforming Big XML Files

2002-07-30 Thread Alessandro Marcellini



Vadim Gritsenko wrote:

> > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]]
> >
> > Vadim Gritsenko wrote:
> >
> > > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Hi all,
> > > > I've a problem transforming big xml Files with Xalan or Saxon.
> > >
> > > How big are they?
> >
> > they are dinamically generated (XSP pages) so have variable sizes but
> one of
> > the biggest is 7017 KB
>
> I assume you have enough memory for transofmration (java -Xmx)?

I think so ... TOMCAT_OPTS=" -Xmx128m -Xms64m "


>
>
> > > > I'm using Cocoon2.0.3 with tomcat3.3a on a Red Hat 7.2.
> > > > So, using Xalan, C2 throws an exception (No more DTM available
> 
> > > > Known problem of Xalan)
> > > > using Saxon C2 throws this strange exception:
> > > > Original exception : java.lang.ClassCastException:
> > > > com.icl.saxon.Controller at
> > > > org.apache.xalan.processor.TransformerFactoryImpl.
> > > > newTransformerHandler(TransformerFactoryImpl.java:670)
>
> This line look strange to me: why org.apache.xalan involved when you use
> saxon?
>
> Why don't you try without xalan in the classpath?

So, I like to use both:
I defined a component
"

." that uses Saxon in cocoon.xconf
and i defined another transformer (xslt-saxon) that calls this component
with:
"org.apache.cocoon.components.xslt.XSLTProcessor/Saxon"

In WEB-INF/lib there is saxon652.jar
Here are the coplete extracts of my cocoon.xconf and sitemap.xmap:

# cocoon.xconf

  
  
  


# sitemap.xmap

false
false

org.apache.cocoon.components.xslt.XSLTProcessor/Saxon

  


>
>
> > > Does Saxon works for you on small files?
> >
> > Yes, It work's fine (really faster than Xalan).
>
> (same here).
>
> > > > So, what can I do?
> > > > I've to give up to transform big xml files?
> > > > (Note that there are no problems transforming this files using
> Xalan
> > > > or Saxon but commandline!!)
>
> (I failed once to transform 100Mb file using command line tool, instant
> saxon).
>
> Vadim
>
> > > > Bye & thanks
> > > >
> > > > Alessandro
>
> -
> 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]>


-
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: i18n key generation with xalan

2002-07-30 Thread Joerg Heinicke

I assume you are trying to use the i18n transformer with Xalan command 
line version only? It's part of Cocoon, not of Xalan, so it won't work.

Or is it only a problem with creating the i18n keys? Then you should 
provide some more code. Maybe on another list too.

Joerg

Albert Cervera Areny wrote:
> Hi,
> I've got a problem trying to generate the i18n key files with xalan. I
> use the following instruction
> 
> xalan -IN login.xml -XSL merge.xsl -OUT login_es.xml -PARAM mode keys
> -PARAM new-lang es -PARAM keep-lang ca
> 
> as specified in the i18n information. Obviously with the correct
> merge.xsl file. However, the generated file login_es.xml is exactly the
> same as login.xml. It'd say it has to do with xalan not using the
> parameters (I realised this with other testings) but I can't believe
> xalan doesn't use params. It's strange.
> 
> Xalan version is 1.2.0
> 
> Has someone had the same problem? Any ideas may help!
> 
> Thanks.
> 
> PS: Sorry, if it's a matter of xalan and has nothing to do with cocoon.
> I'd post it in xalan users list if so.


-
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]>




global variable

2002-07-30 Thread Sternath Elmar

Hello,

is it possible in Cocoon to define and set some kind of global variable which I can 
access from all currently running sessions in parallel?

Regards,
Elmar

-
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]>