Depth in DirectoryGenerator

2002-07-15 Thread Сергей

Hi All,

I try to use DirectoryGenerator to create dynamic directory list. In
documentation said,
it's possible to set arbitrary depth of directory recursion. For example, I
have set depth to 5:

 
   
  
  
   


But it does not work, I always receive flat list, even if the subdirectory
is not empty:


 http://apache.org/cocoon/directory/2.0";>
  
  
  
  

I will appreciate any help.

Best Regards,
Serge Chernokozinsky



-
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: To Admin - Important/Urgent/Serious

2002-07-15 Thread Suchandra Nag

same here .. Please someone help me to unsubscribe from the list ..
My email_id is
[EMAIL PROTECTED]

Thanks in advance
Suchandra


SB wrote:

> I unsubscribed from this mail list and still geting mails.
> Again, I sent mail to [EMAIL PROTECTED]
> didnt get any response, probably my email is not in their database.
> So I subscribed again, and unsubscribed today. and I got mails
> from cocoon-users today too. After I unsubscribe, my mails dont
> seem to reach the list(as I didnt get my mail), but I *do* get
> all your mails. *So* I subscribed again and writing this mail.
>
> Why isnt there an email list *[EMAIL PROTECTED] ?
>
> Can some kind soul help?
> --st.
>
> -
> 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]>




To Admin - Important/Urgent/Serious

2002-07-15 Thread SB

I unsubscribed from this mail list and still geting mails.
Again, I sent mail to [EMAIL PROTECTED]
didnt get any response, probably my email is not in their database.
So I subscribed again, and unsubscribed today. and I got mails
from cocoon-users today too. After I unsubscribe, my mails dont
seem to reach the list(as I didnt get my mail), but I *do* get
all your mails. *So* I subscribed again and writing this mail.

Why isnt there an email list *[EMAIL PROTECTED] ?

Can some kind soul help?
--st.

-
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: Actions and multipage form processing

2002-07-15 Thread Ivelin Ivanov


Did you look at XMLForm?

http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html



- Original Message - 
From: "Matthew Hailstone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:12 PM
Subject: Actions and multipage form processing


I'm finding that actions are looking/sounding really useful. I just
can't figure out how to use them efficiently yet. Here is my desire:

1) Form gets data from user
2) Cocoon processes form and returns customized form based on values
from form in step 1.
  a) Gets value(s) from input fields and performs queries on a database
  b) Returns results from database so that my transformer (xslt sheet)
transforms the data into HTML select inputs for next page's form
3) Ater desired inputs are given on last form page, a delimited text
file is returned for user to save and process in third-party tool.

Currently, I have one really messy xsp file that has a bunch of nested
if statements. The ifs are mostly on session data that I set from
previously encountered request parameters and their value(s). Works
kinda OK, but any variation from the user on the normal use of the
form/back button/type in URL by hand/etc. and my code is gone to pot in
logic. I got the Hello World action example to work fine.
(http://xml.apache.org/cocoon/userdocs/concepts/actions.html) The action
sets explanation was a little over my head at this point, though.

Any suggestions/examples of how to simplify my xsp implementation (get
rid of so many ifs) and do logic somewhere else by using actions/action
sets?

Using:
  Cocoon 2.0.3 release
  Tomcat 4.1.3
  Win2K

Here is a snippet from my pipeline:

  


  

  


  
  
  


  

Thanks!

Matthew

P.S. I'm willing to help Dianna and her team compile and make a nice
How-To on multipage form processing with actions depending on the amount
of input is given. ;)

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




Actions and multipage form processing

2002-07-15 Thread Matthew Hailstone

I'm finding that actions are looking/sounding really useful. I just
can't figure out how to use them efficiently yet. Here is my desire:

1) Form gets data from user
2) Cocoon processes form and returns customized form based on values
from form in step 1.
  a) Gets value(s) from input fields and performs queries on a database
  b) Returns results from database so that my transformer (xslt sheet)
transforms the data into HTML select inputs for next page's form
3) Ater desired inputs are given on last form page, a delimited text
file is returned for user to save and process in third-party tool.

Currently, I have one really messy xsp file that has a bunch of nested
if statements. The ifs are mostly on session data that I set from
previously encountered request parameters and their value(s). Works
kinda OK, but any variation from the user on the normal use of the
form/back button/type in URL by hand/etc. and my code is gone to pot in
logic. I got the Hello World action example to work fine.
(http://xml.apache.org/cocoon/userdocs/concepts/actions.html) The action
sets explanation was a little over my head at this point, though.

Any suggestions/examples of how to simplify my xsp implementation (get
rid of so many ifs) and do logic somewhere else by using actions/action
sets?

Using:
  Cocoon 2.0.3 release
  Tomcat 4.1.3
  Win2K

Here is a snippet from my pipeline:

  


  

  


  
  
  


  

Thanks!

Matthew

P.S. I'm willing to help Dianna and her team compile and make a nice
How-To on multipage form processing with actions depending on the amount
of input is given. ;)

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




trigger multiple pipelines in Cocoon

2002-07-15 Thread Gerardo_Flores

I was just wondering how one would actually execute multiple pipelines from
one browser session.  Specifically, I want to be able to write multiple
files from one submit of a form on an html page.  I have an html page with
an embedded javascript that just parses in contents of a textarea in a a
form and tries to call a pipeline several times with different arguments so
that the pipeline with the SourceWritingTransformer will write to multiple
files.  The javascript is below:

 var input;
 var stringArray = new Array();
 function submit(token, j)
 {
  Metadata.action = "/cocoon/test/metadata" + j + ".xsp?KO=" +
token;
  Metadata.submit();
 }
 function parse()
 {
  input = document.Metadata.textinput.value;
  var index = 0, beginMark = 0, endMark = 0;
  var stopCondition = input.length;

  //begin parsing the textarea contents
  for (i = 0; i <= stopCondition ; i = i + 1)
  {
   ..code..
  }

  //call the submit function for every token that I have parsed

  for ( j = 0; j <= index; j= j + 1)
  {
   alert(stringArray[j]);
   submit(stringArray[j], j);
  }
 }


and a pipeline that looks like this :



  







  

  
  
  
  
  
   

This does not seem to be working as only the last token is processed
through the pipeline.  Can only one pipeline be triggered by one connection
to cocoon?  Is that the issue or is it that the form Post method can only
send out one request per webpage?  Any help on how to do this more
effeciently or cleaner would be greatly appreciated.

And I'm sorry for being rude and not having thanked people for helping me
on my last request just seem to have gotten caught up coding.  Thank you
Rossell Olivier and Sylvain Wallez for help with the SWT. Just upgraded to
Cocoon 2.0.2 and it worked out of the box...haven't tried the context issue
out though.


Thanks,

Gerardo

+-+
This message may contain confidential and/or privileged
information.  If you are not the addressee or authorized to
receive this for the addressee, you must not use, copy,
disclose or take any action based on this message or any
information herein.  If you have received this message in
error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation.
+-+


-
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: [Q] How to turn off certain debug messages...

2002-07-15 Thread Giacomo Pati

On Mon, 15 Jul 2002, Per Kreipke wrote:

> How can I turn off the 'core.store.janitor' logger that emits messages every
> few seconds into core.log?

Add a sub-category named 'core.store.janitor' to category 'core' and give
it a log-level="INFO".

Giacomo


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




[Q] How to turn off certain debug messages...

2002-07-15 Thread Per Kreipke

How can I turn off the 'core.store.janitor' logger that emits messages every
few seconds into core.log?

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: passing a value into an XML form from somewhere else

2002-07-15 Thread Andrew C. Oliver



can I do ?/itemno=x  

okay, I'll try it.


Ivelin Ivanov wrote:

>The name of the itemNo attribute has to have a / prefix: "/itemNo".
>
>I will make a change in the Form impl to tolerate parameters without leading
>/.
>
>
>Send me the code of your action if this doesn't work.
>
>
>
>Ivelin
>
>
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, July 15, 2002 8:37 AM
>Subject: Re: passing a value into an XML form from somewhere else
>
>
>  
>
>>I still don't think I'm explaining this correctly..   I want to get the
>>value of an HTTPRequest parameter that called the XMLForm
>>but was *not* part of the XMLForm into the XMLForm or into the bean.
>>
>>
>>
>>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
>.html?itemNo=3
>  
>
>>So when I call that, I want the (not hidden now, but hopefully will be
>>
>>
>again) itemNo to be populated
>  
>
>>with the 3.  From the form, how do I get itemNo into the model or the
>>
>>
>form, without making the calling
>  
>
>>screen part of the XMLForm?
>>
>>-Andy
>>
>>
>>
>>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>>I assume your cinclude transformer substitures the actual value.
>>>
>>>This is what you could do:
>>>
>>>
>>> 
>>>
>>>
>>>Now after cinclude substitues the value, the XMLFormTransformer will not
>>>(should not) use the value of the bean property, but the explicitly
>>>specified value in the markup instead.
>>>
>>>How is that?
>>>
>>>
>>>
>>>
>>>  
>>>
Ivelin Ivanov wrote:





>Seems like you extended the framework to support xmlform-model ;)
>This has been discussed before, maybe we should check it in.
>
>
>
>  
>
I didn't do it... It must already be there...?





>Of course this is a little delicate, because the model can be a DOM
>  
>
>node.
>  
>
>As to your question, why don't you use xf:hidden? See the most recent
>XMLForm demo.
>
>
>
>
>  
>
Right, but how do I get the value into the hidden from OUTSIDE the
xmlform pipeline?  meaning how do I pass a parameter into the
xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
so I could see it was always 0 instead of 3.

-Andy





>Ivelin
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, July 14, 2002 6:58 PM
>Subject: Re: passing a value into an XML form from somewhere else
>
>
>
>
>
>
>  
>
>>Sure.
>>
>>here is the offer action (which loads the form)
>>
>>
>>   
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> >
>>
>>
>>
>>
>>
>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
>
>
>
>
>  
>
>> 
>>   
>>
>>
>>here is the url which calls it
>>
>>
>>
>>
>>
>>
>>
>>
>>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoff
>>>  
>>>
>e
>  
>


>>>r
>>>
>>>
>>>  
>>>
>.html?itemNo=3
>
>
>
>
>  
>
>>Where the screen calling the form is not itself an XML form.  However
>>
>>
>it
>  
>
>>needs to pass a parameter to be stored
>>in a hidden field (or otherwise poke it into the OfferBean attached to
>>the form).
>>
>>You can actually go here:
>>
>>
>>
>>
>>
>>
>>
>>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiq
>>>  
>>>
>u
>  
>


>>>e
>>>
>>>
>>>  
>>>
>s/3.html?category=Antiques
>
>
>
>
>  
>
>>and see what I mean (click on Make An Offer)
>>
>>-Andy
>>
>>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>
>>
>>
>>
>>>Myabe I misunderstand the problem.
>>>
>>>Can you send your sitemap and some more details.
>>>
>>>
>>>
>>>
>>>- Original Message -
>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Sunday, July 14, 2002 5:39 PM
>>>Subject: Re: passing a value into an XML form from somewhere else
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
Ivelin Ivanov wrote:









>The name of the parameter has to represent the XPath to the bean
>
>
>
>
>
>
>  
>
>>>property.
>>>
>>>
>>>
>>>
>>>
>>>

Re: [BUG?] Strange behaviour with tag

2002-07-15 Thread tinu

tinu <[EMAIL PROTECTED]> writes:

Just for completeness: The reported bug is due to Konqueror's XML display
capabilities, not to Cocoon (should always try several browsers). 

Sorry for the noise

Tinu

> I simply display an XML file containing the following tag
> 
> 1
> 
> This gives me (in the browser window) the error message (not in the usual
> Cocoon error layout, but black on white):
> 
> -
> XML parsing error
> 
> fatal parsing error: the document is not in the correct file format in 
> line 16, column 13
> 1
> ^
> -
> 
> Noteworthy behaviour:
> 
> I do not get an error for
> 
>   
>  
>  
> 
> and the error is case-insesitive (1 makes an error).
> 
> The sitemap fragment is as simple as it can get:
> 
>  
>  
>
>
>  
> 
> Also using xalan / xerces from the command-line produces no error, so this 
> seems to be a cocoonish behaviour
> 
> My system: 
> 
> CVS Head from July 1 2002, Linux PIII, tomcat 4.1-dev (2002/01/17)
> 
> Any help is highly appreciated!
> 
> Martin


-
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 QUERY SUMMARY

2002-07-15 Thread Carlos Maté

Chris, Thank you  very much for yor answers.

I have moved my application to a new develop enviroment using cocoon 2.0.3 and the 
latest versions of navigators and Web server.
The problem has been solved.

SUMMARY: I found two threads executing the same xsp page. I  changed the develop 
enviroment and the problem was solved.



Christian Haul wrote:

> On 12.Jul.2002 -- 03:04 PM, Carlos Maté wrote:
> > cocoon 2.0.1
>
> Please verify that the problem persists with 2.0.3
>
> > 
> >   
> >   
> >  
>
> Please do *not* have the same file in both branches. I'd like to eliminate
> the possibility that *both* branches are executed.
>
> Likewise, the part of the log that *leads*to* the invocation of the XSP is
> more interesting than the release of components.
>
> 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]>

--
**
Carlos Maté de Anta
Telefónica I+D
Boecillo (Valladolid)
[EMAIL PROTECTED]
Tfno: 983367629
Fax:  983367564
**



-
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: Looking for help in the upcomming release

2002-07-15 Thread John Morrison

Was this a co of the head or cocoon_2_0_3_branch?

What were you trying to build (build.sh webapp?) what options?

J.

> From: Ryan Hoegg [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> Tested using Linux, JDK1.4, Tomcat 4.0.4.  Initial Results: Build 
> Failed.  Error details follow:
> 
> BUILD FAILED
> file:/usr/local/cocoon-CVS/xml-cocoon2/build.xml:1519: No source files 
> and no packages have been specified.


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




Link Livesites: Ukrainian Company "Merx-Furniture", Cocoon 1

2002-07-15 Thread Maxim Dominichenko

Cocoon 1
Ukrainian Company "Merx-Furniture"
www.merx.com.ua



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




Link Livesites:

2002-07-15 Thread florent



Hi, 
 
InOvo develops multimedia Information 
Systems based on XML. 
We are very pleased to use Cocoon 2 
as the XML framework. 
 
I think you would be interessted in 
referecing the last website we have produced : 
http://www.foret-de-soignes.be
It is interfacing a native XML documents database 
(witch indexes are stored into XML files). 
We produce some PDF or HTML output from XML datas 
or dynamicly generated XML. 
Looking forward hearing from you, 
 
 
 - Florent Claude - InOvo - 50-54 rue du 
printemps - B-1050 Bruxelles - 
 - tel  : +32 
(0)2.648.42.48 - fax : +32 (0)2.639.47.99 - 


Re: passing a value into an XML form from somewhere else

2002-07-15 Thread Ivelin Ivanov


The name of the itemNo attribute has to have a / prefix: "/itemNo".

I will make a change in the Form impl to tolerate parameters without leading
/.


Send me the code of your action if this doesn't work.



Ivelin



- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 8:37 AM
Subject: Re: passing a value into an XML form from somewhere else


> I still don't think I'm explaining this correctly..   I want to get the
> value of an HTTPRequest parameter that called the XMLForm
> but was *not* part of the XMLForm into the XMLForm or into the bean.
>
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
.html?itemNo=3
>
> So when I call that, I want the (not hidden now, but hopefully will be
again) itemNo to be populated
> with the 3.  From the form, how do I get itemNo into the model or the
form, without making the calling
> screen part of the XMLForm?
>
> -Andy
>
>
>
>
> Ivelin Ivanov wrote:
>
> >I assume your cinclude transformer substitures the actual value.
> >
> >This is what you could do:
> >
> >
> >  
> >
> >
> >Now after cinclude substitues the value, the XMLFormTransformer will not
> >(should not) use the value of the bean property, but the explicitly
> >specified value in the markup instead.
> >
> >How is that?
> >
> >
> >
> >
> >>Ivelin Ivanov wrote:
> >>
> >>
> >>
> >>>Seems like you extended the framework to support xmlform-model ;)
> >>>This has been discussed before, maybe we should check it in.
> >>>
> >>>
> >>>
> >>I didn't do it... It must already be there...?
> >>
> >>
> >>
> >>>Of course this is a little delicate, because the model can be a DOM
node.
> >>>
> >>>As to your question, why don't you use xf:hidden? See the most recent
> >>>XMLForm demo.
> >>>
> >>>
> >>>
> >>>
> >>Right, but how do I get the value into the hidden from OUTSIDE the
> >>xmlform pipeline?  meaning how do I pass a parameter into the
> >>xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
> >>so I could see it was always 0 instead of 3.
> >>
> >>-Andy
> >>
> >>
> >>
> >>>Ivelin
> >>>
> >>>- Original Message -
> >>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Sunday, July 14, 2002 6:58 PM
> >>>Subject: Re: passing a value into an XML form from somewhere else
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> Sure.
> 
> here is the offer action (which loads the form)
> 
> 
> 
>   
>   
>   
>   
> 
>   
>   
>   
>    
> 
> 
> 
> >>>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
> >>>
> >>>
> >>>
> >>>
>   
> 
> 
> 
> here is the url which calls it
> 
> 
> 
> 
> 
> 
>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoff
e
> >>
> >>
> >r
> >
> >
> >>>.html?itemNo=3
> >>>
> >>>
> >>>
> >>>
> Where the screen calling the form is not itself an XML form.  However
it
> needs to pass a parameter to be stored
> in a hidden field (or otherwise poke it into the OfferBean attached to
> the form).
> 
> You can actually go here:
> 
> 
> 
> 
> 
>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiq
u
> >>
> >>
> >e
> >
> >
> >>>s/3.html?category=Antiques
> >>>
> >>>
> >>>
> >>>
> and see what I mean (click on Make An Offer)
> 
> -Andy
> 
> 
> Ivelin Ivanov wrote:
> 
> 
> 
> 
> 
> >Myabe I misunderstand the problem.
> >
> >Can you send your sitemap and some more details.
> >
> >
> >
> >
> >- Original Message -
> >From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, July 14, 2002 5:39 PM
> >Subject: Re: passing a value into an XML form from somewhere else
> >
> >
> >
> >
> >
> >
> >
> >
> >>Ivelin Ivanov wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>>The name of the parameter has to represent the XPath to the bean
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >property.
> >
> >
> >
> >
> >
> >
> >>>See the html source of an xmlform page to see how element names are
> >>>translated into widgets @name attributes.
> >>>
> >>>Does this help?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>I don't think so.  I need to pass the data into the pipeline from
> >>outside.  If I just pass the same parameter as a propery it
> >>is not picking it up.  Or at least its not ending up in the form.
> >>
> >>-Andy
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>>Ivelin
> >>>
> >>>
> >>>- Original Message -
> >>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTEC

Re: Error installing Cocoon 2.0.3

2002-07-15 Thread Ryan Hoegg

Thanks, I guess I have more to learn about how Tomcat works.  That was 
the problem

Ryan Hoegg
ISIS Networks

Vadim Gritsenko wrote:

>>From: Ryan Hoegg [mailto:[EMAIL PROTECTED]]
>>
>>Hello, and thanks for all your effort getting 2.0.3 going.
>>
>>I downloaded it and attempted to build and install it today, and
>>unfortunately was not able to access the default application.
>>
>>I am running linux with JDK 1.4 and Tomcat 4.0.4.  I downloaded
>>cocoon-2.0.3.tar.gz , ran ./build.sh clean then ./build.sh
>>-Dinclude.webapp.libs=yes webapp
>>
>>I then copied the build/cocoon/cocoon.war to $CATALINA_HOME/webapps
>>
>and
>
>>restarted my Tomcat server.
>>
>
>You forgot to remove tomcat's work directory. 
>
>If does not help, see log files. There is no much info on the error
>page.
>
>Vadim
>
> 
>
>>Tomcat works fine but when attempting to access the
>>http://MyTomcatServer:8080/cocoon I get an error message.  This
>>
>message
>
>>is posted on my web site at
>>http://www.hoegg.net/error/cocoon-2.0.3-install-error.html
>>
>>I appreciate any insight!  There didn't seem to be anything in the
>>
>archives.
>
>>Ryan Hoegg
>>ISIS Networks
>>
>
>
>-
>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: Error installing Cocoon 2.0.3

2002-07-15 Thread Vadim Gritsenko

> From: Ryan Hoegg [mailto:[EMAIL PROTECTED]]
> 
> Hello, and thanks for all your effort getting 2.0.3 going.
> 
> I downloaded it and attempted to build and install it today, and
> unfortunately was not able to access the default application.
> 
> I am running linux with JDK 1.4 and Tomcat 4.0.4.  I downloaded
> cocoon-2.0.3.tar.gz , ran ./build.sh clean then ./build.sh
> -Dinclude.webapp.libs=yes webapp
> 
> I then copied the build/cocoon/cocoon.war to $CATALINA_HOME/webapps
and
> restarted my Tomcat server.

You forgot to remove tomcat's work directory. 

If does not help, see log files. There is no much info on the error
page.

Vadim

 
> Tomcat works fine but when attempting to access the
> http://MyTomcatServer:8080/cocoon I get an error message.  This
message
> is posted on my web site at
> http://www.hoegg.net/error/cocoon-2.0.3-install-error.html
> 
> I appreciate any insight!  There didn't seem to be anything in the
archives.
> 
> Ryan Hoegg
> ISIS Networks


-
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: AW: Error installing Cocoon 2.0.3

2002-07-15 Thread Ryan Hoegg

Thanks for the quick response, but unfortunately I have several classes 
I have written for other purposes that use features in 1.4 that I hope 
to hook into Cocoon.  So I would very much like to use Cocoon with the 
JDK 1.4.

Ryan Hoegg
ISIS Networks

Gerald Michalitz wrote:

>>Hello, and thanks for all your effort getting 2.0.3 going.
>>
>>I downloaded it and attempted to build and install it today, and 
>>unfortunately was not able to access the default application.
>>
>>I am running linux with JDK 1.4 and Tomcat 4.0.4.  I downloaded 
>>cocoon-2.0.3.tar.gz , ran ./build.sh clean then ./build.sh 
>>-Dinclude.webapp.libs=yes webapp
>>
>try this:
>if there isnot any need to use jdk1.4 use j2sdk-1_3_1_03
>and set the PATH and CLASSPATH
>
>and build cocoon.war again
>
>maybe it works
>
>>I then copied the build/cocoon/cocoon.war to 
>>$CATALINA_HOME/webapps and 
>>restarted my Tomcat server.
>>
>>Tomcat works fine but when attempting to access the 
>>http://MyTomcatServer:8080/cocoon I get an error message.  
>>This message 
>>is posted on my web site at 
>>http://www.hoegg.net/error/cocoon-2.0.3-install-error.html
>>
>>I appreciate any insight!  There didn't seem to be anything 
>>in the archives.
>>
>>Ryan Hoegg
>>ISIS Networks
>>
>>
>>-
>>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]>




AW: Error installing Cocoon 2.0.3

2002-07-15 Thread Gerald Michalitz

> Hello, and thanks for all your effort getting 2.0.3 going.
> 
> I downloaded it and attempted to build and install it today, and 
> unfortunately was not able to access the default application.
> 
> I am running linux with JDK 1.4 and Tomcat 4.0.4.  I downloaded 
> cocoon-2.0.3.tar.gz , ran ./build.sh clean then ./build.sh 
> -Dinclude.webapp.libs=yes webapp
> 
try this:
if there isnot any need to use jdk1.4 use j2sdk-1_3_1_03
and set the PATH and CLASSPATH

and build cocoon.war again

maybe it works

> I then copied the build/cocoon/cocoon.war to 
> $CATALINA_HOME/webapps and 
> restarted my Tomcat server.
> 
> Tomcat works fine but when attempting to access the 
> http://MyTomcatServer:8080/cocoon I get an error message.  
> This message 
> is posted on my web site at 
> http://www.hoegg.net/error/cocoon-2.0.3-install-error.html
> 
> I appreciate any insight!  There didn't seem to be anything 
> in the archives.
> 
> Ryan Hoegg
> ISIS Networks
> 
> 
> -
> 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: HSSFSerializer

2002-07-15 Thread robert_kuzelj

hi sven,

thanks. thou i havent had a closer look
on it. i'll try it right tomorrow and tell
you how it worked out.

ciao robertj

Robert Kuzelj
Gaissacherstrasse 7   email: [EMAIL PROTECTED]
81371 Muenchentel:   0177/5302230

the trinity of desirables of (software) architecture:
Firmitas, Utilitas, Venustas (marcus vitruvius 20 BC)
strength, utility, beauty

- Original Message -
From: "Sven Kuenzler" <[EMAIL PROTECTED]>
Newsgroups: gmane.text.xml.cocoon.user
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:00 PM
Subject: Re: HSSFSerializer


> Sven Kuenzler schrieb:
>
>
> > [EMAIL PROTECTED] wrote:
> >
> >> i want to use the HSSFSerializer which if i have understood
> >> correctly serializes an gnumeric (xml) - document into
> >> a excel-file.
> >>
> >> the problem is that i solely want to use this class without
> >> all the other cocoon-stuff. is that possible?
> >
> >
> > I have done this. If you can wait until tuesday, I could post a code
> > snippet. Otherwise, search the dev-list for the "away mission" thread
;-)
>
> I have uploaded
>
> http://www.tzi.de/~svenk/poimorpher.zip
>
> The project structure was ripped of an old project of mine, so it may
> need some adjustments.
>
> Normally, "build test" should generate a poimorpher.jar and  two test
> Excel files in a "work" directory. If so, have a look at
> morphos.poi.test.HSSF to learn how this can be deployed in your app.
>
> This package was done to prepare migration of the Gnumeric2Excel stuff
> into a Jakarta commons project. As it stands, I only stripped off the
> Cocoon interfaces and removed some of the Avalon contracts (which mostly
> weren't executed anyway).
>
> Let me know if this works for you.
>
> 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]>




Re: Deleting multiple rows with the modular DatabaseDeleteAction

2002-07-15 Thread Christian Haul

On 15.Jul.2002 -- 01:40 PM, Tuomo Lesonen wrote:
> Hi,
> 
> I can't figure out how to remove multiple rows with this action within a
> single request. Am I using the right syntax in HTML? :

Tuomo, you need to define a "set" with a "master" that determines
how many rows are affected. Look again at the sample, search for
"slave" and "master". Since you have only one column, you only
need a master.

> 
> 
>   
>   
>   
> 
> 
> This seems to remove only one row from the table. Also tried...
> 
> 
>   
>   
>   
> 
> 
> and in database.xml:
> 
> 
>   
> 
   
>   
> 
>   
>   
> 
>  
> 
> 
> table is accessed from the sitemap with this set:
> 
> 
>   
> 
> 
> ...But doesn't work either, only throws with a nullpointer exception. 
> 
> Cocoon 2.03 (dev)

I'd strongly suggest to use 2.1-dev since with that those actions were
moved to trunk (i.e. not scratchpad anymore). In addition, they contain
additions that are not found in 2.0.3

> Tomcat 4.04
> JDK 1.4.1
> MS SQL2000

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




Error installing Cocoon 2.0.3

2002-07-15 Thread Ryan Hoegg

Hello, and thanks for all your effort getting 2.0.3 going.

I downloaded it and attempted to build and install it today, and 
unfortunately was not able to access the default application.

I am running linux with JDK 1.4 and Tomcat 4.0.4.  I downloaded 
cocoon-2.0.3.tar.gz , ran ./build.sh clean then ./build.sh 
-Dinclude.webapp.libs=yes webapp

I then copied the build/cocoon/cocoon.war to $CATALINA_HOME/webapps and 
restarted my Tomcat server.

Tomcat works fine but when attempting to access the 
http://MyTomcatServer:8080/cocoon I get an error message.  This message 
is posted on my web site at 
http://www.hoegg.net/error/cocoon-2.0.3-install-error.html

I appreciate any insight!  There didn't seem to be anything in the archives.

Ryan Hoegg
ISIS Networks


-
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 jscript or vbscript or objectrexx with xslt

2002-07-15 Thread Gerald Michalitz

hallo

can you give me a hint how can i use jscript or vbscript or objectrexx with
xslt

i want to use the script code in the xsl-file
put how does this work and how does the xml-file looks like

thanks for your help

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: HTML tree from a Directory generator.

2002-07-15 Thread Joerg Heinicke

> What I want is to get a "Windows explorer like" view of a directory tree :-)
> Not a highlighted XML :-)

That's clear. You should merge them and not use them consecutively. This 
means for example to use the collapse/expand code from simple-xml2html.xsl.

If you don't want to do it yourself, you must wait a week. I will try to 
create a "Windows explorer like"-stylesheet.

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




Cocoon2.0.2 Command line connection to database

2002-07-15 Thread ASHLEY D'SOUZA

I want to use Cocoon2.0.2 to access a database using the command line.
The following describes my setup:

1. Set up of CLASSPATH
===
I copied classes111.zip to the WEB-INF/lib directory. I see it in the
classpath in the DEBUG output. I also tried modifying WEB-INF/web.xml
for "extra-classpath". The DEBUG output never showed it this way.  I
think that WEB-INF/web.xml is not being used in commandline mode
(wherein lies my problem -- see step 2)

2. Setup of database driver

I modified WEB-INF/web.xml, and added "oracle.jdbc.driver.OracleDriver"
(without the quotes) in the load-class section.
I think this is not being loaded because WEB-INF/web.xml is not used in
commandline mode, but proceeded with the steps below anyway.

3. Configured a connection pool
===
I modified WEB-INF/cocoon.xconf and added a new jdbc tag. A jdbc tag
for hsql stuff was already there; mine went above it:
  

  
  true
  jdbc:oracle:thin:@beacon1:1521:MWJR
  dbo
  dbo



the hsqldb stuff

   

This is the sitemap pipeline entry:
=

  

  
  
 
  
  

  

This is pricequery.xml:
=

http://apache.org/cocoon/SQL/2.0";>
http://apache.org/cocoon/SQL/2.0";>

  select sysdate from dual




This is my command line:
===
run -c .\build\cocoon\webapp -C
.\build\cocoon\webapp\WEB-INF\cocoon.xconf x.dat

where "run" is run.bat, the script which comes with Cocoon2.0.2

This is part of the log file: (Keeps repeating the "No suitable driver"
message):

DEBUG   10252   [manager ] (): ComponentHandler initialized for:
org.apache.cocoon.www.file_.C_.Cocoon.cocoon_2_0_2.build.cocoon.webapp.sitemap_xmap

DEBUG   10252   [manager ] (): Adding
org.apache.cocoon.www.file_.C_.Cocoon.cocoon_2_0_2.build.cocoon.webapp.sitemap_xmap
for
org\apache\cocoon\www\file_\C_\Cocoon\cocoon_2_0_2\build\cocoon\webapp\sitemap_xmap

DEBUG   10252   [manager ] (): Returning a
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage
to the pool

DEBUG   10252   [manager ] (): Sitemap regeneration complete

DEBUG   10252   [manager ] (): The sitemap has been successfully
compiled!

INFO10252   [] (): ...ready, let's go:

INFO10252   [] (): Processing URI: x.dat

DEBUG   10252   [] (): mangle("x.dat")

DEBUG   10252   [] (): x.dat

DEBUG   10252   [] (): FileSavingEnvironment: uri = x.dat

DEBUG   10252   [] (): DEBUGGING INFORMATION:

REQUEST: x.dat

CONTEXT PATH: null

SERVLET PATH: x.dat

PATH INFO: null

REMOTE HOST: localhost

REMOTE ADDRESS: 127.0.0.1

REMOTE USER: ALD118

REQUEST SESSION ID: null

REQUEST PREFERRED LOCALE: en_US

SERVER HOST: Apache Cocoon 2.0.2

SERVER PORT: -1

METHOD: get

CONTENT LENGTH: -1

PROTOCOL: cli

SCHEME: cli

AUTH TYPE: null



CURRENT ACTIVE REQUESTS: 1

REQUEST PARAMETERS:



PARAM: 'accept' VALUES: '[text/html, */*]'

PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.2]'

HEADER PARAMETERS:





SESSION ATTRIBUTES:





DEBUG   10252   [] (): Changing Cocoon context

DEBUG   10252   [] ():   from
context(file:/C:/Cocoon/cocoon-2.0.2/./build/cocoon/webapp/) and
prefix()

DEBUG   10252   [] ():   to context(sitemap.xmap) and prefix()

DEBUG   10252   [] ():   at URI x.dat

DEBUG   10252   [] (): New context is
file:/C:/Cocoon/cocoon-2.0.2/build/cocoon/webapp/

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.components.pipeline.CachingEventPipeline from the
pool

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.components.pipeline.CachingStreamPipeline from the
pool

DEBUG   10252   [manager ] (): Matched wildcard pattern x.dat

DEBUG   10252   [manager ] (): 
Current Sitemap Parameters:
PARAM: '0' VALUE: 'x.dat'


DEBUG   10252   [manager ] (): Component
generator:file(Parameters.EMPTY_PARAMETERS)

DEBUG   10252   [manager ] (): Source= ADxml/pricequery.xml

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.generation.FileGenerator from the pool

DEBUG   10252   [manager ] (): Component transformer:sql(param)

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.transformation.SQLTransformer from the pool

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.sitemap.LinkTranslator from the pool

DEBUG   10252   [manager ] (): Component
serializer:text(Parameters.EMPTY_PARAMETERS)

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.serialization.TextSerializer from the pool

DEBUG   10252   [] (): Resolving 'ADxml/pricequery.xml' in
context 'file:/C:/Cocoon/cocoon-2.0.2/build/cocoon/webapp/'

DEBUG   10252   [] (): Resolved to
'file:/C:/Cocoon/cocoon-2.0.2/build/cocoon/webapp/ADxml/pricequery.xml'

DEBUG   10252   [manager ] (): CONNECTION: MWJR

DEBUG   1

lucene crawling, views

2002-07-15 Thread icewind

Hi All,

Im having trouble getting lucene to index a
hierarchical directory structure and I think that the
problem may be the result of an incorrect setup of
views.

I have something like this:

xmldocs/
one/
two/
...
ten/

To do the indexing, I have copied over the samples/
directory from the cocoon distribution to my
application and im using the link off of
samples/search/welcome to create an index. I can index
each of the sub directories properly by themselves,
but if I point the crawler to xmldocs/ it will only
index that directory and will not crawl to its
subdirectories. What should I have in the sitemap to
support this? What needs to be labeled "content" and
what needs to be labeled "links", it that is the
problem?



__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://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]>




Cocoon2.0.2 Command line connection to database

2002-07-15 Thread ASHLEY D'SOUZA

I want to use Cocoon2.0.2 to access a database using the command line.
The following describes my setup:

1. Set up of CLASSPATH
===
I copied classes111.zip to the WEB-INF/lib directory. I see it in the
classpath in the DEBUG output. I also tried modifying WEB-INF/web.xml
for "extra-classpath". The DEBUG output never showed it this way.  I
think that WEB-INF/web.xml is not being used in commandline mode
(wherein lies my problem -- see step 2)

2. Setup of database driver

I modified WEB-INF/web.xml, and added "oracle.jdbc.driver.OracleDriver"
(without the quotes) in the load-class section.
I think this is not being loaded because WEB-INF/web.xml is not used in
commandline mode, but proceeded with the steps below anyway.

3. Configured a connection pool
===
I modified WEB-INF/cocoon.xconf and added a new jdbc tag. A jdbc tag
for hsql stuff was already there; mine went above it:
  

  
  true
  jdbc:oracle:thin:@beacon1:1521:MWJR
  dbo
  dbo



the hsqldb stuff

   

This is the sitemap pipeline entry:
=

  

  
  
 
  
  

  

This is pricequery.xml:
=

http://apache.org/cocoon/SQL/2.0";>
http://apache.org/cocoon/SQL/2.0";>

  select sysdate from dual




This is my command line:
===
run -c .\build\cocoon\webapp -C
.\build\cocoon\webapp\WEB-INF\cocoon.xconf x.dat

where "run" is run.bat, the script which comes with Cocoon2.0.2

This is part of the log file: (Keeps repeating the "No suitable driver"
message):

DEBUG   10252   [manager ] (): ComponentHandler initialized for:
org.apache.cocoon.www.file_.C_.Cocoon.cocoon_2_0_2.build.cocoon.webapp.sitemap_xmap

DEBUG   10252   [manager ] (): Adding
org.apache.cocoon.www.file_.C_.Cocoon.cocoon_2_0_2.build.cocoon.webapp.sitemap_xmap
for
org\apache\cocoon\www\file_\C_\Cocoon\cocoon_2_0_2\build\cocoon\webapp\sitemap_xmap

DEBUG   10252   [manager ] (): Returning a
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage
to the pool

DEBUG   10252   [manager ] (): Sitemap regeneration complete

DEBUG   10252   [manager ] (): The sitemap has been successfully
compiled!

INFO10252   [] (): ...ready, let's go:

INFO10252   [] (): Processing URI: x.dat

DEBUG   10252   [] (): mangle("x.dat")

DEBUG   10252   [] (): x.dat

DEBUG   10252   [] (): FileSavingEnvironment: uri = x.dat

DEBUG   10252   [] (): DEBUGGING INFORMATION:

REQUEST: x.dat

CONTEXT PATH: null

SERVLET PATH: x.dat

PATH INFO: null

REMOTE HOST: localhost

REMOTE ADDRESS: 127.0.0.1

REMOTE USER: ALD118

REQUEST SESSION ID: null

REQUEST PREFERRED LOCALE: en_US

SERVER HOST: Apache Cocoon 2.0.2

SERVER PORT: -1

METHOD: get

CONTENT LENGTH: -1

PROTOCOL: cli

SCHEME: cli

AUTH TYPE: null



CURRENT ACTIVE REQUESTS: 1

REQUEST PARAMETERS:



PARAM: 'accept' VALUES: '[text/html, */*]'

PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.2]'

HEADER PARAMETERS:





SESSION ATTRIBUTES:





DEBUG   10252   [] (): Changing Cocoon context

DEBUG   10252   [] ():   from
context(file:/C:/Cocoon/cocoon-2.0.2/./build/cocoon/webapp/) and
prefix()

DEBUG   10252   [] ():   to context(sitemap.xmap) and prefix()

DEBUG   10252   [] ():   at URI x.dat

DEBUG   10252   [] (): New context is
file:/C:/Cocoon/cocoon-2.0.2/build/cocoon/webapp/

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.components.pipeline.CachingEventPipeline from the
pool

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.components.pipeline.CachingStreamPipeline from the
pool

DEBUG   10252   [manager ] (): Matched wildcard pattern x.dat

DEBUG   10252   [manager ] (): 
Current Sitemap Parameters:
PARAM: '0' VALUE: 'x.dat'


DEBUG   10252   [manager ] (): Component
generator:file(Parameters.EMPTY_PARAMETERS)

DEBUG   10252   [manager ] (): Source= ADxml/pricequery.xml

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.generation.FileGenerator from the pool

DEBUG   10252   [manager ] (): Component transformer:sql(param)

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.transformation.SQLTransformer from the pool

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.sitemap.LinkTranslator from the pool

DEBUG   10252   [manager ] (): Component
serializer:text(Parameters.EMPTY_PARAMETERS)

DEBUG   10252   [manager ] (): Retrieving a
org.apache.cocoon.serialization.TextSerializer from the pool

DEBUG   10252   [] (): Resolving 'ADxml/pricequery.xml' in
context 'file:/C:/Cocoon/cocoon-2.0.2/build/cocoon/webapp/'

DEBUG   10252   [] (): Resolved to
'file:/C:/Cocoon/cocoon-2.0.2/build/cocoon/webapp/ADxml/pricequery.xml'

DEBUG   10252   [manager ] (): CONNECTION: MWJR

DEBUG   1

Re: HSSFSerializer

2002-07-15 Thread Sven Kuenzler

Sven Kuenzler schrieb:


> [EMAIL PROTECTED] wrote:
> 
>> i want to use the HSSFSerializer which if i have understood
>> correctly serializes an gnumeric (xml) - document into
>> a excel-file.
>>
>> the problem is that i solely want to use this class without
>> all the other cocoon-stuff. is that possible?
> 
> 
> I have done this. If you can wait until tuesday, I could post a code 
> snippet. Otherwise, search the dev-list for the "away mission" thread ;-)

I have uploaded

http://www.tzi.de/~svenk/poimorpher.zip

The project structure was ripped of an old project of mine, so it may 
need some adjustments.

Normally, "build test" should generate a poimorpher.jar and  two test 
Excel files in a "work" directory. If so, have a look at 
morphos.poi.test.HSSF to learn how this can be deployed in your app.

This package was done to prepare migration of the Gnumeric2Excel stuff 
into a Jakarta commons project. As it stands, I only stripped off the 
Cocoon interfaces and removed some of the Avalon contracts (which mostly 
weren't executed anyway).

Let me know if this works for you.

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




R: MySQL Numbers and Xalan...

2002-07-15 Thread Lorenzo De Sio

Thanks, Joerg. 

I wrote a small "quick and dirty" stylesheet to perform such a
transformation, though I suspect something happening in the SQLTransformer
to convert numbers in the bad format, since MySQL, when directly queried,
outputs conformant numbers.

To Bert: thanks for the suggestion, but I'm working on a complex pipeline
which forces me to use the SQLTransformer :-))

To anyone who could be interested:
a *quick and dirty* XSL to convert 1.434343E8-like *integer* numbers to
XSLT/XPATH compliant (e.g. 1.434343E8 -> 143434300):


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





1
1







  







0













-Messaggio originale-
Da: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 15 luglio 2002 14.44
A: [EMAIL PROTECTED]
Oggetto: Re: MySQL Numbers and Xalan...


It's not a valid number in XSLT/XPATH:

http://www.w3.org/TR/xpath#NT-Number

A number may only consist of digits and '.'. You either have to convert it 
before transformation or search for a stylesheet which transforms such a 
number to a conformant one.

Regards,

Joerg

Lorenzo De Sio wrote:
> Hi all,
> 
> I've got the following problem (on C2.0):
> 
> a rowset generated by the SQLTransformer (which seems to me to not allow
> specific control over column format) contains rows like these:
> 
>   
>   Totale Toscana 
>   4.6985818E8 
>   6.79535678E8 
>   6.01985915E8 
>   1.2667E8 
>   65 
>   
> 
> the problem is that Xalan doesn't recognize these numeric values as
numbers,
> not allowing me to apply any number formatting.
> 
> Any ideas?
> 
> 
> Thanks in advance,
> 
> L:


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
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: Save output files

2002-07-15 Thread Giacomo Pati

On Mon, 15 Jul 2002, Steven Noels wrote:

> Thomas Balthazar wrote:
>
> > and i want to save the output (the html file) instead of simply viewing
> > it with my browser.
> > Can you please give me some clues.
>
> Cocoon offers a wonderful, if less-than-optimal documented command-line
> interface that crawls itself given a starting point URL. You can easily
> invoke this commandline interface using Ant or from a little batch file.
> If you want an example of this, check the 'build docs' target that comes
> with Cocoon, or have a look at Forrest which does the same thing.
>
> I don't immediately recall some location documenting all of its
> commandline option, as always there is the source code as a reference:

sh ./run.sh --help

Actually because of the automatic JVM recognition change recently the
excalibur jars are not detected correctly in that script. You'll need to
have a CLASSPATH setup that contains the appropriate jar
(lib/core/jvmXXX/avalon-excalibur-vmXX-20020705.jar)

Giacomo

>
> 
>http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-cocoon2/src/java/org/apache/cocoon/Main.java?rev=HEAD&content-type=text/plain
>
> An example Ant target which invokes this behaviour, copied from Forrest
> build.xml:
>
>   dir="${dir.containing.docs}" failonerror="true">
>
>
>
>
>
>
>
>  
>  
>
>  
>  
>
>  
>  
>  
>
>  
>
> or check http://xml.apache.org/forrest/
>
> HTH,
>
> 
>


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




C2.1-dev Error: clearBuffer(): illegal state--> stream is committed

2002-07-15 Thread Michael Zehrer

Hi List,

using the latest CVS Version I#m getting strange errors from time to
time, which are caused by:

clearBuffer(): illegal state--> stream is committed

any idea? The full trace is after this?


Michael


Root-Fehler1: clearBuffer(): illegal state--> stream is committed 
java.lang.IllegalStateException: clearBuffer(): illegal state--> stream
is committed 
at java.lang.Throwable.fillInStackTrace(Native Method) 
at java.lang.Throwable.fillInStackTrace(Compiled Code) 
at java.lang.Throwable.(Compiled Code) 
at java.lang.Exception.(Compiled Code) 
at java.lang.RuntimeException.(Compiled Code) 
at java.lang.IllegalStateException.(Compiled Code) 
at
com.ibm.servlet.engine.srt.BufferedServletOutputStream.clearBuffer(Compi
led Code) 
at com.ibm.servlet.engine.srt.SRTServletResponse.reset(Compiled Code) 
at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.reset(Compiled
Code) 
at org.apache.cocoon.servlet.CocoonServlet.service(Compiled Code) 
at javax.servlet.http.HttpServlet.service(Compiled Code) 
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled
Code) 
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled
Code) 
at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled Code)

at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled
Code) 
at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled Code) 
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compil
ed Code) 
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled
Code) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(Compiled Code) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled
Code) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled
Code) 
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(Compiled Code) 
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled
Code) 
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Comp
iled Code) 
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compile
d Code) 
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compile
d Code) 
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.ru
n(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Comp
iled Code) 
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent
(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Sele
ctRunnable.notifyService(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Sele
ctRunnable.run(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable
.run(Compiled Code) 
at java.lang.Thread.run(Compiled Code) 


Umlaufender Fehler2: clearBuffer(): illegal state--> stream is committed

javax.servlet.ServletException: clearBuffer(): illegal state--> stream
is committed 
at java.lang.Throwable.fillInStackTrace(Native Method) 
at java.lang.Throwable.fillInStackTrace(Compiled Code) 
at java.lang.Throwable.(Compiled Code) 
at java.lang.Exception.(Compiled Code) 
at javax.servlet.ServletException.(ServletException.java:161) 
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled
Code) 
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled
Code) 
at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled Code)

at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled
Code) 
at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled Code) 
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compil
ed Code) 
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled
Code) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(Compiled Code) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled
Code) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled
Code) 
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(Compiled Code) 
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled
Code) 
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Comp
iled Code) 
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compile
d Code) 
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compile
d Code) 
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.ru
n(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Comp
iled Code) 
at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent
(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Sele
ctRunnable.notifyService(Compiled Code) 
at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$Sele
ctRunnabl

Antwort: Re: XML Form, extended validation and error messages

2002-07-15 Thread michael_hampel

Hello,

   thanks for your answer and providing the new feature.
   In the moment I am setting the error message in the perform() method
   by calling setValue of the appropriate Form and then output the
   message with xf:output referencing the appropriate path.

   i will try out your solution as well and will come back to you if it
  worked or not.

  Thanxs again,

   miHam


-
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: Monday Night: Free POI, lots of Pizza, And all theinfo you cantakein one night about POI and th

2002-07-15 Thread Derek Hohls

OK - I'll wait till your server is up-and-running (I assume
you will then upgrade the links to point to that)

Thanks
Derek

>>> [EMAIL PROTECTED] 15/07/2002 04:02:23 >>>
Derek Hohls wrote:

>Any chance that *all* the links off of:
>
>http://www.trilug.org/~acoliver/poiPres18.html 
>
>could be updated to point to a 'non localhost' machine
>(eg cvs.apache.org)
>
>Thanks!
>  
>
The 8080 links point to a local installation of Cocoon.  Is there a 
remote installation of Cocoon that I should point them to?  

I'd point them at my server but the POI samples aren't working at the 
moment,  I'm waiting for my patches to upgrade to the
latest POI and for the problems in the head to be fixed before
upgrading 
my server.

Sorry,

-Andy

PS. Just install Tomcat and Cocoon and the links will work :-)

>  
>
[EMAIL PROTECTED] 13/07/2002 04:37:25 >>>


>http://www.trijug.org/ -
>
>Monday night, if you're not doing too much and you live on the US
East
>
>coast, why not come on down (or up to North Carolina),
>we'll have lots of nutritious Hawaiian poi!  We'll have pizza, pop as

>well for those of you who are not into eating mushed tarro root.
>
>We'll go over the POI project, how to use it, what it is, etc.  We'll

>tackle some basics of Cocoon (as applies to using the HSSF Serializer

>and reporting), and I'll answer lots of questions.
>
>We should have some great information sources on hand.  You'll have
me
>
>(your humble poi-servant), Marc Johnson (who won't come on stage but
>you 
>might be able to corner him before or afterwards) and author of an 
>upcoming book, Conrad D'Cruz, who can talk to you in more detail
about
>
>Cocoon, life, the universe and everything.
>
>Hope to see anyone who can make it!
>
>-Andy
>
>
>
>
>
>-
>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: Monday Night: Free POI, lots of Pizza, And all theinfo you cantakein one night about POI and th

2002-07-15 Thread Derek Hohls

OK - I'll wait till your server is up-and-running (I assume
you will then upgrade the links to point to that)

Thanks
Derek

>>> [EMAIL PROTECTED] 15/07/2002 04:02:23 >>>
Derek Hohls wrote:

>Any chance that *all* the links off of:
>
>http://www.trilug.org/~acoliver/poiPres18.html 
>
>could be updated to point to a 'non localhost' machine
>(eg cvs.apache.org)
>
>Thanks!
>  
>
The 8080 links point to a local installation of Cocoon.  Is there a 
remote installation of Cocoon that I should point them to?  

I'd point them at my server but the POI samples aren't working at the 
moment,  I'm waiting for my patches to upgrade to the
latest POI and for the problems in the head to be fixed before
upgrading 
my server.

Sorry,

-Andy

PS. Just install Tomcat and Cocoon and the links will work :-)

>  
>
[EMAIL PROTECTED] 13/07/2002 04:37:25 >>>


>http://www.trijug.org/ -
>
>Monday night, if you're not doing too much and you live on the US
East
>
>coast, why not come on down (or up to North Carolina),
>we'll have lots of nutritious Hawaiian poi!  We'll have pizza, pop as

>well for those of you who are not into eating mushed tarro root.
>
>We'll go over the POI project, how to use it, what it is, etc.  We'll

>tackle some basics of Cocoon (as applies to using the HSSF Serializer

>and reporting), and I'll answer lots of questions.
>
>We should have some great information sources on hand.  You'll have
me
>
>(your humble poi-servant), Marc Johnson (who won't come on stage but
>you 
>might be able to corner him before or afterwards) and author of an 
>upcoming book, Conrad D'Cruz, who can talk to you in more detail
about
>
>Cocoon, life, the universe and everything.
>
>Hope to see anyone who can make it!
>
>-Andy
>
>
>
>
>
>-
>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]>




Running the Slide samples with JDBC?

2002-07-15 Thread gcasper

Hi,

while trying the Slide samples of 2.1-dev CVS on Win2K , I can't get it
running with JDBC store.
It looks like Slide doesn't pick up the values configured in
samples/slide/slide.xconf and the Slide nodestore ist always in memory and
contentstore is always on filesystem.
Am I missing something?
How is it supposed to work with a JDBC store?
Any hint is appreciated!

Thanks
Guido

--
Open Source Group   sunShine - Lighting up e:Business
=
Guido Casper, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87  [EMAIL PROTECTED] - http://www.s-und-n.de
=



-
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: Monday Night: Free POI, lots of Pizza, And all the info you cantakein one night about POI and the C

2002-07-15 Thread Andrew C. Oliver

Derek Hohls wrote:

>Any chance that *all* the links off of:
>
>http://www.trilug.org/~acoliver/poiPres18.html
>
>could be updated to point to a 'non localhost' machine
>(eg cvs.apache.org)
>
>Thanks!
>  
>
The 8080 links point to a local installation of Cocoon.  Is there a 
remote installation of Cocoon that I should point them to?  

I'd point them at my server but the POI samples aren't working at the 
moment,  I'm waiting for my patches to upgrade to the
latest POI and for the problems in the head to be fixed before upgrading 
my server.

Sorry,

-Andy

PS. Just install Tomcat and Cocoon and the links will work :-)

>  
>
[EMAIL PROTECTED] 13/07/2002 04:37:25 >>>


>http://www.trijug.org/ -
>
>Monday night, if you're not doing too much and you live on the US East
>
>coast, why not come on down (or up to North Carolina),
>we'll have lots of nutritious Hawaiian poi!  We'll have pizza, pop as 
>well for those of you who are not into eating mushed tarro root.
>
>We'll go over the POI project, how to use it, what it is, etc.  We'll 
>tackle some basics of Cocoon (as applies to using the HSSF Serializer 
>and reporting), and I'll answer lots of questions.
>
>We should have some great information sources on hand.  You'll have me
>
>(your humble poi-servant), Marc Johnson (who won't come on stage but
>you 
>might be able to corner him before or afterwards) and author of an 
>upcoming book, Conrad D'Cruz, who can talk to you in more detail about
>
>Cocoon, life, the universe and everything.
>
>Hope to see anyone who can make it!
>
>-Andy
>
>
>
>
>
>-
>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: i18n inside XSL

2002-07-15 Thread Albert Cervera Areny

Yes, it works! Thank you very much!

>> From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
>>
>> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> >
>> > I think I didn't explain it very well.
>> > The thing is that I've got an XSL file that calls throw
>> > 
>> > Where $document is a parameter I give to the stylesheet
>> > (forget about the
>> > thing of the HTML, it's as you said I can't modify it).How
>> > would you translate the XML file pointed by $document?
>>
>> I would not say that using document() function is not a good idea for
>> serving content, maybe you have reasons for doing so. However, I'd
> suggest
>> that you rething that approach and try to perform it using the
> sitemap.
>>
>> I don't know how document() function loads files, but if it does
>
> It does.
>
>> not use
>> Cocoon's source resolver then I don't see how you can achieve what you
> need.
>> Just a guess: try to point the document() to a Cocoon pipeline and not
> the
>> file directly using 'cocoon://' protocol, e.g.:
>> document('cocoon://{$document}').
>
> This works.
>
> Vadim
>
>
>>
>> Konstantin
>>
>> >
>> > >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> > >>
>> > >> Hi,
>> > >>   I've been able to use an HTML file (which I've not
>> > designed) as my
>> > >>   stylesheet and in which I call each XML document I want to
>> > >> process. I
>> > >>   get this XML file as a parameter to the stylesheet.  The
>> > >> thing is now that I'd like to be able to translate the file I'm
>> > >>   gonna call and it is a problem because the i18n provided by
>> > >> cocoon is a
>> > >>   transformer and should be called within the 'sitemap.xmap'
>> > >> I think this is not the way cocoon it's been designed to
>> > work but I'm
>> > >>   really tight to the HTML file the web designers have made
>> > >> me available.
>> > >
>> > > I don't quite understand how are you going to use an HTML file as
> a
>> > > stylesheet.
>> > >
>> > > And would you serve your content without sitemap.xmap? From what
> you
>> > > tell I understood this:
>> > > 1) you have a stylesheet that you can't change
>> > > 2) you get your XML file name from a request parameter
>> > > 3) the XML file should be translated before transformation by the
>> > > stylesheet Correct?
>> > >
>> > > If so, then everything can be perfectly done in the sitemap.
> Simply
>> > > setup a pipeline using RequestParameterAction (or an RequestInput
>> > > module in Cocoon 2.1) that will propogate the filename to
>> > the sitemap.
>> > > The rest is classics: 1) generate you file
>> > > 2) i18n
>> > > 3) xslt
>> > >
>> > > And that's all.
>> > >
>> > > Does this solve your issue?
>> > >
>> > > Konstantin
>> > >
>> > >
>> > >>   Any suggestion will be appreciated.
>> > >> Thanks.
>> > >>
>> > >>
>> > >> --
>> > >> Albert Cervera Areny
>> > >> Dept. Informàtica Sedifa, S.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]>


-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.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: XML Form, extended validation and error messages

2002-07-15 Thread Ivelin Ivanov

Thanks for the request.

The architecturally  cleanest way is to provide your own Validator which can
use the Schematron Validator and add its own violations.

However for convenience, I have added another method to Form.

Now you can call
form.addViolations( newViolations );
where newViolations is a List of Violation.

This call should be placed in the perform method of the Actions,
which is after the form model has been populated and validated (optional) by
the provided Validator.



If this satisfies your request, please respond with SUMMARY.

Thanks,

Ivelin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 1:03 AM
Subject: XML Form, extended validation and error messages


> Hello,
>
>   i again have a question concerning validation in connection with XMl
> forms.
>   Is there a standard way how to handle validation, that cannot be done
> with
>   the Schematron approach?
>
>  I mean something like validating if a password is already existing in a
>  database or running a Luhn Test for credit card validation.
>
>  In the moment I would do this validation in my Action that I provide for
>  the form handling (e.g.: the perform() method).
>
> What I would like to find out now is how to get error messages back
> to the page where the wrong input came from, if the validation fails.
>
> Can I access the xml file and  add an error?
>
> How is it supposed to be done?
>
>
> -
> 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: passing a value into an XML form from somewhere else

2002-07-15 Thread Andrew C. Oliver

I still don't think I'm explaining this correctly..   I want to get the 
value of an HTTPRequest parameter that called the XMLForm
but was *not* part of the XMLForm into the XMLForm or into the bean.

http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer.html?itemNo=3

So when I call that, I want the (not hidden now, but hopefully will be again) itemNo 
to be populated
with the 3.  From the form, how do I get itemNo into the model or the form, without 
making the calling
screen part of the XMLForm?

-Andy




Ivelin Ivanov wrote:

>I assume your cinclude transformer substitures the actual value.
>
>This is what you could do:
>
>
>  
>
>
>Now after cinclude substitues the value, the XMLFormTransformer will not
>(should not) use the value of the bean property, but the explicitly
>specified value in the markup instead.
>
>How is that?
>
>
>  
>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>>Seems like you extended the framework to support xmlform-model ;)
>>>This has been discussed before, maybe we should check it in.
>>>
>>>  
>>>
>>I didn't do it... It must already be there...?
>>
>>
>>
>>>Of course this is a little delicate, because the model can be a DOM node.
>>>
>>>As to your question, why don't you use xf:hidden? See the most recent
>>>XMLForm demo.
>>>
>>>
>>>  
>>>
>>Right, but how do I get the value into the hidden from OUTSIDE the
>>xmlform pipeline?  meaning how do I pass a parameter into the
>>xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
>>so I could see it was always 0 instead of 3.
>>
>>-Andy
>>
>>
>>
>>>Ivelin
>>>
>>>- Original Message -
>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Sunday, July 14, 2002 6:58 PM
>>>Subject: Re: passing a value into an XML form from somewhere else
>>>
>>>
>>>
>>>
>>>  
>>>
Sure.

here is the offer action (which loads the form)



  
  
  
  

  
  
  
  >>>



>>>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
>>>
>>>
>>>  
>>>
  



here is the url which calls it






>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffe
>>
>>
>r
>  
>
>>>.html?itemNo=3
>>>
>>>
>>>  
>>>
Where the screen calling the form is not itself an XML form.  However it
needs to pass a parameter to be stored
in a hidden field (or otherwise poke it into the OfferBean attached to
the form).

You can actually go here:





>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiqu
>>
>>
>e
>  
>
>>>s/3.html?category=Antiques
>>>
>>>
>>>  
>>>
and see what I mean (click on Make An Offer)

-Andy


Ivelin Ivanov wrote:





>Myabe I misunderstand the problem.
>
>Can you send your sitemap and some more details.
>
>
>
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, July 14, 2002 5:39 PM
>Subject: Re: passing a value into an XML form from somewhere else
>
>
>
>
>
>
>  
>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>
>>
>>
>>
>>>The name of the parameter has to represent the XPath to the bean
>>>
>>>
>>>
>>>
>>>  
>>>
>property.
>
>
>
>
>  
>
>>>See the html source of an xmlform page to see how element names are
>>>translated into widgets @name attributes.
>>>
>>>Does this help?
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>I don't think so.  I need to pass the data into the pipeline from
>>outside.  If I just pass the same parameter as a propery it
>>is not picking it up.  Or at least its not ending up in the form.
>>
>>-Andy
>>
>>
>>
>>
>>
>>
>>
>>>Ivelin
>>>
>>>
>>>- Original Message -
>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Sunday, July 14, 2002 11:50 AM
>>>Subject: Q: passing a value into an XML form from somewhere else
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
Hi All,

I've got a situation where I have multiple items on a dynamically
generated page and I want to be able to allow the user to
click on a link and "post an offer" on them.  So for instance

on









http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Anti


>q
>  
>
>  
>
>>>u
>>>

Re: Insert full date and time into Oracle databse using esql:parameter-solved

2002-07-15 Thread yuryx

Thanx Vadim!

Vadim Gritsenko wrote:

>>From: yuryx [mailto:[EMAIL PROTECTED]]
>>
>>Hi all!
>>
>>Is there any way to insert full datetime value into oracle database
>>using the following syntax:
>>
>>
>> java.util.Date today=new java.util.Date();
>>
>>...
>> insert into query_stack
>>(t_stamp,username,q_body,q_type) values (
>>>
>>java.sql.Date(today.getTime()),
>>
>>
>
>Yury,
>
>Please read javadoc on java.sql.Date: it is *just* date, no time inside.
>
>You should be using java.sql.Timestamp.
>
>Vadim
>
>
>  
>
>uname,
>  
>
>param,
>  
>
>>
>>
>Integer.parseInt(sql_type)ramete
>  
>
>>r>
>>  )
>>
>>  
>>
>>I always get the result value with 'zero' time :( , and I need to be
>>able to insert hh24:mi:ss values.
>>
>>Thanx.
>>Yury.
>>
>>
>
>
>-
>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: [ANN] Apache Cocoon 2.0.3 Release

2002-07-15 Thread Giacomo Pati


Congrats to all! Cool work.

I see I've missed alot according to the huge list of changes.

Giacomo

On Mon, 15 Jul 2002, Carsten Ziegeler wrote:

> Apache Cocoon 2.0.3 Released
> 



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




pipelining...

2002-07-15 Thread Othman Haddad








  hi,
  what i want to do is constructing a chain like that:
  from an xsd file,i generate javaclasses, then i manipulate xml 
  documents from that classes, marshalling and unmarshalling (like what 
  castor does for instance), i want also to put a transfomration on the xml 
  documents before unmarshalling them to java objects.
  so:
  1)can i do all this with cocoon and what do i need?, (i can suppose 
  that the javaclasses are already generated from an xsd file).?
   
  2)can i isolate the pipelining process of cocoon2, because cocoon 
  does 100 times more than what i want, and i just need the API of chain 
  manipulation that i find interesting.?
   
  hope i was clear on my question and thank you for your precious 
  help.





	
	
	
	
	
	
	




  IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



RE: problems accesing work environment

2002-07-15 Thread Vadim Gritsenko


http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=Stylesheet+di
rected+termination&q=b

In short: you have syntax error in sitemap file. See logs for message
from XSLT transformer.


Vadim


> From: Diego Lluna [mailto:[EMAIL PROTECTED]]
> 
> dear all,
> 
> i've been fighting with cocoon for some time already
> (without much success).
> 
> I set up a new work environment, so as to leave original
> cocoon files untouched.
> 
> it used to work, and now it doesn't. I've cleaned it up,
> as much as i've been able, but it keeps on throwing the
> same error:
> "
> type fatal
> message Language Exception
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Could not
load class
> for program 'org\apache\cocoon\www\sitemap_xmap' due to a
> java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> request-uri
> /emkt/
> "
> 
> on the error.log, i've found this, but i don't understand what it
means:
> 
> ""
> FATAL_E (2002-07-15) 13:09.49:261   [core.xslt-processor] (/emkt/)
> HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
> javax.xml.transform.TransformerException: Stylesheet directed
termination
> javax.xml.transform.TransformerException: Stylesheet directed
termination
>   at
org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)
> ...
>   at
>
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
39)
>   at java.lang.Thread.run(Thread.java:484)
> FATAL_E (2002-07-15) 13:09.49:272   [core.xslt-processor] (/emkt/)
> HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
> javax.xml.transform.TransformerException: Stylesheet directed
termination
> javax.xml.transform.TransformerException: Stylesheet directed
termination
>   at
org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)
> ...
>   at
>
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
39)
>   at java.lang.Thread.run(Thread.java:484)
> ERROR   (2002-07-15) 13:09.50:523   [sitemap] (/emkt/)
> HttpProcessor[8080][4]/Handler: Error compiling sitemap
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Could not
load class
> for program 'org\apache\cocoon\www\sitemap_xmap' due to a
> java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateRes
> ource(ProgramGeneratorImpl.java:285)
> ...
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
> ramGeneratorImpl.java:196)
>   at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
>   at java.lang.Thread.run(Thread.java:484)
> ""
> 
> i've been looking also in the access.log, but no idea; i copy it here
for
> reference
> 
> "
> 
> DEBUG   (2002-07-15) 13:08.53:882   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: getRealPath for /: D:\tomcat\webapps\emkt\
> DEBUG   (2002-07-15) 13:08.53:882   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: URL for Root: file:/D:/tomcat/webapps/emkt/
> DEBUG   (2002-07-15) 13:08.53:882   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: work-directory was not set - defaulting to
> D:\tomcat\work\localhost\emkt\cocoon-files
> DEBUG   (2002-07-15) 13:08.53:922   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: upload-directory was not set - defaulting to
> D:\tomcat\work\localhost\emkt\cocoon-files\upload-dir
> DEBUG   (2002-07-15) 13:08.53:932   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: cache-directory was not set - defaulting to
> D:\tomcat\work\localhost\emkt\cocoon-files\cache-dir
> DEBUG   (2002-07-15) 13:08.53:932   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: Using configuration file: /cocoon.xconf
> DEBUG   (2002-07-15) 13:08.53:952   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: show-time was not set - defaulting to false
> DEBUG   (2002-07-15) 13:08.53:952   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: parent-component-manager was not set -
defaulting to
> null.
> DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: extraClassPath is absolute:
C:\tomcat\common\lib\xalan-
> 2.2.0.jar
> DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: extraClassPath is not absolute pre-pending
context path:
> D:\tomcat\webapps\emkt\
>   C:\tomcat\common\lib\xerces-1.4.4.jar
> DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: extraClassPath 

RE: i18n inside XSL

2002-07-15 Thread Vadim Gritsenko

> From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> 
> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >
> > I think I didn't explain it very well.
> > The thing is that I've got an XSL file that calls throw
> > 
> > Where $document is a parameter I give to the stylesheet
> > (forget about the
> > thing of the HTML, it's as you said I can't modify it).How
> > would you translate the XML file pointed by $document?
> 
> I would not say that using document() function is not a good idea for
> serving content, maybe you have reasons for doing so. However, I'd
suggest
> that you rething that approach and try to perform it using the
sitemap.
> 
> I don't know how document() function loads files, but if it does

It does.

> not use
> Cocoon's source resolver then I don't see how you can achieve what you
need.
> Just a guess: try to point the document() to a Cocoon pipeline and not
the
> file directly using 'cocoon://' protocol, e.g.:
> document('cocoon://{$document}').

This works.

Vadim


> 
> Konstantin
> 
> >
> > >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> > >>
> > >> Hi,
> > >>   I've been able to use an HTML file (which I've not
> > designed) as my
> > >>   stylesheet and in which I call each XML document I want to
> > >> process. I
> > >>   get this XML file as a parameter to the stylesheet.  The
> > >> thing is now that I'd like to be able to translate the file I'm
> > >>   gonna call and it is a problem because the i18n provided by
> > >> cocoon is a
> > >>   transformer and should be called within the 'sitemap.xmap'
> > >> I think this is not the way cocoon it's been designed to
> > work but I'm
> > >>   really tight to the HTML file the web designers have made
> > >> me available.
> > >
> > > I don't quite understand how are you going to use an HTML file as
a
> > > stylesheet.
> > >
> > > And would you serve your content without sitemap.xmap? From what
you
> > > tell I understood this:
> > > 1) you have a stylesheet that you can't change
> > > 2) you get your XML file name from a request parameter
> > > 3) the XML file should be translated before transformation by the
> > > stylesheet Correct?
> > >
> > > If so, then everything can be perfectly done in the sitemap.
Simply
> > > setup a pipeline using RequestParameterAction (or an RequestInput
> > > module in Cocoon 2.1) that will propogate the filename to
> > the sitemap.
> > > The rest is classics: 1) generate you file
> > > 2) i18n
> > > 3) xslt
> > >
> > > And that's all.
> > >
> > > Does this solve your issue?
> > >
> > > Konstantin
> > >
> > >
> > >>   Any suggestion will be appreciated.
> > >> Thanks.
> > >>
> > >>
> > >> --
> > >> Albert Cervera Areny
> > >> Dept. Informàtica Sedifa, S.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: Insert full date and time into Oracle databse using esql:parameter

2002-07-15 Thread Vadim Gritsenko

> From: yuryx [mailto:[EMAIL PROTECTED]]
> 
> Hi all!
> 
> Is there any way to insert full datetime value into oracle database
> using the following syntax:
> 
> 
>  java.util.Date today=new java.util.Date();
> 
> ...
>  insert into query_stack
> (t_stamp,username,q_body,q_type) values (
> 
>java.sql.Date(today.getTime()),

Yury,

Please read javadoc on java.sql.Date: it is *just* date, no time inside.

You should be using java.sql.Timestamp.

Vadim


>
uname,
>
param,
> 
>
Integer.parseInt(sql_type) r>
>   )
> 
>   
> 
> I always get the result value with 'zero' time :( , and I need to be
> able to insert hh24:mi:ss values.
> 
> Thanx.
> Yury.


-
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: MySQL Numbers and Xalan...

2002-07-15 Thread Joerg Heinicke

It's not a valid number in XSLT/XPATH:

http://www.w3.org/TR/xpath#NT-Number

A number may only consist of digits and '.'. You either have to convert it 
before transformation or search for a stylesheet which transforms such a 
number to a conformant one.

Regards,

Joerg

Lorenzo De Sio wrote:
> Hi all,
> 
> I've got the following problem (on C2.0):
> 
> a rowset generated by the SQLTransformer (which seems to me to not allow
> specific control over column format) contains rows like these:
> 
>   
>   Totale Toscana 
>   4.6985818E8 
>   6.79535678E8 
>   6.01985915E8 
>   1.2667E8 
>   65 
>   
> 
> the problem is that Xalan doesn't recognize these numeric values as numbers,
> not allowing me to apply any number formatting.
> 
> Any ideas?
> 
> 
> Thanks in advance,
> 
> L:


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
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: MySQL Numbers and Xalan...

2002-07-15 Thread Bert Van Kets

Have you tried esql?  It gives you a lot more control over how you request 
the data.  There are enough docs and samples on esql to get you started.
Bert

   At 14:21 15/07/2002 +0200, you wrote:
>Hi all,
>
>I've got the following problem (on C2.0):
>
>a rowset generated by the SQLTransformer (which seems to me to not allow
>specific control over column format) contains rows like these:
>
>   
>   Totale Toscana
>   4.6985818E8
>   6.79535678E8
>   6.01985915E8
>   1.2667E8
>   65
>   
>
>the problem is that Xalan doesn't recognize these numeric values as numbers,
>not allowing me to apply any number formatting.
>
>Any ideas?
>
>
>Thanks in advance,
>
>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]>


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




MySQL Numbers and Xalan...

2002-07-15 Thread Lorenzo De Sio

Hi all,

I've got the following problem (on C2.0):

a rowset generated by the SQLTransformer (which seems to me to not allow
specific control over column format) contains rows like these:

  
  Totale Toscana 
  4.6985818E8 
  6.79535678E8 
  6.01985915E8 
  1.2667E8 
  65 
  

the problem is that Xalan doesn't recognize these numeric values as numbers,
not allowing me to apply any number formatting.

Any ideas?


Thanks in advance,

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: xhtml2fo.xsl anyone

2002-07-15 Thread Bert Van Kets

thanks for sharing the experience Bertrand.
There are two documents in Forrest I can use for this html2doc10.xsl and 
doc102fo.xsl (not sure about the correct names).
I'll check them out and perhaps move them to doc11, this would make some 
Forresters very happy (reading this Konstantin?).
Bert

At 12:54 15/07/2002 +0200, you wrote:
>Unfortunately I don't have a working XHTML to FO conversion, rather some
>experience to share: we wrote such a transformation for a customer project
>(too specific to share I'm afraid), and in retrospect I think the following
>structure would have been much more reusable and maintainable:
>
>   XHTML -> logical document -> FO
>
>using two XSLT transforms.
>
>By "logical document" I mean going back to your document structure,
>extracting the "meat" from the input document. Then only in the second
>transform would you apply presentation to it.
>
>This is much easier to test and debug than a single-pass transform IMHO, and
>converting to logical structure is much more reusable if you need to generate
>other formats or different presentations later on.
>
>My 2 cents..
>-Bertrand
>
>-
>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]>




testing error

2002-07-15 Thread Peter Flynn

I've added the following lines to the distribution sitemap.xmap
(using the jakarta-tomcat-4.0.4-b2-01-LE-jdk14 distribution),
immediately before the section commented "Sites":

  



  

  



  
  
   
 
  
  
   

The files are all in place as given within the cocoon directory:

$ ls -lR cc
cc:
total 16
drwxrwxr-x2 peterpeter4096 Jul 15 12:24 dtds
-rw-rw-r--1 peterpeter 403 Jul 11 11:27 homepage.xml
drwxrwxr-x2 peterpeter4096 Jul 15 11:44 info
drwxrwxr-x2 peterpeter4096 Jul 15 12:25 styles

cc/dtds:
total 4
-rw-rw-r--1 peterpeter 962 Jul 11 09:13 website.dtd

cc/info:
total 4
-rw-rw-r--1 peterpeter3568 Jul 12 14:59 objectives.xml

cc/styles:
total 16
-rw-rw-r--1 peterpeter 331 Jul 11 09:16 homepage.xsl
-rw-rw-r--1 peterpeter 155 Jul 12 14:57 information.css
-rw-rw-r--1 peterpeter4996 Jul 12 14:59 information.xsl
$

and both XML files have been validated with nsgmls and they both
transform correctly with xt and their relevant XSL files, so I'm
satisfied the documents are syntactically correct. 

When I request cc in a browser (ie http://localhost:8080/cocoon/cc) it
works perfectly (as do all the distro examples). But when I try
http://localhost:8080/cc/objectives I get

   The org.apache.cocoon.www.sitemap_xmap notifies that 
   org.apache.cocoon.ProcessingException says:

   Exception in creating Transform Handler

   More precisely:

   org.apache.cocoon.ProcessingException: Exception in creating 
   Transform Handler: java.lang.NullPointerException

This sounds as if it cannot fire up the transformer. I've obviously
made some error, but I can't see where. This is under RHL 7.2 with
j2sdk1.4.0 on a 500MHz Pentium with 128Mb memory and several Gb of
spare disk. I can't work out why it would have such a problem.

The trace says (to start with)

Original exception : java.lang.NullPointerException
at 
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:656)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:445)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:216)
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:829)
at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:590)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:829)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)

Is there any way of making it turn off the Java stuff and turn on proper
reporting, so I can see the line number and character offset in the XML
or XSL document where the error was thrown? The Java trace is fine for
tracking bugs in the Java code, but where the error is the likely to be
the user's (ie, mine) rather than Cocoon's authors' ("yours" :-) we do
need user-document error reporting, if only to ascertain if the bug really
is in the user document and not in the Java code.

///Peter


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




Cocoon 2.02 and Weblogic 6.1 SP3

2002-07-15 Thread Ulf Åkerberg

Servicepack 3 for Weblogic seems to solve a lot of the problems with installing Cocoon 
that existed earlier, you had to unpack the war file and the jar files. Bea has now 
corrected a number of problems regarding jar files.

Cocoon now seems to deploy allright if you install it as a war file, but when trying 
to access it, it will throw the following error: 

 Servlet failed with Exception>
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at org.apache.avalon.framework.context.DefaultContext.put(DefaultContext
.java:107)
at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java
:423)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:713)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:656)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:601)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) 

Anybody has any ideas ?


Regards


Ulf


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


problems accesing work environment

2002-07-15 Thread Diego Lluna

dear all,

i've been fighting with cocoon for some time already
(without much success).

I set up a new work environment, so as to leave original
cocoon files untouched.

it used to work, and now it doesn't. I've cleaned it up,
as much as i've been able, but it keeps on throwing the
same error:
"
type fatal
message Language Exception
description org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Could not load class for 
program 'org\apache\cocoon\www\sitemap_xmap' due to a 
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/emkt/
"

on the error.log, i've found this, but i don't understand what it means:

""
FATAL_E (2002-07-15) 13:09.49:261   [core.xslt-processor] (/emkt/) 
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: Stylesheet directed termination
javax.xml.transform.TransformerException: Stylesheet directed termination
at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)
...
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
at java.lang.Thread.run(Thread.java:484)
FATAL_E (2002-07-15) 13:09.49:272   [core.xslt-processor] (/emkt/) 
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: Stylesheet directed termination
javax.xml.transform.TransformerException: Stylesheet directed termination
at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)
...
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
at java.lang.Thread.run(Thread.java:484)
ERROR   (2002-07-15) 13:09.50:523   [sitemap] (/emkt/) HttpProcessor[8080][4]/Handler: 
Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Could not load class for 
program 'org\apache\cocoon\www\sitemap_xmap' due to a 
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:285)
...
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
at java.lang.Thread.run(Thread.java:484)
""

i've been looking also in the access.log, but no idea; i copy it here for reference

"

DEBUG   (2002-07-15) 13:08.53:882   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: getRealPath for /: D:\tomcat\webapps\emkt\
DEBUG   (2002-07-15) 13:08.53:882   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: URL for Root: file:/D:/tomcat/webapps/emkt/
DEBUG   (2002-07-15) 13:08.53:882   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: work-directory was not set - defaulting to 
D:\tomcat\work\localhost\emkt\cocoon-files
DEBUG   (2002-07-15) 13:08.53:922   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: upload-directory was not set - defaulting to 
D:\tomcat\work\localhost\emkt\cocoon-files\upload-dir
DEBUG   (2002-07-15) 13:08.53:932   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: cache-directory was not set - defaulting to 
D:\tomcat\work\localhost\emkt\cocoon-files\cache-dir
DEBUG   (2002-07-15) 13:08.53:932   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: Using configuration file: /cocoon.xconf
DEBUG   (2002-07-15) 13:08.53:952   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: show-time was not set - defaulting to false
DEBUG   (2002-07-15) 13:08.53:952   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: parent-component-manager was not set - defaulting to 
null.
DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: extraClassPath is absolute: 
C:\tomcat\common\lib\xalan-2.2.0.jar
DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: extraClassPath is not absolute pre-pending context path: 
D:\tomcat\webapps\emkt\
  C:\tomcat\common\lib\xerces-1.4.4.jar
DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: extraClassPath is not absolute pre-pending context path: 
D:\tomcat\webapps\emkt\
  C:\tomcat\common\lib\xml-apis.jar
DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: extraClassPath is not absolute pre-pending context path: 
D:\tomcat\webapps\emkt\
  C:\tomcat\common\lib\batik-libs-1.1.1.jar
DEBUG   (2002-07-15) 13:08.53:972   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet: Tr

Re: xhtml2fo.xsl anyone

2002-07-15 Thread Bertrand Delacretaz

Unfortunately I don't have a working XHTML to FO conversion, rather some 
experience to share: we wrote such a transformation for a customer project 
(too specific to share I'm afraid), and in retrospect I think the following 
structure would have been much more reusable and maintainable:

  XHTML -> logical document -> FO

using two XSLT transforms.

By "logical document" I mean going back to your document structure, 
extracting the "meat" from the input document. Then only in the second 
transform would you apply presentation to it.

This is much easier to test and debug than a single-pass transform IMHO, and 
converting to logical structure is much more reusable if you need to generate 
other formats or different presentations later on.

My 2 cents..
-Bertrand

-
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: [ANN] Apache Cocoon 2.0.3 Release

2002-07-15 Thread Morrison, John

Congrats everyone :)


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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




xhtml2fo.xsl anyone

2002-07-15 Thread Bert Van Kets

I'm looking for a working version of a xhtml2fo.xsl file.  I have found 
some on the net, but can't get some decent results. :-(
Any help is welcome.
Thanks,
Bert

-
Please notify me if you did not receive this mail.


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




[ANN] Apache Cocoon 2.0.3 Release

2002-07-15 Thread Carsten Ziegeler

Apache Cocoon 2.0.3 Released


   The Apache Cocoon team is proud to announce the new release
   of Apache Cocoon.


Apache Cocoon is an XML framework that raises the usage of
XML and XSLT technologies for server applications to a new level.
Designed for performance and scalability around pipelined SAX
processing, Cocoon offers a flexible environment based on the
separation of concerns between content, logic and style.
A centralized configuration system and sophisticated caching
top this all off and help you to create, deploy and maintain
rock-solid XML server applications.



Today, most web engineers consider XML as the key for an improved
web model and web site managers see XML as a way to reduce costs
and ease production. In an era where services rather than software
will be key for economic success, a better and less expensive model
for web publishing will be a winner, especially one based on open
standards.



This release of Cocoon is a maintainance release focusing on
improved performance, robustness and better documentation. See the
following changes list for more information.



For more information about Apache Cocoon 2.0.3, please go to
http://xml.apache.org/cocoon

Changes with Apache Cocoon 2.0.3

*) When Cocoon is built, the build system automatically detects the current
   jvm and builds a target for this virtual machine. This is eiter JVM 1.4
   or JVM 1.2 upto 1.3. [CZ]

*) Fixed current page indication in documentation menu (synced with
   HEAD). [KP]

*) Internationalization and JSP samples are refactored. [KP]

*) When building Cocoon it is required to set the targetted JVM (either
   1.3 (means 1.3 or lower) or1.4. [CZ]

*) Fix NullPointerException in Notifier. [VG]

*) Multiple results seem not to be supported by some DBMSs (i.e. Oracle
   and Informix). Therefore this is made optional in ESQL. A new parameter
   (esql:allow-multiple-results) to esql:connection re-enables it.
   See EsqlConnection for details. [CH]

*) Properly escape (national) characters included in element's attributes
   in XSP page. [VG]

*) Addconnect-attempts and connect-waittime parameters to the
SQLTransformer.
   Transformer tries toget a connection to the DB several times before
returning
   anerror. [VG]

*) Fix sitemap compilation error when matchers areused within view or
   resource. [VG]

*) Fix sitemap compilation error when actions are used within view. [VG]

*) TraxTransformer and XSLTProcessor components now correctly handle
   dependecies on imported (via xsl:include)XSLT stylesheets. [VG]

*) Removed Java 1.3+ only method (URL.getPath()) from
   LinkStatusGenerator. [NKB]

*) CocoonServletno longer builds its own classloader. Also, it no more sets
  the thread's context classloaderunless the "init-classloader" parameter is
true.
  To have Cocoon use its own classloader, usethe ParanoidCocoonServlet. [SW]

*) ResourceReader incorrectly advertised byte ranges support. [VG]

*) Added a "handle-exceptions" init argument in web.xml, used by
   CocoonServlet for the exceptions that the core Cocoon class throws. If
true
   or not set, this class will try to catch and handle all Cocoon
exceptions.
   If false, it will rethrow them to the servlet container. [NKB]

*) Changed the Notifier notify() methods to accept amimetype instead of
   returning it. There is no way in which this method could understand what
   mime/type to use from the notification info and the stream. It was added
   to the methodusing a ContentHandler, since it could output svg for
example.
   The old methods were deprecated. [NKB]

*) Fixed error reporting in CocoonServlet: stream is now closed at the end
of
   the service method, the content-type is sent before sending the error and
   the notification messages are now more descriptive. [NKB]

*) Support Parameterizable URLFactories. [VG]

*) Fixed multipart request problems with IE6. [GF]

*) Added ability to run Cocoon on Novell OS. [VG]

*) Make the multipart/form-dataparser aware of the encoding used by the
   processed request. [SM]

*) Added support for StreamGenerator to read from 'multipart/form-data'
   as well. [SM]

*) Started new documents for Documentation To Do List and Documentation
History
   of Changes. [DC]

*) Fixed NPE in DefaultNotifyingBuilder. [GF]

*) Fixed NPE in I18nTransformer. [GF]

*) i18n transformer changed to useshorter syntax for number formatting. Now
   'type' attribute with'number', 'currency' and 'percent' should be used
instead
   of 'type' and 'sub-type'combination. [KP]

*) New documents on databases and Cocoon, database actions and modules. [CH]

*) Additional input modules: Date, Digest, ConstantString, Random,
NullInput,
   Collection [CH]

*) Sendmail logicsheet works again. [CH]

*) Array support for original form validation and new constraint for
strings:
   "one-of" listsall allowed values, separated by "|"s. List should start
   and end wi

Deleting multiple rows with the modular DatabaseDeleteAction

2002-07-15 Thread Tuomo Lesonen

Hi,

I can't figure out how to remove multiple rows with this action within a
single request. Am I using the right syntax in HTML? :


  
  
  


This seems to remove only one row from the table. Also tried...


  
  
  


and in database.xml:


  

  


  
  

 


table is accessed from the sitemap with this set:


  


...But doesn't work either, only throws with a nullpointer exception. 

Cocoon 2.03 (dev)
Tomcat 4.04
JDK 1.4.1
MS SQL2000

Has anyone done this? Help needed.

Tuomo



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




xml:db api and xml database (tamino)

2002-07-15 Thread Barbara Post

Hi, I have the following error :

ERROR   (2002-07-15) 12:09.25:376
[sitemap.generator.file](/baepp/license/defaultgeneration)
HttpProcessor[9090][4]/FileGenerator: Could not read resource
xmldb:tamino://localhost/tamino/mydatabase/mycollection
java.util.NoSuchElementException
 at java.util.StringTokenizer.nextToken(StringTokenizer.java:232)
 at
com.softwareag.tamino.xmldb.api.base.TDatabase.getCollection(TDatabase.java:
78)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
 at
org.apache.cocoon.components.source.XMLDBSource.resourceToSAX(XMLDBSource.ja
va:234)
 at
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:224)
 at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:142)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
 at
org.apache.cocoon.www.sitemap_xmap.matchN1024B(E:\tomcat404\work\Standalone\
localhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1985)
 at
org.apache.cocoon.www.sitemap_xmap.process(E:\tomcat404\work\Standalone\loca
lhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1688)
 at
org.apache.cocoon.www.sitemap_xmap.process(E:\tomcat404\work\Standalone\loca
lhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1609)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)


I use the correct driver for Tamino database :
com.softwareag..tamino.xmldb.api.base.TDatabase.


   

   

This tamino uri is right in its construction... Maybe someone has a clue.
Thanks.

BP


-
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: Save output files

2002-07-15 Thread Steven Noels

Thomas Balthazar wrote:

> and i want to save the output (the html file) instead of simply viewing
> it with my browser.
> Can you please give me some clues.

Cocoon offers a wonderful, if less-than-optimal documented command-line 
interface that crawls itself given a starting point URL. You can easily 
invoke this commandline interface using Ant or from a little batch file. 
If you want an example of this, check the 'build docs' target that comes 
with Cocoon, or have a look at Forrest which does the same thing.

I don't immediately recall some location documenting all of its 
commandline option, as always there is the source code as a reference:

http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-cocoon2/src/java/org/apache/cocoon/Main.java?rev=HEAD&content-type=text/plain

An example Ant target which invokes this behaviour, copied from Forrest 
build.xml:

 
   
   
   
   
   
   
   
 
 
   
 
 
   
 
 
 
   
 

or check http://xml.apache.org/forrest/

HTH,


-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [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: passing a value into an XML form from somewhere else

2002-07-15 Thread Mohamed El-Refaey

Hi Andrew

I don't know If what I'll tell can help or not, but u can set the OfferBean
before populating the XMLForm by the value of the itemNo into the
OfferAction or in another Action that act when u press"Make Offer"
Link --->OfferBean.setItemNo(newItemNo) and it will automatically rendered
into the Form.
I wish it can help

Mohamed
- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 7:50 PM
Subject: Q: passing a value into an XML form from somewhere else


> Hi All,
>
> I've got a situation where I have multiple items on a dynamically
> generated page and I want to be able to allow the user to
> click on a link and "post an offer" on them.  So for instance
>
> on
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antique
s/3.html
> I want to be able to have the user click
> "make an offer"
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
.html?itemNo=3
> which will pass to an XMLForm based action.
>
> The problem is I need itemNo to end up in my OfferBean.java along with
> the user populated fields in the form.  How do I take
> an http parameter and get it into the bean attached to an XMLForm?
>
> Thanks,
>
> Andy
>
>
>
>
> -
> 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 inside XSL

2002-07-15 Thread Piroumian Konstantin

> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] 
> 
> I think I didn't explain it very well.
> The thing is that I've got an XSL file that calls throw
> 
> Where $document is a parameter I give to the stylesheet 
> (forget about the
> thing of the HTML, it's as you said I can't modify it).How 
> would you translate the XML file pointed by $document?

I would not say that using document() function is not a good idea for
serving content, maybe you have reasons for doing so. However, I'd suggest
that you rething that approach and try to perform it using the sitemap.

I don't know how document() function loads files, but if it does not use
Cocoon's source resolver then I don't see how you can achieve what you need.
Just a guess: try to point the document() to a Cocoon pipeline and not the
file directly using 'cocoon://' protocol, e.g.:
document('cocoon://{$document}'). 

Konstantin

> 
> >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >>
> >> Hi,
> >>   I've been able to use an HTML file (which I've not 
> designed) as my
> >>   stylesheet and in which I call each XML document I want to
> >> process. I
> >>   get this XML file as a parameter to the stylesheet.  The
> >> thing is now that I'd like to be able to translate the file I'm
> >>   gonna call and it is a problem because the i18n provided by
> >> cocoon is a
> >>   transformer and should be called within the 'sitemap.xmap'
> >> I think this is not the way cocoon it's been designed to 
> work but I'm
> >>   really tight to the HTML file the web designers have made
> >> me available.
> >
> > I don't quite understand how are you going to use an HTML file as a
> > stylesheet.
> >
> > And would you serve your content without sitemap.xmap? From what you
> > tell I understood this:
> > 1) you have a stylesheet that you can't change
> > 2) you get your XML file name from a request parameter
> > 3) the XML file should be translated before transformation by the
> > stylesheet Correct?
> >
> > If so, then everything can be perfectly done in the sitemap. Simply
> > setup a pipeline using RequestParameterAction (or an RequestInput
> > module in Cocoon 2.1) that will propogate the filename to 
> the sitemap.
> > The rest is classics: 1) generate you file
> > 2) i18n
> > 3) xslt
> >
> > And that's all.
> >
> > Does this solve your issue?
> >
> > Konstantin
> >
> >
> >>   Any suggestion will be appreciated.
> >> Thanks.
> >>
> >>
> >> --
> >> Albert Cervera Areny
> >> Dept. Informàtica Sedifa, S.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]>
> >>
> >
> > 
> -
> > 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]>
> 
> 
> -- 
> Albert Cervera Areny
> Dept. Informàtica Sedifa, S.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]>
> 

-
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: requesting a form text block as xml

2002-07-15 Thread Colm O'Riordan

Thanks Bert, I would love a look if thats ok ! I am using 1.8 but I'm sure the
XSP would be very similar or at least give me a good starting point.
Thanks Again !

Bert Van Kets wrote:

> yep
> I'm using Cocoon 2 and with some help from Bruno Dumon I created an XSP
> that receives the request string, does a JTidy parse and creates a DOM
> stream.  This DOM stream is automatically converted to a SAX stream by
> Cocoon 2.  This way I'm sure the processing flow won't be broken when the
> file will be requested due to an xml error.
> Need a copy?
> Bert
>
> At 20:52 14/07/2002 -0500, you wrote:
> >Thanks Bert I am looking into it. Did you request the conversion/validation
> >on the fly via XSP ?
> >
> >Bert Van Kets wrote:
> >
> > > I did this using JTidy.  In my case I validated a string containing html
> > > and converted to xhtml.
> > > JTidy also has an option to parse XML and another one to ouput to a DOM
> > > document stream.  Some samples are available on the JTidy site at
> > > http://sourceforge.net/projects/jtidy/
> > >
> > > Bert
> > >
> > > At 19:27 13/07/2002 -0500, you wrote:
> > > >Hi All,
> > > >
> > > >I want to send a block of XML from a form to a new XML page which will
> > > >render it.
> > > >
> > > >Does anyone know how can I use XSP to get the block and treat it as XML
> > > >(like xsl:copy-of) ?
> > > >It may be a simple one but I cant find any reference to it.
> > > >It is for Cocoon 1.8 (last project on this platform - moving to 2.x next
> > > >time round !).
> > > >
> > > >Many Thanks in Advance.
> > > >
> > > >Colm.
> > > >
> > > >-
> > > >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]>
> >
> >--
> >Colm O'Riordan | Director
> >Communicraft Ltd.
> >106 Pembroke Road,
> >Ballsbridge,
> >Dublin 4,
> >Ireland.
> >phone: 353 1 6607400
> >mobile: 353 86 2225078
> >web: www.communicraft.com
> >
> >* Online Radio by Communicraft: http://www.powerfm.org *
> >
> >
> >
> >-
> >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]>

--
Colm O'Riordan | Director
Communicraft Ltd.
106 Pembroke Road,
Ballsbridge,
Dublin 4,
Ireland.
phone: 353 1 6607400
mobile: 353 86 2225078
web: www.communicraft.com

* Online Radio by Communicraft: http://www.powerfm.org *



-
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 inside XSL

2002-07-15 Thread Albert Cervera Areny

I think I didn't explain it very well.
The thing is that I've got an XSL file that calls throw

Where $document is a parameter I give to the stylesheet (forget about the
thing of the HTML, it's as you said I can't modify it).How would you translate the XML 
file pointed by $document?

>> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>>
>> Hi,
>>   I've been able to use an HTML file (which I've not designed) as my
>>   stylesheet and in which I call each XML document I want to
>> process. I
>>   get this XML file as a parameter to the stylesheet.  The
>> thing is now that I'd like to be able to translate the file I'm
>>   gonna call and it is a problem because the i18n provided by
>> cocoon is a
>>   transformer and should be called within the 'sitemap.xmap'
>> I think this is not the way cocoon it's been designed to work but I'm
>>   really tight to the HTML file the web designers have made
>> me available.
>
> I don't quite understand how are you going to use an HTML file as a
> stylesheet.
>
> And would you serve your content without sitemap.xmap? From what you
> tell I understood this:
> 1) you have a stylesheet that you can't change
> 2) you get your XML file name from a request parameter
> 3) the XML file should be translated before transformation by the
> stylesheet Correct?
>
> If so, then everything can be perfectly done in the sitemap. Simply
> setup a pipeline using RequestParameterAction (or an RequestInput
> module in Cocoon 2.1) that will propogate the filename to the sitemap.
> The rest is classics: 1) generate you file
> 2) i18n
> 3) xslt
>
> And that's all.
>
> Does this solve your issue?
>
> Konstantin
>
>
>>   Any suggestion will be appreciated.
>> Thanks.
>>
>>
>> --
>> Albert Cervera Areny
>> Dept. Informàtica Sedifa, S.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]>
>>
>
> -
> 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]>


-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.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]>




Save output files

2002-07-15 Thread Thomas Balthazar

Hello the list,

I'm using simple pipeline (cocoon 2.0.2):

   



   

and i want to save the output (the html file) instead of simply viewing
it with my browser.
Can you please give me some clues.

Thanks in advance,
Thomas Balthazar
[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: Insert full date and time into Oracle databse using esql:parameter

2002-07-15 Thread yuryx

Christoph Gaffga wrote:

>Why you don't try this:
>
>insert into query_stack
>(t_stamp,username,q_body,q_type) values (
>NOW(),
>

This doesn't work (with sql exception )
It worked with 'sysdate' word instead of now() statement , but I have 
solve problem with use Data objects for any dates...
It worked with to_date('mytimestamp','DD-MM- 
hh24:mi:ss') statement also.

Thanx for the your reply.

Yury.

>uname,
>param,
>
>Integer.parseInt(sql_type)ter>
>  )
>  
>
>
>yours
>Christoph Gaffga
>[EMAIL PROTECTED]
>
>
>
>From: "yuryx" <[EMAIL PROTECTED]>
>  
>
>>Is there any way to insert full datetime value into oracle database
>>using the following syntax:
>>
>> java.util.Date today=new java.util.Date();
>>
>>...
>> insert into query_stack
>>(t_stamp,username,q_body,q_type) values (
>>> >java.sql.Date(today.getTime()),
>>uname,
>>param,
>>
>>
>>
>>
>Integer.parseInt(sql_type)ter>
>  
>
>>  )
>>
>>  
>>I always get the result value with 'zero' time :( , and I need to be
>>able to insert hh24:mi:ss values.
>>
>>
>
>
>
>-
>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 inside XSL

2002-07-15 Thread Piroumian Konstantin

> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] 
> 
> Hi,
>   I've been able to use an HTML file (which I've not designed) as my
>   stylesheet and in which I call each XML document I want to 
> process. I
>   get this XML file as a parameter to the stylesheet.  The 
> thing is now that I'd like to be able to translate the file I'm
>   gonna call and it is a problem because the i18n provided by 
> cocoon is a
>   transformer and should be called within the 'sitemap.xmap'  
> I think this is not the way cocoon it's been designed to work but I'm
>   really tight to the HTML file the web designers have made 
> me available.

I don't quite understand how are you going to use an HTML file as a
stylesheet.

And would you serve your content without sitemap.xmap? From what you tell I
understood this:
1) you have a stylesheet that you can't change
2) you get your XML file name from a request parameter
3) the XML file should be translated before transformation by the stylesheet
Correct?

If so, then everything can be perfectly done in the sitemap. Simply setup a
pipeline using RequestParameterAction (or an RequestInput module in Cocoon
2.1) that will propogate the filename to the sitemap. The rest is classics:
1) generate you file
2) i18n
3) xslt

And that's all.

Does this solve your issue?

Konstantin


>   Any suggestion will be appreciated.
> Thanks.
> 
> 
> -- 
> Albert Cervera Areny
> Dept. Informàtica Sedifa, S.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]>
> 

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




i18n inside XSL

2002-07-15 Thread Albert Cervera Areny

Hi,
  I've been able to use an HTML file (which I've not designed) as my
  stylesheet and in which I call each XML document I want to process. I
  get this XML file as a parameter to the stylesheet.  The thing is now that I'd like 
to be able to translate the file I'm
  gonna call and it is a problem because the i18n provided by cocoon is a
  transformer and should be called within the 'sitemap.xmap'  I think this is not the 
way cocoon it's been designed to work but I'm
  really tight to the HTML file the web designers have made me available.
  Any suggestion will be appreciated.
Thanks.


-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.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]>




same cocoon distribution do not work as servlet and command line

2002-07-15 Thread Sebastien SACARD

Hi,

I'm trying to run cocoon on command line and as a servlet under tomcat.
 From the different mailing lists I've been reading, it seems that the 
binary distribution of cocoon (2-0.2) can't work as a command-line 
application, whereas the source distribution can. My experience seems to 
confirm this, but maybe I'm wrong.

Can someone tell whether it's an known problem or not ? It would save 
time of many users if it was the case.


-
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: HTML tree from a Directory generator.

2002-07-15 Thread ROSSEL Olivier

> > Is there somewhere a XSL that outputs a HTML+javascript 
> tree view of a
> > directory generator output?
> 
> Why aren't you using the directory2html.xsl "merged" with the 
> simple-xml2html.xsl?
> 
> http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/samples/
> common/style/xsl/html/directory2html.xsl
> 
> http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/samples/
> hello-world/style/xsl/simple-xml2html.xsl
> 
> Joerg

What I want is to get a "Windows explorer like" view of a directory tree :-)
Not a highlighted XML :-)

-
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: Insert full date and time into Oracle databse using esql:parameter

2002-07-15 Thread Christoph Gaffga

Why you don't try this:

insert into query_stack
(t_stamp,username,q_body,q_type) values (
NOW(),
uname,
param,

Integer.parseInt(sql_type)
  )
  


yours
Christoph Gaffga
[EMAIL PROTECTED]



From: "yuryx" <[EMAIL PROTECTED]>
> Is there any way to insert full datetime value into oracle database
> using the following syntax:
> 
>  java.util.Date today=new java.util.Date();
> 
> ...
>  insert into query_stack
> (t_stamp,username,q_body,q_type) values (
>   >java.sql.Date(today.getTime()),
> uname,
> param,
>
>
Integer.parseInt(sql_type)
>   )
>
>   
> I always get the result value with 'zero' time :( , and I need to be
> able to insert hh24:mi:ss values.



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




Insert full date and time into Oracle databse using esql:parameter

2002-07-15 Thread yuryx

Hi all!

Is there any way to insert full datetime value into oracle database 
using the following syntax:


 java.util.Date today=new java.util.Date();

...
 insert into query_stack 
(t_stamp,username,q_body,q_type) values (
java.sql.Date(today.getTime()),
uname,
param,

Integer.parseInt(sql_type)
  )

  

I always get the result value with 'zero' time :( , and I need to be 
able to insert hh24:mi:ss values.

Thanx.
Yury.



-
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: requesting a form text block as xml

2002-07-15 Thread Bert Van Kets

yep
I'm using Cocoon 2 and with some help from Bruno Dumon I created an XSP 
that receives the request string, does a JTidy parse and creates a DOM 
stream.  This DOM stream is automatically converted to a SAX stream by 
Cocoon 2.  This way I'm sure the processing flow won't be broken when the 
file will be requested due to an xml error.
Need a copy?
Bert


At 20:52 14/07/2002 -0500, you wrote:
>Thanks Bert I am looking into it. Did you request the conversion/validation
>on the fly via XSP ?
>
>Bert Van Kets wrote:
>
> > I did this using JTidy.  In my case I validated a string containing html
> > and converted to xhtml.
> > JTidy also has an option to parse XML and another one to ouput to a DOM
> > document stream.  Some samples are available on the JTidy site at
> > http://sourceforge.net/projects/jtidy/
> >
> > Bert
> >
> > At 19:27 13/07/2002 -0500, you wrote:
> > >Hi All,
> > >
> > >I want to send a block of XML from a form to a new XML page which will
> > >render it.
> > >
> > >Does anyone know how can I use XSP to get the block and treat it as XML
> > >(like xsl:copy-of) ?
> > >It may be a simple one but I cant find any reference to it.
> > >It is for Cocoon 1.8 (last project on this platform - moving to 2.x next
> > >time round !).
> > >
> > >Many Thanks in Advance.
> > >
> > >Colm.
> > >
> > >-
> > >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]>
>
>--
>Colm O'Riordan | Director
>Communicraft Ltd.
>106 Pembroke Road,
>Ballsbridge,
>Dublin 4,
>Ireland.
>phone: 353 1 6607400
>mobile: 353 86 2225078
>web: www.communicraft.com
>
>* Online Radio by Communicraft: http://www.powerfm.org *
>
>
>
>-
>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]>