Re: how to generate Excel

2002-08-01 Thread Abhishek Goel

Thanks a lot...
Regards
Abhishek

"Andrew C. Oliver" wrote:

> Have you looked at the examples?
>
> Samples->Legacy Format
>
> or under
> webapp/cocoon/samples/poi/
>
> or the docs ->
>
> http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html
>
> -Andy
>
> Abhishek Goel wrote:
>
> >Hi,
> >I am having a xml file ,xslt for that xml.
> >Could any one suggest me how to define a pipeline for generating an excel sheet
> >from this xml.
> >Regards
> >Abhishek
> >
> >
> >-
> >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]>


begin:vcard 
n:Goel;Abhishek
tel;work:020-767-79811
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Abhishek Goel
end:vcard



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


Fw: Forms Failed

2002-08-01 Thread Richard



HI Guys,
 
I think I have found the error. After clickicking on save employee the 
browser now displays the
Confirm-Employee.xml. the problem is it is not 
saving any records
 
any idea???
 
thanks!
 
 
- Original Message - 
From: Richard 
To: Hiloliddin Karimov ; [EMAIL PROTECTED] 
Sent: Friday, August 02, 2002 2:34 PM
Subject: Forms Failed

Hi Guys,
 
Attached with this email is form and my 
sitemap.
The problem is I am able to load the form into the 
browser but after clicking on the Submit button
it still gives me back the form.
 
Thanks



-Please 
check that your question  has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   <[EMAIL PROTECTED]>


New-Employee.xsp
Description: Binary data


sitemap.xmap
Description: Binary data

-
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: PERFORMANCE - attributes vs. elements

2002-08-01 Thread Steven Noels

[EMAIL PROTECTED] wrote:

> I know this is a basic XML/XSLT question and is an old debate. I would like
> to know if using attributes as opposed to elements within XML will speed up
> its transformation using XSLT? I have a 3MB XML file which is transformed
> by my XSLT into HTML using Cocoon. I have a few tags in the XML file which
> could be tucked away as an attribute of its parent element. I hit upon them
> while I was trying to search every nook and corner for improving the
> performance. Right now it sucks. Please let me know if anybody has some
> tips & tricks for improving performance, kind of do's and dont's.

You really should look into the internals of the XSLT engine 
implementation you are using with Cocoon, then (being Xalan, XSLTC or 
Saxon) - but I don't offer you high hopes that switching between atts 
and elems will make much of a difference. I seriously doubt so. Maybe 
you can post your XSLT stylesheet for some peer review. There are many 
other ways to improve execution speed of XSLT.

Also, I consider your post to be slightly off-topic, there exists a 
*very* helpfull XSLT-centric mailing list at 
http://www.mulberrytech.com/xsl/xsl-list - with all the true XSLT gurus 
reading and answering such queries.

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




Forms Failed

2002-08-01 Thread Richard



Hi Guys,
 
Attached with this email is form and my 
sitemap.
The problem is I am able to load the form into the 
browser but after clicking on the Submit button
it still gives me back the form.
 
Thanks


New-Employee.xsp
Description: Binary data


sitemap.xmap
Description: Binary data

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

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


Re: How to use a jbean of an XMLFORM from a custom generator?

2002-08-01 Thread Ivelin Ivanov


Form myFormInstance = Form.lookup( "myformId", objectModel)




- Original Message - 
From: "apurva zaveri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 01, 2002 11:44 AM
Subject: How to use a jbean of an XMLFORM from a custom generator?


> Hello all,
> 
> I have been succesfuly able to run the xmlform on
> cocoon 2.1. It is great. I want to know how to make
> use of the bean's get methods to access its values
> form a custom generator that extends ServletGenerator.
> 
> I want to configure the sitemap such that both are in
> the same pipeline. like the user access the xmlform ,
> the value from the bean are used by the generator
> (generating XML) and displayed (using xslt
> transformation) in the same pipeline as an output.
> 
> I am not sure what I have to do for that. Please help.
> 
> -Apurva Zaveri.
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 


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

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




Re: Forms

2002-08-01 Thread Richard



Thanks Ivelin,
 
I got C2.1 on Tomcat 4.0.4 and jdk 
1.3
 

  - Original Message - 
  From: 
  Ivelin Ivanov 
  
  To: Richard ; [EMAIL PROTECTED] 
  
  Sent: Thursday, August 01, 2002 9:06 
  PM
  Subject: Re: Forms 
  
   
  Are you using C2.0.3 or C2.1?
   
  In the latter case, you may want to look here:
  http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
   
  
- Original Message - 
From: 
Richard 

To: [EMAIL PROTECTED] 

Sent: Thursday, August 01, 2002 12:53 
AM
Subject: Forms 


Hi Guys,
 
Good Day!
 
On http://xml.apache.org/cocoon/tutorial/tutorial-develop-webapp.html
 
It is written that...
The website 
specification is missing the tags for form building, we will provide an 
example here: 

 
Where can I find the "tags for form building" syntax and description?
 
in the codes... 

 
    
  You can 
create a department by typing in 
the  name and 
pressing the "submit" button.    
    
  Name: 
    
        
  * 
These fields are required.    

 
How does the handler="create-dept.html"> attribute work?
 
The  element is not 
required by the FormValidatorAction right? 
This element were used only by the xsl 
transformation.
 
Thanks!


xmlform-custom generator

2002-08-01 Thread apurva zaveri


sub : Using XMLFORM's jbean get methods from a custom
generator


Hello all,

May be I was not clear enough last time.

I was able to succesfuly run the xmlform on
cocoon 2.1. Refereing to the how-to-example, I
understand that by the time the user reaches the
confirm page all the values are already in the jbean.
I want to know how to call
the bean's get methods form a custom generator that
extends ServletGenerator. I want to have the custom
generator generate the results depending upon how the
form is filled in by the user.

I want to configure the sitemap such that both
(xmlform and the custom generator) are in the same
pipeline. For example, the user access the xmlform ,
the value from the bean are used by the generator
(generating XML) and displayed (using xslt
transformation) in the same pipeline as an output.

I am not sure what I have to do for that. Please help.



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

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

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




RE: webmail

2002-08-01 Thread Robert Harris

Conal,

Thanks for your post. I, for one would like to hear the dialog.

Thanks,

Bob Harris

 Con
> 
> 
> -
> 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: webmail

2002-08-01 Thread Conal Tuohy

Aaargh ... not enough coffee this morning. My previous message was supposed
to go to Justin directly. My humble apologies for posting off-topic
(would've been OK on the Cocoon-dev list) and in HTML.

Con


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




PERFORMANCE - attributes vs. elements

2002-08-01 Thread Anand_Krishnan

I know this is a basic XML/XSLT question and is an old debate. I would like
to know if using attributes as opposed to elements within XML will speed up
its transformation using XSLT? I have a 3MB XML file which is transformed
by my XSLT into HTML using Cocoon. I have a few tags in the XML file which
could be tucked away as an attribute of its parent element. I hit upon them
while I was trying to search every nook and corner for improving the
performance. Right now it sucks. Please let me know if anybody has some
tips & tricks for improving performance, kind of do's and dont's.

Thank you,
Anand



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




webmail

2002-08-01 Thread Conal Tuohy



Hi Justin
Just a note to keep you up to date on where I'm at, and maybe provoke some 
response:
I've been reading more and more, and thinking and drawing architectural 
diagrams ... it's more complicated than I first thought. I think this is an 
issue for your project too.
Currently I'm still thinking that the JavaMail access should be a Source, not 
implementing XMLizable, i.e. it would provide messages in the "message/rfc822" 
format. So that hasn't changed.
The parsing to XML should probably be done by either an XMLizer, or a 
Generator. Or possibly, another Source, layered on top of the MIME source. This 
is the issue that's exercising me at the moment. The fact is that a MIME message 
is not a simple data type: it is in fact a kind of file-system, with other files 
and directories in it (the MIME-parts).
The big thing which I'd been neglecting was how to provide access to these 
MIME-parts (i.e. a PART of a message) to the relevant components of Cocoon. For 
instance, a MIME message may contain a part which is in "text/html" format, and 
this html may refer (with an IMG tag) to an image which is in another part of 
the MIME message, with an "image/gif" mime-type for instance. To render this doc 
to a web-browser as html, or as PDF or whatever, it will be necessary for the 
Cocoon pipeline to extract this gif image from within the message, and feed it 
to the browser or Batik, as required. Concretely, the web app will have to 
generate a web page containing an IMG with href = "some" url which Cocoon can then 
use to find the gif image from inside that particular message.
Much the same applies to MIME-parts which contain message attachments of some 
arbitrary mime-type ("application/octet-stream" is a good one) which Cocoon 
can't do anything useful with, but which a browser might understand, or at least 
download as files.
I have to do this because my list archive needs to handle attachments.
It seems to me I've got 2 main options:
1) XMLize everything
Currently I'm tending towards using an XMLizer which will convert a 
"message/rfc822" byte-stream into SAX events (possibly using the XMSG schema 
rather than the XMTP schema I've used before: http://www.w3.org/TR/xmsg/ - I'm 
not sure about this yet)
This XMLizer would handle all the MIME-parts (even non-xml parts would be 
returned as "lumps" of data) and these could therefore be handled using the 
various XML-processing mechanisms: Xinclude, XSLT, etc, etc, even without 
necessarily being able to process their actual contents. So a GIF image 
MIME-part would appear as a  element in the SAX stream: 
http://www.w3.org/TR/xmsg/#N632 containing some text-encoded GIF data (i.e. 
Base64 encoded). For a binary mime-part, Cocoon processing would be limited to 
kind of "routing" it through to the browser, without transforming it on the way. 
To use this technique, we'd also need a MIMEPartSerializer which would decode 
this part into a binary stream, for return to a browser. 
Of course, MIME-parts of XML would be parsed fully, and mime-parts of HTML 
would be converted to XHTML with JTidy.
Using this approach, to refer to a MIME-part in the sitemap, you would 
generate the full message, then extract the part using a transformer for 
instance. There'd be no need to encode everything into the source url used in 
the sitemap, and this keeps the Source simple (means we can use a FileSource to 
read emails from individual files, too).
2) Handle non-XML parts in their native format
I'm not so clear on how this one would work, but I haven't yet ruled it out 
entirely ... I still need to get it clear in my head.
We'd need some component that would return a MIME-part from within a message, 
in a native format. It seems to me that it will need to implement Source (as far 
as Cocoon is concerned, this is the interface for reading a non-XML resource). 
But it must be able to get the MIME-part from either a file or url or from some 
kind of JavaMail source. So it would be a Source layered on top of some other 
source (AFAIK this would be a unique pattern in Cocoon, but not unreasonable 
given the nature of MIME-messages). 
I'm not sure if this is really a runner: the MIME-parts contain more data 
than a Source could provide. For instance, a Content-Disposition. This is one 
reason why I'm inclining towards the XMLizer approach. The trouble is that 
Cocoon is set up for doing magic with XML, but non-XML data is either converted 
to XML or else just passed through with a Reader. There's no facility for 
"pipelines" of non-XML data.


Whew! I've got another busy day today for another client and may not get 
anything done on it, but over the weekend I'll spend some more time on it and 
hopefully begin some actual programming work.
I've also been trying to define a URL scheme for referring to JavaMail 
resources. This also relates to the "cid:" and "mid:" schemes which are used for 
hyperlinks within a given MIME message, though as I said, I'd prefer to leave 
this out of th

RE: Initialization and background threads

2002-08-01 Thread Vadim Gritsenko

> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]]
> 
> Hi List,
> 
>The web app I'm developing with Cocoon needs to initialize a few
> things at startup and perform some tasks in the background like
database
> cleanup, checking for mail, automating site updates. Is there a good
way
> to integrate this with Cocoon?
> 
> For the initialization, I'm reading in an XML file to create resources
> available to my Cocoon components. I'd like to use the same parser
> configured for Cocoon. I've though about adding something like this to
> cocoon.xconf:
> 
> 
>load-class
>MyClass
> 
> 
> and using a static initializer to perform the initialization and start
> the background thread, but I don't see how I could get access to the
> Cocoon environment. I'd like to be able to access components and
> resources through Cocoon.

It's not first time this question was asked, and here is the usual
answer: follow implementation of HSQLDB built-in server in
hsqldb/Server.java and in hsqldb/ServerImpl.java. See how it is declared
in cocoon.roles and cocoon.xconf.


Vadim


> Thanks,
>Justin


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

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




Re: how to generate Excel

2002-08-01 Thread Andrew C. Oliver

Have you looked at the examples?

Samples->Legacy Format

or under
webapp/cocoon/samples/poi/

or the docs ->

http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html

-Andy

Abhishek Goel wrote:

>Hi,
>I am having a xml file ,xslt for that xml.
>Could any one suggest me how to define a pipeline for generating an excel sheet
>from this xml.
>Regards
>Abhishek
>  
>
>-
>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: Build Trouble

2002-08-01 Thread Geoff Howard

oops, forgot to provide the errors:

compile:
 [copy] Copying 28 files to C:\cocoon\cocoon-2.0.3\build\cocoon\classes
 [echo] Compiling with Java 1.3, debug on, optimize off, deprecation off
[javac] Compiling 609 source files to
C:\cocoon\cocoon-2.0.3\build\cocoon\classes
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\generator\GeneratorSelector.java:129: cannot resolve symbol
[javac] symbol  : method setLoggerManager
(org.apache.avalon.excalibur.logger.LoggerManager)
[javac] location: class
org.apache.avalon.excalibur.component.ExcaliburComponentSelector
[javac] super.setLoggerManager(logkit);
[javac]  ^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\generator\GeneratorSelector.java:186: cannot resolve symbol
[javac] symbol  : method getLogkitLogger  ()
[javac] location: class
org.apache.cocoon.components.language.generator.GeneratorSelector
[javac] handler.setLogger(getLogkitLogger());
[javac]   ^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\programming\java\JavaProgram.java:89: cannot resolve symbol
[javac] symbol  : method getComponentHandler
(java.lang.Class,org.apache.avalon.framework.configuration.DefaultConfigurat
ion,org.apache.avalon.fr
amework.component.ComponentManager,org.apache.avalon.framework.context.Conte
xt,org.apache.avalon.excalibur.component.RoleManager,org.apache.avalon.exc
alibur.component.LogkitLoggerManager)
[javac] location: class
org.apache.avalon.excalibur.component.ComponentHandler
[javac] return ComponentHandler.getComponentHandler(
[javac]^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\programming\javascript\JavascriptProgram.java:109: cannot re
solve symbol
[javac] symbol  : method getComponentHandler
(java.lang.Class,org.apache.avalon.framework.configuration.DefaultConfigurat
ion,org.apache.avalon.fr
amework.component.ComponentManager,org.apache.avalon.framework.context.Conte
xt,org.apache.avalon.excalibur.component.RoleManager,org.apache.avalon.exc
alibur.component.LogkitLoggerManager)
[javac] location: class
org.apache.avalon.excalibur.component.ComponentHandler
[javac] return ComponentHandler.getComponentHandler(
[javac]^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\xml\dom\SVGBuilder
.java:85: cannot resolve symbol
[javac] symbol  : method setCSSParserClassName  (java.lang.String)
[javac] location: class org.apache.batik.util.XMLResourceDescriptor
[javac]
XMLResourceDescriptor.setCSSParserClassName(CSS_PARSER_CLASS_NAME);
[javac]  ^
[javac] 5 errors

BUILD FAILED

C:\cocoon\cocoon-2.0.3\build.xml:954: Compile failed, messages should have
been provided.

Total time: 1 minute 59 seconds

> -Original Message-
> From: Geoff Howard 
> Sent: Thursday, August 01, 2002 4:24 PM
> To: '[EMAIL PROTECTED]'
> Subject: Build Trouble
> 
> 
> I have been using the HEAD branch from CVS, but have just 
> downloaded a copy
> of the 2.0.3 source distribution and have been unable to build.
> 
> I'm using JDK 1.3.1 on Win2k
> with the command: build -Dinclude.webapp.libs=yes
> -Dinstall.war=%TOMCAT_HOME%\webapps webapp
> where %TOMCAT_HOME% evaluates to c:\jakarta-tomcat-4.0, which 
> is my correct
> installation.
> 
> As I said, I already have a version of Cocoon 2.1-dev built 
> and running, but
> don't see why that would affect anything.  I've used build 
> clean after 
> each failed attempt.
> 
> Any ideas?  I haven't seen any complaints about this on either list.
> 
> Geoff Howard
> 
> -
> 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]>




Build Trouble

2002-08-01 Thread Geoff Howard

I have been using the HEAD branch from CVS, but have just downloaded a copy
of the 2.0.3 source distribution and have been unable to build.

I'm using JDK 1.3.1 on Win2k
with the command: build -Dinclude.webapp.libs=yes
-Dinstall.war=%TOMCAT_HOME%\webapps webapp
where %TOMCAT_HOME% evaluates to c:\jakarta-tomcat-4.0, which is my correct
installation.

As I said, I already have a version of Cocoon 2.1-dev built and running, but
don't see why that would affect anything.  I've used build clean after 
each failed attempt.

Any ideas?  I haven't seen any complaints about this on either list.

Geoff Howard

-
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: Build Trouble

2002-08-01 Thread Argyn Kuketayev

what was an error?

> -Original Message-
> From: Geoff Howard [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 4:24 PM
> To: '[EMAIL PROTECTED]'
> Subject: Build Trouble
> 
> 
> I have been using the HEAD branch from CVS, but have just 
> downloaded a copy
> of the 2.0.3 source distribution and have been unable to build.

-
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: Form validator action question

2002-08-01 Thread Barbara Post

well, it would take a lot of time (processing again...) and some parameters
were processed in a certain way...

Gotta see later ;-)
--
website: www.babsfrance.fr.st
ICQ #: 135868405
- Original Message -
From: "Hunsberger, Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 01, 2002 9:21 PM
Subject: RE: Form validator action question


> > I can't process my xsl again (not the same request parameters returned
by
> > form validator action).
>
> Umm, you can always arrange to pass the request parameters back for a 2nd
> pass; there's no reason the validator can't return the original parameters
> if there is a validation error...
>
>
> -
> 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: Form validator action question

2002-08-01 Thread Hunsberger, Peter

> I can't process my xsl again (not the same request parameters returned by
> form validator action).

Umm, you can always arrange to pass the request parameters back for a 2nd
pass; there's no reason the validator can't return the original parameters
if there is a validation error...


-
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 generate Excel

2002-08-01 Thread Abhishek Goel

Hi,
I am having a xml file ,xslt for that xml.
Could any one suggest me how to define a pipeline for generating an excel sheet
from this xml.
Regards
Abhishek


begin:vcard 
n:Goel;Abhishek
tel;work:020-767-79811
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Abhishek Goel
end:vcard



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


Initialization and background threads

2002-08-01 Thread Justin Fagnani-Bell

Hi List,

   The web app I'm developing with Cocoon needs to initialize a few 
things at startup and perform some tasks in the background like database 
cleanup, checking for mail, automating site updates. Is there a good way 
to integrate this with Cocoon?

For the initialization, I'm reading in an XML file to create resources 
available to my Cocoon components. I'd like to use the same parser 
configured for Cocoon. I've though about adding something like this to 
cocoon.xconf:


   load-class
   MyClass


and using a static initializer to perform the initialization and start 
the background thread, but I don't see how I could get access to the 
Cocoon environment. I'd like to be able to access components and 
resources through Cocoon.

Thanks,
   Justin


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




Form validator action question

2002-08-01 Thread Barbara Post

Hello, it's getting late here (work time) so I get tired... ;-)

what's the best way using form validator action in my case ?

I use xml + xsl to generate an html form with fixed and modifiable input
fields.

When I submit form validator action checks the input fields' correctness.

If I want to show the errors on the initial form, I wouldn't be able to use
redirect-to since the form is generated by a complex process (request
parameters passed to my xsl to generate it).

I can't process my xsl again (not the same request parameters returned by
form validator action).

If I show the errors on a page and propose a "back" link, the user will be
able to return to the form and correct it without loosing anything...

Any better idea ? I see how this works with xsp but this would mess up my
sitemap it seems ?...

Thanks a lot. I have to use C. 2.0.3 so cannot have XForms... :-/

Babs


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

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




Re: Servlet generating an XML--->How to write the pipeline?

2002-08-01 Thread Skip Carter


> I have a servlet which generates an xml file which in
> turn should be transformed using xslt.How do I write
> the pipeline for the same?
> 
> Say the name of the servlet is check.class(where
> should I place the class, in web-inf?), the name of
> the xml file generated by the pipeline is test.xml and
> the stylesheet used is test.xsl.How should my pipeline
> look like?

  I handle this with any entry like the following in the main pipeline in 
sitemap.xmap:


  
  
   
   
   
   http://myserver.com:8080{requestURI}{requestQ
uery}" />
   
   
   
  


  (If somebody has a good solution for POST I'd be interested in seeing it)

  My servlets are handled directly by tomcat (which is listening on port 
8080), that way I can easily control
  access to the "raw" servlet.  But you can have cocoon handle the servlet 
instead by making the proper
  entries in the cocoon WEB-INF/web.xml file, for example:

   
   
  check
  check
   

  
  
check
/check
  


Your classes can go in WEB-INF/classes





Skip



-- 
 Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
 Monterey, CA. 93940












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

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




Re: How to use Redirector...

2002-08-01 Thread Justin Fagnani-Bell

Thanks,

> The sessionMode variable is particularly poorly documented and, if true,
> simply means that the session id will be appended to the URI.
>
> Regards,
> Sterling

If I'm using cookies for session management will it just maintain the 
session if sessionMode=true, or is sessionMode only for
URL encoded sessions?

Justin

> On Thu, 2002-08-01 at 10:47, Justin Fagnani-Bell wrote:
>> Is there any documentation on how to use either the Redirector passed 
>> to
>> Action.act() or the sitemap  tag? I've used 
>> redirect-to
>> successfully but I would still like some documentation to make sure I'm
>> doing things correctly. I can't find anything in the cocoon docs and 
>> the
>> api docs don't say much.
>>
>> I'd also like to use the Redirector object in Action, and I assume it
>> works the same (or that the class implementing the tag is a 
>> Redirector),
>> but I'd like to know more. What does sessionmode do?
>>
>> Any suggestions?
>>
>> Thanks,
>>Justin


-
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: Authenticators call DB (or other) every request?

2002-08-01 Thread Vadim Gritsenko

> From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> 
> It looks to me like authenticator Actions query the database, dbxml,
or
> whatever on every

login

> request.
> 
> - Is that really necessary once the session has been established?
Probably.

Of course, you want to verify password.

PS Are you confusing authenticators with validators? See
protected/sitemap.xmap.

Vadim


> - How expensive are people finding it to be?
> 
> Per


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

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




How to use a jbean of an XMLFORM from a custom generator?

2002-08-01 Thread apurva zaveri

Hello all,

I have been succesfuly able to run the xmlform on
cocoon 2.1. It is great. I want to know how to make
use of the bean's get methods to access its values
form a custom generator that extends ServletGenerator.

I want to configure the sitemap such that both are in
the same pipeline. like the user access the xmlform ,
the value from the bean are used by the generator
(generating XML) and displayed (using xslt
transformation) in the same pipeline as an output.

I am not sure what I have to do for that. Please help.

-Apurva Zaveri.



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

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

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




Authenticators call DB (or other) every request?

2002-08-01 Thread Per Kreipke

It looks to me like authenticator Actions query the database, dbxml, or
whatever on every request.

- Is that really necessary once the session has been established? Probably.

- How expensive are people finding it to be?

Per


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

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




Re: How to use Redirector...

2002-08-01 Thread Andrew Sterling Hanenkamp

I was currious about this awhile back and dug through the souce code.
The Treebuilder version of the sitemap uses a RedirectToURINode object
to handle the  statement. It contains this line:

PipelinesNode.getRedirector(env).redirect(this.keepSession,resolvedURI);

Here, this.keepSession is the boolean set in session attribute of
 and resolvedURI is the value in the uri attribute after
having any {...} variables resolved.

The sessionMode variable is particularly poorly documented and, if true,
simply means that the session id will be appended to the URI.

Regards,
Sterling

On Thu, 2002-08-01 at 10:47, Justin Fagnani-Bell wrote:
> Is there any documentation on how to use either the Redirector passed to 
> Action.act() or the sitemap  tag? I've used redirect-to 
> successfully but I would still like some documentation to make sure I'm 
> doing things correctly. I can't find anything in the cocoon docs and the 
> api docs don't say much.
> 
> I'd also like to use the Redirector object in Action, and I assume it 
> works the same (or that the class implementing the tag is a Redirector), 
> but I'd like to know more. What does sessionmode do?
> 
> Any suggestions?
> 
> Thanks,
>Justin
> 
> 
> -
> 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]>
> 
> 
-- 
<>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><>
<>< ><>
  Andrew Sterling Hanenkamp
  http://Andrew.Sterling.Hanenkamp.com/
  [EMAIL PROTECTED] / [EMAIL PROTECTED]

  Friends, there comes a time in every man's life where he has to look
the
  potato of injustice right in the eye.   -- Michael Richards,
UHF


-
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 Redirector...

2002-08-01 Thread Justin Fagnani-Bell

Is there any documentation on how to use either the Redirector passed to 
Action.act() or the sitemap  tag? I've used redirect-to 
successfully but I would still like some documentation to make sure I'm 
doing things correctly. I can't find anything in the cocoon docs and the 
api docs don't say much.

I'd also like to use the Redirector object in Action, and I assume it 
works the same (or that the class implementing the tag is a Redirector), 
but I'd like to know more. What does sessionmode do?

Any suggestions?

Thanks,
   Justin


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

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




Re: Excel generator

2002-08-01 Thread Andrew C. Oliver

Sven Kuenzler wrote:

> About the Source vs Generator issue: I found a post by Sylvain [1]. It 
> does not separate the Source and Generator concepts completely but the 
> bottom line seems to be
> - If you have a format with some "natural" xml respresentation, it's a 
> source (Like Excel->MS's Excel-XML?) 

Its not *that* natural.  There is an amount of parsing/etc that would 
have to happen.

>
> - If you have a binary format which needs to be parsed to XML, it's a 
> generator (Like XLS -> Gnumeric?)

makes sense.

>
>
> Sven
>
> [1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102576977207135&w=2
>
>  Andrew C. Oliver schrieb:
>
>> Explain, elaborate.
>>
>> 2 Why would you want to do it at the transformation point?
>>
>> Sven Kuenzler wrote:
>>
>>> Something that just came to me thinking of the dicussion about an 
>>> ExcelGenerator: What about implementing it as (Writeable)Source 
>>> instead? That way you could use it with SourceWritingTransformer and 
>>> friends, not only as pipeline starting point.
>>>
>>>  Sven
>>>
>>>
>>>
>>>
>>> -
>>> Please check that your question  has not already been answered in the
>>> FAQ before posting. 
>>>
>>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>>
>>>
>>
>>
>>
>>
>> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting. 
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
>>
>
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>




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

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




Servlet generating an XML--->How to write the pipeline?

2002-08-01 Thread kavitha ramesh

Hi,

I have a servlet which generates an xml file which in
turn should be transformed using xslt.How do I write
the pipeline for the same?

Say the name of the servlet is check.class(where
should I place the class, in web-inf?), the name of
the xml file generated by the pipeline is test.xml and
the stylesheet used is test.xsl.How should my pipeline
look like?

If someone knows please write a reply,,,

Kavitha



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

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

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




RE: [REVISIT] RE: UTF-8 and HTML Serializer.

2002-08-01 Thread ROSSEL Olivier

> Rossel,
> 

> > can you look at the 'source' XML by serializing it with xml
> > serializer,
> > instead of html?
> > what does it show?
> 
> well i think i got my problem.
> the request generator accepts a parameter to force the 
> encoding of data
> retrieved.
> i misued it by setting the wrong charset.


3 things to know.

there is a way to force the charset for the requestGenerator
(parameter is called form-encoding or form-charset, i think).

Mozilla sends request data using the accept-charset attribute
of the 

IE sends request data using the encoding of the HTML page
where the form is.

All can be seen in wikiland 0.5

You will see that the form is in an HTML with a UTF-8 charset.
That the form has the attribute accept-charset set to UTF-8.

And I think (but not sure) has the form-encoding/charset set to UTF-8.

http://lolive.net is the homepage of wikiLand.

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




Security: integrating servlet security and Actions...

2002-08-01 Thread Per Kreipke

Is there an example where instead of using the sample authenticators
(DatabaseAuthenticatorAction, etc), Cocoon integrates with servlet security
(e.g. Principals, Roles, etc)?

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




[REVISIT] RE: UTF-8 and HTML Serializer.

2002-08-01 Thread Anand_Krishnan


Rossel,

Can you show how you did this. I think I have a similar problem, my
transformed html content gets displayed in 2-byte character and kind of is
giving me some hard time. Let me know.

Thank you,
Anand



   
 
  From:ROSSEL Olivier <[EMAIL PROTECTED]>  
 
 07/11/02 11:37 AM 
 
 Please respond to cocoon-users
 
   
 
   
 
  To:"'[EMAIL PROTECTED]'"   
 
<[EMAIL PROTECTED]>  
 
  cc:  
 
  Subject:RE: UTF-8 and HTML Serializer.   
 
   
 




> can you look at the 'source' XML by serializing it with xml
> serializer,
> instead of html?
> what does it show?

well i think i got my problem.
the request generator accepts a parameter to force the encoding of data
retrieved.
i misued it by setting the wrong charset.


-
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: own generator

2002-08-01 Thread Geoff Howard

Ah, I think the problem is that I overrode the setup() method from
AbstractGenerator, but didn't look at what it
was doing in the original - I presumed incorrectly that it did nothing.  You
should be able to get at the source by 
adding super.setup() to the first line of the new setup() call below.  Now
that I've looked more carefully, we could get rid of our own implementation
of setup and use the instance variable objectModel from the superclass to
get our parameters from within generate if we really wanted to - on the
other hand, for demonstration purposes it's better in my view to show that
it's available as a callback method from the container for performing setup
tasks.

Thank you by the way for reorganizing the output to be more xml friendly.
I've already started work turning this example into a how-to for the
documentation.  Would you mind if I incorporate your modifications for that
so I don't have to come up with another example?

Geoff

> -Original Message-
> From: Istvan Beszteri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 5:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: own generator
> 
> 
> Hi All,
> 
> Thanks for the help.
> I tried Geoff's modified version, and it works with some 
> small corrections.
> Here is the code (Maybe some of the imports are not used at all):
> 
> import java.io.IOException;
> import java.io.StringReader;
> import org.xml.sax.XMLReader;
> import org.xml.sax.InputSource;
> import org.xml.sax.SAXException;
> import org.xml.sax.helpers.XMLReaderFactory;
> import org.apache.cocoon.ProcessingException;
> import org.apache.cocoon.generation.AbstractGenerator;
> import java.lang.String;
> 
> // for the setup() method
> import org.apache.cocoon.environment.SourceResolver;
> import java.util.Map;
> import org.apache.avalon.framework.parameters.Parameters;
> 
> // used to get and hold the request parameters.
> import org.apache.cocoon.environment.ObjectModelHelper;
> import org.apache.cocoon.environment.Request;
> import java.util.Enumeration;
> 
> // SAX helper
> import org.xml.sax.helpers.AttributesImpl;
> 
> 
> public class NewAnyName extends AbstractGenerator 
> {
> 
> // will be initialized in the setup() method and used in 
> generate()
> Request request = null;
> Enumeration paramNames = null;
> String uri = null;
> 
> /**
>  * Implement the generate() method from AbstractGenerator.
>  * It simply generates SAX events using SAX methods.
>  */
> 
> public void generate() throws IOException, SAXException, 
> ProcessingException
> {
>   // xspAttr will stay empty for this simple implementation
>   // If we had any attributes in our tags, we would add 
> them to this variable
>   // before the call to startElement(), and either create 
> a new AttributesImpl
>   // instance for each element, or reuse one being 
> careful to reset it before 
>   // each use.
>   AttributesImpl xspAttr = new AttributesImpl();
> 
>   // contentHandler is inherited from 
> org.apache.cocoon.xml.AbstractXMLProducer
>   contentHandler.startDocument();
>   
>   // Do it with SAX:
>   contentHandler.startElement("", "doc", "doc", xspAttr);
> 
>   contentHandler.startElement("", "uri", "uri", xspAttr);
> 
>   contentHandler.characters(uri.toCharArray(),0,uri.length());
> 
>   contentHandler.endElement("", "uri", "uri");
>   
>   contentHandler.startElement("", "params", "params", xspAttr);
>  
>   while (paramNames.hasMoreElements())
>   {
>   contentHandler.startElement("", "param", "param", xspAttr);
>   
> String param = (String)paramNames.nextElement();
> 
> contentHandler.characters(param.toCharArray(),0,param.length());
> 
>   contentHandler.endElement("","param", "param");
>   }
> 
>   contentHandler.endElement("","params", "params");
> 
>   contentHandler.startElement("", "source", "source", xspAttr);
> 
>   if(source != null)
>   contentHandler.characters(source.toCharArray(),0,
>   source.length());
> 
>   contentHandler.endElement("", "source", "source");
> 
>   contentHandler.endElement("","doc", "doc");
> 
>   contentHandler.endDocument();
>}
>
>public void setup(SourceResolver resolver, Map 
> objectModel, String src,
>Parameters par)
>{
>request = ObjectModelHelper.getRequest(objectModel);
>paramNames = request.getParameterNames();
>uri = request.getRequestURI();
>}
> }
> 
> The pipeline is the following:
> 
> 
> 
>   
> 
> 
>   
>   
> 
> 
> 
>   
>   
> 
>   
> 
> 
> A test reqest:
> http://localhost:8080/cocoon/foo/trial.xml?apple=3
> 
> result:
> 
> 
> /cocoon/foo/trial.xmlapple am>
> 
> As you can see, the source filed is still null.
> Anyway, my problem is solved. I can get the request in the 
> generato

RE: LinkSerializer not seeing links (href, src)

2002-08-01 Thread Vadim Gritsenko

> From: Torsten Knodt [mailto:[EMAIL PROTECTED]]
> 
> Hello Vadim,
> > > I have a second problem with LinkSerializer. Sometimes I can only
> > > see href's (no src),
> > Give an example (reproducible).
> > > sometimes I can't see any links.
> > Same here.
> I wasn't able to reproduce the version, where only href's where
recognised,
> but here's a version, which doesn't produce any links.
> It's stripped down as much as possible. When it would work, you should
see a
> broken link to test2.html.
> The error xsl isn't included, it's the sample.

Thanks for the example.

Let me clarify how link serializer works. It react only on elements
which has "href" or "src" or "background" attributes in the *same*
namespace as element.

>From your HTML (skipping unessential stuff):

http://www.w3.org/1999/xhtml";>



You are defining element img in XHTML namespace. I will write this as:

  'http://www.w3.org/1999/xhtml':img

Then, you are adding *non-namespaced* attribute src (default namespace
does not affect attributes, see
http://www.w3.org/TR/1999/REC-xml-names-19990114/#defaulting):

  '':src

The result is that src and img are in *different* namespaces. To make
LinkSerializer work, they must be in the same namespace. This can be
achieved by two ways:

1. Add namespace to the attribute:

http://www.w3.org/1999/xhtml";
xmlns:ns="http://www.w3.org/1999/xhtml";>



2. Remove namespace from the element:






Regards,
Vadim


> With kind regards
>   Torsten Knodt


-
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: Forms

2002-08-01 Thread Ivelin Ivanov



 
Are you using C2.0.3 or C2.1?
 
In the latter case, you may want to look here:
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
 

  - Original Message - 
  From: 
  Richard 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, August 01, 2002 12:53 
  AM
  Subject: Forms 
  
  
  Hi Guys,
   
  Good Day!
   
  On http://xml.apache.org/cocoon/tutorial/tutorial-develop-webapp.html
   
  It is written that...
  The website 
  specification is missing the tags for form building, we will provide an 
  example here: 
   
  Where can I find the "tags for form building" syntax and description?
   
  in the codes... 
   
      
    You can 
  create a department by typing in 
  the  name and 
  pressing the "submit" button.    
      
    Name: 
      
          
    * These 
  fields are required.    
  
   
  How does the handler="create-dept.html"> attribute work?
   
  The  element is not required by 
  the FormValidatorAction right? 
  This element were used only by the xsl 
  transformation.
   
  Thanks!


RE:

2002-08-01 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED]
> 
> Hello,
> 
>if I call a resource with ,
>is this then generating a new request?
> 

No. It is processed internally.

Vadim


>   Thanx for any help,
> 
> 
>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: Resource Reader, broken pipe, large files

2002-08-01 Thread Vadim Gritsenko

> From: Volker Renneberg [mailto:[EMAIL PROTECTED]]
> 
> Hi!
> 
> I've a problem with cocoon 2.0.3 (cataline 4.0.1). The resource reader
(or
> catalina?!) seems not to be able to cope with large files. In my
current case
> it stops downloading after 2105344 Bytes. I had this problem earlier
but
> there around 16 MB.
> 
> The log mentions a broken pipe-problem(long but complete, see below).
Is there
> any solution to this problem or does anybody now why this happens?

Stack trace points to XSLT transformation, but your question is about
reader. I think that this stacktrace is not correlated to the issue you
are experiencing.

PS No, I've not seen issues with large files (did not have large files
in my app). BTW, it is known that plain web server will give better
performance on static and/or large files.


Vadim


> ciao
> Volker
> 
> -> Log
> FATAL_E (2002-08-01) 10:35.37:728   [core.xslt-processor]
>
(/cocoon/pfiles/Shared/madonna/Madonna_-_What_It_Feels_Like_For_A_Girl.m
p3)
> HttpProcessor[8080][1]/TraxErrorHandler: Error in TraxTransformer:
> javax.xml.transform.TransformerException: java.io.IOException: Broken
pipe
> javax.xml.transform.TransformerException: java.io.IOException: Broken
pipe
> at
>
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:72
> 5)
> at
>
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApply
> Templates.java:422)
> at
>
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:
> 226)
> at
>
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
former
> Impl.java:2243)
> at
>
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerIm
> pl.java:2069)
> at
>
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.jav
> a:1171)
> at
>
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
96)
> at java.lang.Thread.run(Thread.java:484)
> -
> java.io.IOException: Broken pipe
> at
>
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:
> 199)
> at
>
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
387)
> at
>
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.
java:7
> 31)
> at
>
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Transfor
merIde
> ntityImpl.java:1047)
> at
>
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14
7)
> at
>
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttrib
utes.e
> ndElement(AbstractTextSerializer.java:488)
> at
>
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14
7)
> at
>
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand
ler.ja
> va:307)
> at
>
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:71
> 6)
> at
>
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApply
> Templates.java:422)
> at
>
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:
> 226)
> at
>
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
former
> Impl.java:2243)
> at
>
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerIm
> pl.java:2069)
> at
>
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.jav
> a:1171)
> at
>
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
96)
> at java.lang.Thread.run(Thread.java:484)
> -
> java.io.IOException: Broken pipe
> at java.net.SocketOutputStream.socketWrite(Native Method)
> at
java.net.SocketOutputStream.write(SocketOutputStream.java:83)
> at
>
org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java
:679)
> at
>
org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseB
ase.ja
> va:741)
> at
>
org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:652)
> at
>
org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:657)
> at
>
org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:3
12)
> at
>
org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponse
Stream
> .java:175)
> at
> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
> at
java.io.BufferedOutputStream.write(BufferedOutputStream.java:85)
> at
> org.apache.xalan.serialize.WriterToUTF8.write(WriterToUTF8.java:138)
> at
>
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:
> 195)
> at
>
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
387)
> at
>
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHT

cocoon-users@xml.apache.org

2002-08-01 Thread michael_hampel

Hello,

   if I call a resource with ,
   is this then generating a new request?


  Thanx for any help,


   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: xpath queries not working in xmldb

2002-08-01 Thread Vadim Gritsenko

> From: John Moylan [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> Are there issues I should be aware of when using the xmldb using
xindice
> from the command line to return documents using:
> xindice xpath_query -c /db/extractsdb -q
>
"//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']"
> the result I get is all files published on the 20020710
> 
> But, when I use the following in cocoon:
>
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property
[@Form
> alName='PublicationDate'][@Value='20020710']
> the result I get is for all files in the collection.

1. Try escaping your query properly. IIRC, '=' sign in parameter value
has to be escaped.

2. See log files, should have 'Querying resource...' or 'Obtaining
resource...' line.

Vadim


> Does Cocoon's XMLDB transformer have problems with attributes, or with
> timeouts on xpath queries in Xindice( I have created an index, but I
am
> querying 4000 xml files each of which is between 80k-500k.)
> 
> John


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




Uploaded file name problem

2002-08-01 Thread Lorenzo De Sio

Hi,

I've got a curious problem w/ the file upload functionality.

I wrote this upload form:







As I post it to any Cocoon URL (actually itself) it uploads everything OK.
The problem is that all files get named (on the Linux server box) with the
full path of the original file on the client.

This is the curious directory listing on my Linux box:

> [ldesio@xavier _upload]# ls -al
> total 60
> drwxrwxr-x2 root w4b  4096 Aug  1 13:28 .
> drwxrwxr-x9 root w4b  4096 Jul 31 16:51 ..
> -rw-r--r--1 root root  100 Aug  1 13:22
0_W:\accademia\img\frame_r2_c1.gif
> -rw-r--r--1 root root30733 Aug  1 13:28
C:\Documenti\ZIP2EXE.EXE
> -rw-r--r--1 root root 7142 Aug  1 13:06
W:\accademia\img\cover.gif
> -rw-r--r--1 root root  100 Aug  1 13:22
W:\accademia\img\frame_r2_c1.gif
> -rw-r--r--1 root root  200 Aug  1 13:26
W:\accademia\img\frame_r4_c1.gif

BTW, I'm using Win2000/IE5.5

Any hints?

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

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




How to Lock and specify the Width of Cells using POI..

2002-08-01 Thread Kommineni, Sateesh (IndSys)

Hi,

I am using POI's HSSF implementation for generating Excel Sheets from my
Java Program.
How can we lock the Cells in a sheet and how to specify the Width of the
Cell..
Pls let me know how to achieve the above details...

Thanks a lot...

-Sateesh


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."


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

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




Re: Excel generator

2002-08-01 Thread Sven Kuenzler

About the Source vs Generator issue: I found a post by Sylvain [1]. It 
does not separate the Source and Generator concepts completely but the 
bottom line seems to be
- If you have a format with some "natural" xml respresentation, it's a 
source (Like Excel->MS's Excel-XML?)
- If you have a binary format which needs to be parsed to XML, it's a 
generator (Like XLS -> Gnumeric?)


Sven

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102576977207135&w=2

  Andrew C. Oliver schrieb:
> Explain, elaborate.
> 
> 2 Why would you want to do it at the transformation point?
> 
> Sven Kuenzler wrote:
> 
>> Something that just came to me thinking of the dicussion about an 
>> ExcelGenerator: What about implementing it as (Writeable)Source 
>> instead? That way you could use it with SourceWritingTransformer and 
>> friends, not only as pipeline starting point.
>>
>>  Sven
>>
>>
>>
>>
>> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting. 
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
>>
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 





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

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




about xsl and java extension (xalan) - a tiny bit offtopic

2002-08-01 Thread Barbara Post

Hello, I need something special in my xsl :

as I match every "foo" I need to take an attribute and update a string
(appended by void methods).

then when this is achieved, in another template I reuse this string as
output.

I have a look at http://xml.apache.org/xalan-j/extensions.html (more
complicated when using void methods) but is there something "simpler" in
cocoon that I would have missed ? ok I could use xsp but this doesn't please
me so much.

did anyone encounter the same architecture problem ?

Since I am updating an application that used DOM and servlets to a
cocoon(2.0.3)-based model there are some things I cannot change (xml data
structure).

Thanks.

Barbara


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




Resource Reader, broken pipe, large files

2002-08-01 Thread Volker Renneberg

Hi!

I've a problem with cocoon 2.0.3 (cataline 4.0.1). The resource reader (or 
catalina?!) seems not to be able to cope with large files. In my current case 
it stops downloading after 2105344 Bytes. I had this problem earlier but 
there around 16 MB.

The log mentions a broken pipe-problem(long but complete, see below). Is there 
any solution to this problem or does anybody now why this happens?

ciao
Volker

-> Log
FATAL_E (2002-08-01) 10:35.37:728   [core.xslt-processor] 
(/cocoon/pfiles/Shared/madonna/Madonna_-_What_It_Feels_Like_For_A_Girl.mp3) 
HttpProcessor[8080][1]/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: java.io.IOException: Broken pipe
javax.xml.transform.TransformerException: java.io.IOException: Broken pipe
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at java.lang.Thread.run(Thread.java:484)
-
java.io.IOException: Broken pipe
at 
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML.java:199)
at 
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2387)
at 
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.java:731)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1047)
at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttributes.endElement(AbstractTextSerializer.java:488)
at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at java.lang.Thread.run(Thread.java:484)
-
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at 
org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:679)
at 
org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:741)
at 
org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:652)
at 
org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:657)
at 
org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312)
at 
org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:175)
at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:85)
at 
org.apache.xalan.serialize.WriterToUTF8.write(WriterToUTF8.java:138)
at 
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML.java:195)
at 
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2387)
at 
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.java:731)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1047)
at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttributes.endElement(AbstractTextSerializer.java:488)
at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716)
at 
org.apac

Re: own generator

2002-08-01 Thread Istvan Beszteri

Hi All,

Thanks for the help.
I tried Geoff's modified version, and it works with some small corrections.
Here is the code (Maybe some of the imports are not used at all):

import java.io.IOException;
import java.io.StringReader;
import org.xml.sax.XMLReader;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.XMLReaderFactory;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.generation.AbstractGenerator;
import java.lang.String;

// for the setup() method
import org.apache.cocoon.environment.SourceResolver;
import java.util.Map;
import org.apache.avalon.framework.parameters.Parameters;

// used to get and hold the request parameters.
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Request;
import java.util.Enumeration;

// SAX helper
import org.xml.sax.helpers.AttributesImpl;


public class NewAnyName extends AbstractGenerator 
{

// will be initialized in the setup() method and used in generate()
Request request = null;
Enumeration paramNames = null;
String uri = null;

/**
 * Implement the generate() method from AbstractGenerator.
 * It simply generates SAX events using SAX methods.
 */

public void generate() throws IOException, SAXException, 
ProcessingException
{
// xspAttr will stay empty for this simple implementation
// If we had any attributes in our tags, we would add them to this variable
// before the call to startElement(), and either create a new AttributesImpl
// instance for each element, or reuse one being careful to reset it before 
// each use.
AttributesImpl xspAttr = new AttributesImpl();

  // contentHandler is inherited from 
org.apache.cocoon.xml.AbstractXMLProducer
  contentHandler.startDocument();
  
  // Do it with SAX:
  contentHandler.startElement("", "doc", "doc", xspAttr);

  contentHandler.startElement("", "uri", "uri", xspAttr);

  contentHandler.characters(uri.toCharArray(),0,uri.length());

  contentHandler.endElement("", "uri", "uri");
  
  contentHandler.startElement("", "params", "params", xspAttr);
 
  while (paramNames.hasMoreElements())
  {
  contentHandler.startElement("", "param", "param", xspAttr);
  
  String param = (String)paramNames.nextElement();
  contentHandler.characters(param.toCharArray(),0,param.length());

  contentHandler.endElement("","param", "param");
  }

  contentHandler.endElement("","params", "params");

  contentHandler.startElement("", "source", "source", xspAttr);

  if(source != null)
  contentHandler.characters(source.toCharArray(),0,
source.length());

  contentHandler.endElement("", "source", "source");

  contentHandler.endElement("","doc", "doc");

  contentHandler.endDocument();
   }
   
   public void setup(SourceResolver resolver, Map objectModel, String src,
 Parameters par)
   {
   request = ObjectModelHelper.getRequest(objectModel);
   paramNames = request.getParameterNames();
   uri = request.getRequestURI();
   }
}

The pipeline is the following:



  


  
  



  
  

  


A test reqest:
http://localhost:8080/cocoon/foo/trial.xml?apple=3

result:


/cocoon/foo/trial.xmlapple

As you can see, the source filed is still null.
Anyway, my problem is solved. I can get the request in the generator. I'm 
just curious what is the solution for this "source" thing.

Br,
Istvan

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




xpath queries not working in xmldb

2002-08-01 Thread John Moylan

Hi,

Are there issues I should be aware of when using the xmldb using xindice
from the command line to return documents using:
xindice xpath_query -c /db/extractsdb -q
"//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']"
the result I get is all files published on the 20020710

But, when I use the following in cocoon:
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is for all files in the collection.

Does Cocoon's XMLDB transformer have problems with attributes, or with 
timeouts on xpath queries in Xindice( I have created an index, but I am 
querying 4000 xml files each of which is between 80k-500k.)

John



**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

-
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: TR: HSSFSerializer / Null Pointer exception

2002-08-01 Thread Sven Kuenzler

You have to initialize the logging. See

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

for an example how to use the serializer w/o Cocoon.
Or even better, checkout the new Morphos project in Jakarta commons sandbox.

Sven

PLISSON Sébastien (DSIT-XS/I) schrieb:
> 
>> -Message d'origine-
>>De :  PLISSON Sébastien (DSIT-XS/I)  
>>Envoyé :  jeudi 1 août 2002 08:11
>>À :   [EMAIL PROTECTED]
>>Objet :   HSSFSerializer / Null Pointer exception
>>
>>
>>Hi,
>>
>>When i try to use the HSSFSerializer from java, using an XMLReader,
>>i get a NullPointer Exception when i use the parse function.
>>
>>I use POI, Xerces and xalan from cocoon 2.0.3 distribution.
>>All is deployed on Websphere 3.5.6.
>>
>>Any idea how to solve this problem ?
>>
>>Thanks.
>>Seb
>>
>>Here is my code :
>>
>>/ Output XML to XLS
>>  //
>>  // Instantiate a TransformerFactory.
>>  javax.xml.transform.TransformerFactory tFactory = 
>>  
>>javax.xml.transform.TransformerFactory.newInstance();
>>  // Verify that the TransformerFactory implementation you are
>>using
>>  // supports SAX input and output (Xalan-Java does!).
>>  if
>>(tFactory.getFeature(javax.xml.transform.sax.SAXSource.FEATURE) &&
>>  
>>tFactory.getFeature(javax.xml.transform.sax.SAXResult.FEATURE))
>>  {
>>//System.out.println("sauveXMLToXLS - Debut
>>transformation");
>>// Cast the TransformerFactory to SAXTransformerFactory.
>>javax.xml.transform.sax.SAXTransformerFactory saxTFactory
>>=
>>  
>>((javax.xml.transform.sax.SAXTransformerFactory) tFactory);
>>// Create a Templates ContentHandler to handle parsing of
>>the
>>// stylesheet.
>>javax.xml.transform.sax.TemplatesHandler templatesHandler
>>=
>>  
>>saxTFactory.newTemplatesHandler();
>>  
>>// Create an XMLReader and set its ContentHandler.
>>org.xml.sax.XMLReader reader =
>>  
>>org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
>>reader.setContentHandler(templatesHandler);
>>  
>>// Parse the stylesheet.
>>reader.parse(xslFilename);
>>  
>>// Get the Templates object (generated during the parsing
>>of the stylesheet)
>>// from the TemplatesHandler.
>>javax.xml.transform.Templates templates =
>>  
>>templatesHandler.getTemplates();
>>// Create a Transformer ContentHandler to handle parsing
>>of
>>// the XML Source.
>>javax.xml.transform.sax.TransformerHandler
>>transformerHandler
>>   =
>>saxTFactory.newTransformerHandler(templates);
>>// Reset the XMLReader's ContentHandler to the
>>TransformerHandler.
>>reader.setContentHandler(transformerHandler);
>>  
>>// Set the ContentHandler to also function as a
>>LexicalHandler, which
>>// can process "lexical" events (such as comments and
>>CDATA).
>>  
>>reader.setProperty("http://xml.org/sax/properties/lexical-handler";,
>>  
>>transformerHandler);
>>  
>>// Set up a Serializer to serialize the Result to a file.
>>HSSFSerializer ser = new HSSFSerializer();
>>ser.setOutputStream(xlsFile);
>>
>>//org.apache.cocoon.serialization.XMLSerializer ser = new
>>org.apache.cocoon.serialization.XMLSerializer();
>>//ser.setOutputStream(System.out);
>>  
>>// The Serializer functions as a SAX ContentHandler.
>>javax.xml.transform.Result result =
>>  new
>>javax.xml.transform.sax.SAXResult((org.xml.sax.ContentHandler)ser);
>>transformerHandler.setResult(result);
>>  
>>// Parse the XML input document.
>>reader.parse(xmlFilename); // Here i get NullPointer
>>Exception
>>
>>
>>Sébastien PLISSON
>>DSIT XS / Infocentre
>>Tél. : 30.13.90
>>
> 
> 
> -
> 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]>




R: [docs] Installation on resin 2.1.1 (was R: resin 2.1.x problems)

2002-08-01 Thread Lorenzo De Sio

Great!

-Messaggio originale-
Da: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 1 agosto 2002 4.28
A: [EMAIL PROTECTED]
Oggetto: RE: [docs] Installation on resin 2.1.1 (was R: resin 2.1.x
problems)


> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]

...
> > Since it's by far much easier and cleaner than the procedure for
> > previous
> > versions, I suggest it be added to the documentation.
> >
> > How can we achieve this?

Please check it out:

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/in
stalling/index.xml?rev=1.31&content-type=text/vnd.viewcvs-markup
"Installing on Resin 2.x"


Hope it helps

Vadim


> > L.
> >
> > -Messaggio originale-
> > Da: Robert S. Koberg [mailto:[EMAIL PROTECTED]]
> > Inviato: lunedì 29 luglio 2002 12.12
> > A: [EMAIL PROTECTED]
> > Oggetto: Re: resin 2.1.x problems
> >
> >
> > Hi,
> >
> > Lorenzo De Sio wrote:
> > > I just tried the following procedure (found on this list) to solve
> > > my problem w/Resin 2.1.1.
> > >
> > > It worked. What about adding it to the installation docs?
> > >
> > > L.
> >
> >
> > Another thing you can do in the RESIN_HOME/conf/resin.conf is:
> >
> >
> >true
> >
> > when set to true it goes to your WEB-INF/lib
> >
> > best,
> > -Rob
...


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