How can i define my pipeline to open .doc , .pdf

2002-12-16 Thread Sreenivasan N.
Hi all

I have got some word documents, pdf documents, excel documents which are 
there in doc, pdf, xls folders i would like to define a pipeline which can 
open the document in cocoon. Does  slove the problem? What mime 
type i should define for it example "application/msword "

Thanks in advance
Regards
Sreenivasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [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: Retrieve value problem

2002-12-16 Thread Ugo Cei
Hong Gia Dinh wrote:

OK sorry i found out!!! ;( the both {name_value} and  . . .
i can display it now!!! just because  it does not show in the first 
location of the input field so i cant see it??!!! but it displays at 
the far end of the input field!
 
how to fix it???

You have whitespace at the beginning and/or at the end of your value. Try:



	Ugo

P.S.: in the future, please post text-only messages to the list (no 
HTML, thanks) and ask your XSLT questions in an appropriate place, like 
the Mulberry XSL forum that was suggested by Joerg.


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

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



RE: Retrieve value problem

2002-12-16 Thread Hong Gia Dinh
Title: RE: Retrieve value problem



OK !! 
now i found the solution!!!
i put 
value={normalize-space(name_value)} and then it's ok !! but anyway i am 
wondering why appearing space in front of the name_value 
so

  -Original Message-From: Hong Gia Dinh 
  Sent: 17 December 2002 11:26To: 
  '[EMAIL PROTECTED]'Subject: RE: Retrieve value 
  problem
  a 
  bit mention!! i also set for the  but the 
  value also jump to far end middle of the input field!!! why??? 
  
  
-Original Message-From: Hong Gia Dinh 
Sent: 17 December 2002 11:05To: 
'[EMAIL PROTECTED]'Subject: RE: Retrieve value 
problem
OK 
sorry i found out!!! ;( the both {name_value} and  . . . 
i 
can display it now!!! just because  it does not show in the first 
location of the input field so i cant see it??!!! but it displays at the 
far end of the input field!
 
how to fix it???

  -Original Message-From: Hong Gia Dinh 
  Sent: 17 December 2002 10:52To: 
  [EMAIL PROTECTED]Subject: RE: Retrieve value 
  problem
  i tried with the way u show me but it doesn't display the 
  Jonh Smith in the input field!!??!! my snippet is 
  : 
   
       
      
        {nothing display!!!) 
         {here - display John 
  Smith!!! - just the line below the input tag 
  what happens??? 
  -Original Message- From: 
  Joerg Heinicke [mailto:[EMAIL PROTECTED]] 
  Sent: 17 December 2002 09:55 To: 
  [EMAIL PROTECTED] Subject: Re: Retrieve 
  value problem 
  Hello Gia Dinh, 
  it's an XSL problem, so maybe the Mulberry XSL list is a 
  more appropriate forum for such questions: 
  http://www.mulberrytech.com/xsl/xsl-list/. 
  I can only guess what your problem is, because you show to 
  less code. value="{name_value}" is ok in general. 
  If select="name_value"/> works 
  on another place, it shell be a matching problem. 
  I guess you don't use both code snippets in the same template 
  or for-each loop. To use 
   in attributes you can write 
  it in the following way: 
            

  But this is only a long form of the Attribtue Value 
  Template you already use. And if the one does not 
  work, the other one shell also not work. 
  For more help, you need to show more of your code. 
  
  Regards, 
  Joerg 
  Hong Gia Dinh wrote: > Hi 
  all > > I got the 
  problem like this: > > i have a xsp file having the element : John 
  Smith > and a xsl file 
  having a form with the input something like this? > >  
  > 
   > > now i want to put the value of 
  the element  into the value > 
  of the input!! > how??? > > i tried 
  value="{name_value}" > but it doesn't display 
  anything in the form! > > i use  in the outside 
  of the input i > can print out Jonh 
  Smith > > but i cant 
  put the tag  into the 
  > value="<.>" due to '<' and '>' 
  problem! so do you know how to deal with > 
  this?? > > Thanks 
  very mmuch in your help > GD 
  - 
  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: Retrieve value problem

2002-12-16 Thread Hong Gia Dinh
Title: RE: Retrieve value problem



a bit 
mention!! i also set for the  but the value also 
jump to far end middle of the input field!!! why??? 

  -Original Message-From: Hong Gia Dinh 
  Sent: 17 December 2002 11:05To: 
  '[EMAIL PROTECTED]'Subject: RE: Retrieve value 
  problem
  OK 
  sorry i found out!!! ;( the both {name_value} and  . . . 
  i 
  can display it now!!! just because  it does not show in the first location 
  of the input field so i cant see it??!!! but it displays at the far end of 
  the input field!
   
  how 
  to fix it???
  
-Original Message-From: Hong Gia Dinh 
Sent: 17 December 2002 10:52To: 
[EMAIL PROTECTED]Subject: RE: Retrieve value 
problem
i tried with the way u show me but it doesn't display the 
Jonh Smith in the input field!!??!! my snippet is 
: 
 
     
    
      {nothing display!!!) 
      
 {here - display John 
Smith!!! - just the line below the input tag 
what happens??? 
-Original Message- From: 
Joerg Heinicke [mailto:[EMAIL PROTECTED]] 
Sent: 17 December 2002 09:55 To: 
[EMAIL PROTECTED] Subject: Re: Retrieve 
value problem 
Hello Gia Dinh, 
it's an XSL problem, so maybe the Mulberry XSL list is a 
more appropriate forum for such questions: 
http://www.mulberrytech.com/xsl/xsl-list/. 
I can only guess what your problem is, because you show to 
less code. value="{name_value}" is ok in general. If 
select="name_value"/> works on 
another place, it shell be a matching problem. I 
guess you don't use both code snippets in the same template or for-each loop. To use  in attributes you can write it in the following way: 
          
  
But this is only a long form of the Attribtue Value Template 
you already use. And if the one does not work, the 
other one shell also not work. 
For more help, you need to show more of your code. 

Regards, 
Joerg 
Hong Gia Dinh wrote: > Hi 
all > > I got the 
problem like this: > > 
i have a xsp file having the element : John 
Smith > and a xsl file having 
a form with the input something like this? > 
>  >  > 
> now i want to put the value of the element 
 into the value > of the 
input!! > how??? > 
> i tried value="{name_value}" > but it doesn't display anything in the form! > > i use  in the outside of the input i > can print out Jonh Smith > 
> but i cant put the tag  into the > 
value="<.>" due to '<' and '>' problem! so do you know how to 
deal with > this?? > 
> Thanks very mmuch in your help > GD 
- 
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: Why cocoon sucks

2002-12-16 Thread Brian Johnson
With a well-designed set of transformation, you won't have to update 
every one of your stylesheets for a single attribute change. For 
instance, I use the xsl:copy tag to simply copy as-is any element that 
I'm not interested in doing something with in a particular stylesheet.

On Thursday, December 12, 2002, at 06:39  AM, Kasper Nielsen wrote:

Okay this is a question not a statement!



For a short synopsis at school I'm looking for points to areas where 
cocoon
and stacking an endlessly number of XSL transformers on top of each 
other
falls short. You know stuff like how difficult it is adding a new 
attribute
to an XML element, and make sure it's copied along in all your 200
stylesheets, compared to how easy it is in languages like java.



- Kasper



-
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: Retrieve value problem

2002-12-16 Thread Hong Gia Dinh
Title: RE: Retrieve value problem



OK 
sorry i found out!!! ;( the both {name_value} and  . . . 
i can 
display it now!!! just because  it does not show in the first location of 
the input field so i cant see it??!!! but it displays at the far end of the 
input field!
 
how to 
fix it???

  -Original Message-From: Hong Gia Dinh 
  Sent: 17 December 2002 10:52To: 
  [EMAIL PROTECTED]Subject: RE: Retrieve value 
  problem
  i tried with the way u show me but it doesn't display the Jonh 
  Smith in the input field!!??!! my snippet is : 
  
   
           
        {nothing display!!!) 
        
   {here - display John Smith!!! 
  - just the line below the input tag 
  what happens??? 
  -Original Message- From: Joerg 
  Heinicke [mailto:[EMAIL PROTECTED]] 
  Sent: 17 December 2002 09:55 To: 
  [EMAIL PROTECTED] Subject: Re: Retrieve 
  value problem 
  Hello Gia Dinh, 
  it's an XSL problem, so maybe the Mulberry XSL list is a more 
  appropriate forum for such questions: http://www.mulberrytech.com/xsl/xsl-list/. 
  I can only guess what your problem is, because you show to 
  less code. value="{name_value}" is ok in general. If 
  select="name_value"/> works on 
  another place, it shell be a matching problem. I guess 
  you don't use both code snippets in the same template or for-each loop. To use  in attributes you can write it in the following way: 
      
        

  But this is only a long form of the Attribtue Value Template 
  you already use. And if the one does not work, the 
  other one shell also not work. 
  For more help, you need to show more of your code. 
  Regards, 
  Joerg 
  Hong Gia Dinh wrote: > Hi 
  all > > I got the 
  problem like this: > > i 
  have a xsp file having the element : John 
  Smith > and a xsl file having a 
  form with the input something like this? > 
  >  >  > 
  > now i want to put the value of the element 
   into the value > of the 
  input!! > how??? > 
  > i tried value="{name_value}" > but it doesn't display anything in the form! > > i use  in the outside of the input i > can print out Jonh Smith > 
  > but i cant put the tag  into the > 
  value="<.>" due to '<' and '>' problem! so do you know how to deal 
  with > this?? > 
  > Thanks very mmuch in your help > GD 
  - 
  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: Retrieve value problem

2002-12-16 Thread Hong Gia Dinh
Title: RE: Retrieve value problem





i tried with the way u show me but it doesn't display the Jonh Smith in the input field!!??!!
my snippet is :



    
          {nothing display!!!)
    

 {here - display John Smith!!! - just the line below the input tag


what happens???




-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Sent: 17 December 2002 09:55
To: [EMAIL PROTECTED]
Subject: Re: Retrieve value problem



Hello Gia Dinh,


it's an XSL problem, so maybe the Mulberry XSL list is a more 
appropriate forum for such questions: 
http://www.mulberrytech.com/xsl/xsl-list/.


I can only guess what your problem is, because you show to less code. 
value="{name_value}" is ok in general. If 
select="name_value"/> works on another place, it shell be a matching 
problem. I guess you don't use both code snippets in the same template 
or for-each loop.
To use  in attributes you can write 
it in the following way:



   
 
   



But this is only a long form of the Attribtue Value Template you already 
use. And if the one does not work, the other one shell also not work.


For more help, you need to show more of your code.


Regards,


Joerg


Hong Gia Dinh wrote:
> Hi all
> 
> I got the problem like this:
> 
> i have a xsp file having the element : John Smith
> and a xsl file having a form with the input something like this?
> 
> 
> 
> 
> now i want to put the value of the element  into the value 
> of the input!!
> how???
> 
> i tried value="{name_value}"
> but it doesn't display anything in the form!
> 
> i use  in the outside of the input i 
> can print out Jonh Smith
> 
> but i cant put the tag  into the 
> value="<.>" due to '<' and '>' problem! so do you know how to deal with 
> this??
> 
> Thanks very mmuch in your help
> GD



-
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: Retrieve value problem

2002-12-16 Thread Joerg Heinicke
Hello Gia Dinh,

it's an XSL problem, so maybe the Mulberry XSL list is a more 
appropriate forum for such questions: 
http://www.mulberrytech.com/xsl/xsl-list/.

I can only guess what your problem is, because you show to less code. 
value="{name_value}" is ok in general. If  works on another place, it shell be a matching 
problem. I guess you don't use both code snippets in the same template 
or for-each loop.
To use  in attributes you can write 
it in the following way:


  

  


But this is only a long form of the Attribtue Value Template you already 
use. And if the one does not work, the other one shell also not work.

For more help, you need to show more of your code.

Regards,

Joerg

Hong Gia Dinh wrote:
Hi all

I got the problem like this:

i have a xsp file having the element : John Smith
and a xsl file having a form with the input something like this?




now i want to put the value of the element  into the value 
of the input!!
how???

i tried value="{name_value}"
but it doesn't display anything in the form!

i use  in the outside of the input i 
can print out Jonh Smith

but i cant put the tag  into the 
value="<.>" due to '<' and '>' problem! so do you know how to deal with 
this??

Thanks very mmuch in your help
GD


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




Retrieve value problem

2002-12-16 Thread Hong Gia Dinh
Title: Retrieve value problem





Hi all


I got the problem like this:


i have a xsp file having the element : John Smith
and a xsl file having a form with the input something like this?



    


now i want to put the value of the element  into the value of the input!!
how???


i tried value="{name_value}"
but it doesn't display anything in the form! 


i use  in the outside of the input i can print out Jonh Smith


but i cant put the tag  into the value="<.>" due to '<' and '>' problem! so do you know how to deal with this??

Thanks very mmuch in your help
GD





Problem with FormValidatorAction

2002-12-16 Thread arturl
When trying to use FormValidatorAction as specified in samples I get the
following error:

Line 388, column 49:  constructor XSPFormValidatorHelper(java.lang.String,
boolean, org.apache.avalon.framework.logger.Logger,
org.apache.cocoon.environment.SourceResolver, java.lang.String) not found in
class
org.apache.cocoon.components.language.markup.xsp.XSPFormValidatorHelper
Line 0, column 0:
1 error

What can cause the problem?

Cocoon 2.0.4 - Tomcat 4.1.12 - j2sdk1.4.1 - Slackware

Artur Laga







-
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 call a servlet in the generator part of the cocoon pipeline

2002-12-16 Thread loganathan



Hi
   i have 
problem calling serlet in the generator part of a cocoon pipeline.Give me an 
example program how it is working.
How do i maintain session between 
requests.
 
with regards
R.Loganathan.


Re: Using the Cocoon pipeline outside web apps

2002-12-16 Thread admin
Oh, what else you can do:

1) Create a pipeline to create the content.xml file (one of the files within an 
OpenOffice file).  You can use ESQL and XSL to create such a file.
2) Use wget http://server/file.xml content.xml
3) Zip it into an .sxw file, together with the manifest.xml and other files.

Et voila, you have a valid OO file, without the hassle of using Java.


Citeren Olivier Mengué <[EMAIL PROTECTED]>:

> Hi,
> 
> I'm working on a project that will generate OpenOffice.org document from
> data extracted from a database. Our aim is to automatise the publishing of
> the program of hikes for my hikers association. It is actually done with a
> Microsoft Word document merge and it is not satisfying. PDF is not an option
> as publishers have to do additionnal editing after the automatic step.
> The output document will be many pages long, so we want to process in batch
> instead of as a web application.
> 
> As OpenOffice.org document format is XML, I would like to reuse the Cocoon
> pipeline with an ESQL transformer from a simple Java application.
> 
> My question are :
> - is it possible ? I mean, is it possible to reuse just the pipeline in a
> standard Java application, without the sitemap and servlet stuff, without
> too much code or too many dependencies. The pipeline would be either
> hard-coded or specified with a simpler sitemap-like configuration file.
> - how ? The package org.apache.cocoon.components.pipeline seems interesting,
> but I don't know which class to use and how to build a simple pipeline with
> a generator, a transformer and serialiser. Then, how to feed the pipeline ?
> 
> Could you point me to the important classes, and the order to create them ?
> 
> 
> Thank you for your help,
> 
> Olivier Mengué
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

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




Re: Using the Cocoon pipeline outside web apps

2002-12-16 Thread admin
It must be possible to do, since an OpenOffice file is just a set of XML files, 
zipped into one.  I did the opposite thing: create one XML file from the Zip 
file, in order to publish them through Cocoon.  I used Perl.  Here's my script.
This doesn't do what you want it to do, but hey, it's Open Source, right.


#!/usr/bin/perl
# Written by Yves Vindevogel - [EMAIL PROTECTED]
# 14-Nov-2002

# This file opens a OpenOffice document (which is a zip file)
# and exports all the files in the document to XML
#
# Usage: oo2xml inputfile outputfile


# Check if the input file exists
unless (-e @ARGV[0])
{   die "oo2xml error: Could not find input file\n" ;
} ;

# Run system command to unzip the file into a temp xml file
# unzip -p  opens the zip file and puts the content in the pipe
# Since the content of an OpenOffice file is plain XML,
# all the files in the OO file are put into the pipe.
# The pipe is then flushed into a file, thus the xml file
# contains all the content, in XML.
# This is not a new valid XML file !!
# On the temp xml file, some modifications must be done.
system "unzip -p @ARGV[0] > /tmp/tmp.xml"
|| die "oo2xml error: Could not unzip the input file\n";

# Open the temp xml file
open (tmp, "/tmp/tmp.xml")
|| die "oo2xml error: Could not open temp file\n" ;

# Open second temp file to split the tags
# When the tags are not split, and an  comes second, 
# the complete line is neglected, resulting in bugs
# Therefore, in a first pass, the tags rewritten to a seperate line
open (tmp2, "> /tmp/tmp2.xml")
|| die "002xml error: Could not open temp split file\n" ;

# Loop through lines and split by entering a \n between the > and <
while ($line = )
{
$line =~ s/>\n @ARGV[1]")
|| die "oo2xml error: Could not open output file\n" ;

# Print the office:document tag
# The complete document needs to be enclosed by one root element
# The root element will thus be 
print xml "\n" ; # \x22 = "
print xml "http://openoffice.org/2000/office\x22 " ;
print xml "xmlns:style=\x22http://openoffice.org/2000/style\x22 " ;
print xml "xmlns:text=\x22http://openoffice.org/2000/text\x22 " ;
print xml "xmlns:table=\x22http://openoffice.org/2000/table\x22 " ;
print xml "xmlns:draw=\x22http://openoffice.org/2000/drawing\x22 " ;
print xml "xmlns:fo=\x22http://www.w3.org/1999/XSL/Format\x22 " ;
print xml "xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22 " ;
print xml "xmlns:number=\x22http://openoffice.org/2000/datastyle\x22 " ;
print xml "xmlns:svg=\x22http://www.w3.org/2000/svg\x22 " ;
print xml "xmlns:chart=\x22http://openoffice.org/2000/chart\x22 " ;
print xml "xmlns:dr3d=\x22http://openoffice.org/2000/dr3d\x22 " ;
print xml "xmlns:math=\x22http://www.w3.org/1998/Math/MathML\x22 " ;
print xml "xmlns:form=\x22http://openoffice.org/2000/form\x22 " ;
print xml "xmlns:script=\x22http://openoffice.org/2000/script\x22 " ;
print xml "xmlns:config=\x22http://openoffice.org/2001/config\x22 " ;
print xml "xmlns:meta=\x22http://openoffice.org/2000/meta\x22 " ;
print xml "xmlns:manifest=\x22http://openoffice.org/2001/manifest\x22 " ;
print xml "xmlns:dc=\x22http://purl.org/dc/elements/1.1/\x22 " ;

print xml ">\n" ;

# Loop through the lines in the temp XML file
# Lines with DOCTYPE descriptions and version info is omitted
while ($line = )
{
# temp var to see if we need to write the line
$ok = 1 ;

# Two reasons not to write the line: procession instructions and 
doctypes
if ($line =~ /<\x3F/) { $ok = 0; } ; # \x3F = ?
if ($line =~ //) { print xml ">\n"} ;
}
else
{
print xml $tag, " ";
}  ;
} ;

# Don't need to write the line, already written
$ok = 0 ;
} ;

# Write the line if the temp var is still 1
unless ($ok == 0) { print xml $line ; } ;
} ;

# Write document end tag
print xml "\n" ;

# Delete the temp files
system "rm -f /tmp/tmp.xml"
|| warn "oo2xml warning: Temp file could not be deleted" ;

system "rm -f /tmp/tmp2.xml"
|| warn "oo2xml warning: Temp split file could not be deleted" ;






Citeren Olivier Mengué <[EMAIL PROTECTED]>:

> Hi,
> 
> I'm working on a project that will generate OpenOffice.org document from
> data extracted from a database. Our aim is to automatise the publishing of
> the program of hikes for my hikers association. It is actually done with a
> Microsoft Word document merge and it is not satisfying. PDF is not an option
> as publishers have to do additionnal editing after the automatic step.
> The output document will be many pages long, so we want to process in batch
> instead of as a web application.
> 
> As OpenOffice.org document format is XML, I would like to reuse the Cocoon
> pipeline with an ESQL transformer from a simple Java application.
> 
> My question are :
> - is it possible ? I mean, is it possibl

RE: FIND !!!!!!!!

2002-12-16 Thread Hong Gia Dinh
Title: RE: FIND 





Thanks very much. Now i found it!


-Original Message-
From: Kenny Chow [mailto:[EMAIL PROTECTED]]
Sent: 16 December 2002 20:42
To: [EMAIL PROTECTED]
Subject: AW: FIND 



Please read carefully
http://xml.apache.org/cocoon/mail-lists.html before
you post a message to this mailing list. 


The url's you mentioned are namespaces defined by the
the developers. If you have downloaded the source, you
can go to, as an example,  


src/java/org/apache/cocoon/transformation/I18nTransformer.java


HTH




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: Using the Cocoon pipeline outside web apps

2002-12-16 Thread Olivier Mengué

From: "Robert Koberg"
> Hi,
>
> Given your questions, I wonder if cocoon is necessary, and in fact, your
> expectations. Cocoon s overkill for many things people use it for... Why
do you

This is why I want to just reuse a part of the Cocoon code.

> want to publish to a binary format? Why not simple HTML? Wouldn't that
give your
> users more/better access to your information?

Our aim is to print paper.
I already made a program that extract our data to HTML that is very simple
and doesn't use Cocoon.
However I'm looking for a more generic tranformation engine for our
application :
- multiple input : a database containing the hikes, and an XML file
containing hours for sunset and sunrise.
- multiple output : HTML and OpenOffice, may be later PDF too.
We are printing a program of hikes every two months that is 34 pages long
(half A4 paper size).
Most hikes are just for one day, starting from a train station around Paris.
We already have a publishing process that works, using Microsoft Word and
too many human brains. We want to reduce the number human brains required,
and replace them with programs for the repetitive work.

>
> What you are asking for is pretty simple. In fact, I would give free
access to
> hiking groups (especially those documenting the PCT, CDT, AT). If there
are

I don't what is PCT, PDT or AT. I live in France.

> similar things in Europe (given your name) I would support that too. I
would

I wonder what you mean by "free access". Free access to what ?

> probably write the stylesheets if your trail is long (not interested in
short
> hikes).

I don't need that for the moment.

>
> Let me know if I can help.
>

Thank you for proposing.

Olivier

> > From: Olivier Mengué [mailto:[EMAIL PROTECTED]]
> > Hi,
> >
> > I'm working on a project that will generate OpenOffice.org document from
> > data extracted from a database. Our aim is to automatise the publishing
of
> > the program of hikes for my hikers association. It is actually done with
a
> > Microsoft Word document merge and it is not satisfying. PDF is not an
option
> > as publishers have to do additionnal editing after the automatic step.
> > The output document will be many pages long, so we want to process in
batch
> > instead of as a web application.
> >
> > As OpenOffice.org document format is XML, I would like to reuse the
Cocoon
> > pipeline with an ESQL transformer from a simple Java application.
> >
> > My question are :
> > - is it possible ? I mean, is it possible to reuse just the pipeline in
a
> > standard Java application, without the sitemap and servlet stuff,
without
> > too much code or too many dependencies. The pipeline would be either
> > hard-coded or specified with a simpler sitemap-like configuration file.
> > - how ? The package org.apache.cocoon.components.pipeline seems
interesting,
> > but I don't know which class to use and how to build a simple pipeline
with
> > a generator, a transformer and serialiser. Then, how to feed the
pipeline ?
> >
> > Could you point me to the important classes, and the order to create
them ?
> >
> >
> > Thank you for your help,
> >
> > Olivier Mengué


-
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 Freelancers around Stuttgart wanted

2002-12-16 Thread Robert Sösemann
Dear list members,

this mail is only relevant for german cocoon users, that live in the area of
Stuttgart.


--

We are a team of three students from Tübingen, working as freelancers for a
big and well-known firm (insurance / finance).

For our current project, we are interested in people, experienced in cocoon,
java, and other related web design disciplines to join us.
Right now, we are producing a dynamic middle-size enterprise (portal).site
including a content management system as backend for authors..

The main tasks would be "cocoon-tuning", that means finding the most
extensible, elegant and performant way, to use cocoon - especially its
principle of "separation of concerns".

The salary would be paid on a per hour basis.

Please contact me if you are interested or have further questions.

Thanks in advance,

Robert Sösemann


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




saving a generated pdf file in server side

2002-12-16 Thread Niket Anand



 

   
  Hello All,
  Can anybody help me out of this 
  problem?
   
  A screen is divided in two frames:-Top frame 
  shows PDF generated by pattern using XSL:FOBottom frame contains button 
  for sending opened PDF (in top frame) through Mail. We are using JavaMail API 
  integrated with JBoss. Actually I want to send the Pdf through Mail, when a 
  user want to seePDF and submit Mail PDF button.
   
  How can I save and send opened PDF through mail 
  as attachment or 
  How can I save opened PDF at 
  server side on click of Submit button in bottom frame?
   
  Thanks,
  Niket 
  - Original Message - 
  From: "Niket Anand" <[EMAIL PROTECTED]>
  To: <[EMAIL PROTECTED]>
  Sent: Saturday, December 14, 2002 8:50 
  PM
  Subject: Re: saving a generated pdf file in local 
  directory
  > Hello Joerg,> How come I save the opened PDF(in top frame) 
  at server side at certain> folder such that I can send mail with 
  attached PDF on click of button in> bottom frame?> Thanks for 
  helping me.> Niket> - Original Message -> From: 
  "Joerg Heinicke" <[EMAIL PROTECTED]>> To: <[EMAIL PROTECTED]>> Sent: Saturday, December 14, 2002 8:05 PM> Subject: 
  Re: saving a generated pdf file in local directory> > > 
  > Hmm, what about a request like> > http://localhost/cocoon/sendmail?pdf=myreport.pdf&[EMAIL PROTECTED].> > On the server you can do your processing. But 
  I can't help you further,> > I did not never used JavaMail.> 
  >> > Joerg> >> > Niket Anand wrote:> 
  > > Sorry Joerg,> > > I want to disturb you again.> 
  > > The actual scenario is like that:-> > > A screen is 
  divided in two frames:-> > > Top frame shows PDF generated by 
  pattern using XSL:FO> > > Bottom frame contains button for 
  sending opened PDF (in top frame)> through> > > Mail. We 
  are using JavaMail API integrated with JBoss.> > > Actually I 
  want to send the Pdf through Mail, when a user want to see> PDF> 
  > > and submit Mail PDF button.> > > Does it possible in 
  Cocoon?> > > Thanks,> > > Niket> > > 
  - Original Message -> > > From: "Joerg Heinicke" 
  <[EMAIL PROTECTED]>> 
  > > To: <[EMAIL PROTECTED]>> > > Sent: Saturday, December 14, 2002 7:44 
  PM> > > Subject: Re: saving a generated pdf file in local 
  directory> > >> > >> > >> > 
  >>Remove the plugin from your browser. Or use right click and 
  use> > >>something like "Save link target as ...".> 
  > >>> > >>It's not a Cocoon related problem, only one 
  with browser usage.> > >>> > >>And please 
  don't post such questions to developer list. From there you> > 
  >>won't get no answer relating to the usage of Cocoon. Therefore the 
  users> > >>list exists.> > >>> > 
  >>Regards,> > >>> > >>Joerg> > 
  >>> > >>Niket Anand wrote:> > >>> 
  > >>>Hi All,> > >>>I have a link in a screen, 
  on click of that it will open new browser> and> > 
  >> > > a> > >> > >>>pipeline 
  pattern would be called on that browser displaying a pdf> 
  report> > >>>using XSL:FO.> > >>>Instead 
  of having this I want like this> > >>>When I click on 
  that link, a dialog box or folder/directory selector> > >> 
  > > popup> > >> > >>>window opens and 
  ask for desired directory on which the generated PDF> > >> 
  > > file> > >> > >>>can be 
  saved.> > >>>How can I do this?> > 
  >>>Actually how can I allow the physical pdf file to save in 
  local> > >> > > directory> > >> 
  > >>>using cocoon-2.0 WITHOUT OPENING IN new BROWSER?> > 
  >>>Pls reply if it needs more clarification.> > 
  >>>Thanks,> > >>> Niket> >> 
  >> > 
  -> 
  > 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: Problem using an external xml page

2002-12-16 Thread Mauro Daniel Ardolino
Thanks for the answer.  I think this can be the problem.  I was thinking
about that.  I will ask someone if there's a firewall working in our
net.  If so and I find the way to tell this to cocoon, I'll tell you.

Any other help will be welcome.  Thanks.

-- Mauro

On Mon, 16 Dec 2002, SAXESS - Hussayn Dabbous wrote:

> Following matcher would do it:
> 
> 
>   src="http://www.puentenet.com/XML_export/monedas.xml"/>
>
> 
> 
> But you may have a proxy problem.
> Are you sitting behind a firewall and can access
> the internet only via your http:proxy ?
> You will have to tell cocoon, how it shall access your
> proxy to connect to the net...
> 
> If this is really your problem, then it will be mine
> too in a couple of days. I currently don't know,
> if cocoon can really be configured to call resources
> through a firewall ...
> 
> Maybe someone else knows more about that ?
> 
> regards, hussayn
> 
> Mauro Daniel Ardolino wrote:
> > Hi all!
> > I'm having a problem trying to use an external xml page.  I mean
> > "external" to my project.  
> > 
> > The page is:
> > http://www.puentenet.com/XML_export/monedas.xml
> > 
> > So I put this on the sitemap:
> > ...
> > http://www.puentenet.com/XML_export/monedas.xml"; />
> > 
> > ...
> > 
> > And I get this error message when browsing:
> > 
> > An error occurred   
> > The org.apache.cocoon.www.sitemap_xmap notifies that
> > org.apache.cocoon.ProcessingException says:  Exception during processing of
> > http://www.puentenet.com/XML_export/monedas.xml   More precisely:
> > org.apache.cocoon.ProcessingException: Exception during processing of
> > http://www.puentenet.com/XML_export/monedas.xml: java.net.ConnectException:
> > Connection refused  
> > extra info  
> > full exception chain stacktrace show  Original exception :
> > java.net.ConnectException: Connection refused at
> > java.net.PlainSocketImpl.socketConnect(Native Method) at
> > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at
> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at
> > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at
> > java.net.Socket.connect(Socket.java:426) at
> > java.net.Socket.connect(Socket.java:376) at
> > sun.net.NetworkClient.doConnect(NetworkClient.java:139) at
> > 
> > and so on...
> > 
> > I'll appreciate any help.  Thanks in advance.
> > 
> > -- Mauro
> > 
> > 
> > -
> > 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]>
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


-
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: Source aggregation by XInclude

2002-12-16 Thread Timothy Larson
You can use the "cocoon:/" protocol to do this:

  



  

  



  

You may run into problems with the java code generated from the XSP
not always updating immediately when you make changes to the XSP page.
It seems like the timestamp only has one minute resolution. YMMV.

Tim

>>> [EMAIL PROTECTED] 12/16/02 10:57AM >>>
Hello,
In Cocoon 1.8 we used xinclude for aggregation of our xsp sources. 

Now in C2, xsp is generator and xinclude is transformer, therefore xinclude
cannot precede xsp to prepare sources for it.

Is there any working technique how to compose sources for xsp generator from
more than one file?

Michal

-- MisoD --
Michal Durdina - [EMAIL PROTECTED] 
ASSET Soft a.s.,
Kosicka 56, Bratislava, 821 08
Slovakia, Europe


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




Source aggregation by XInclude

2002-12-16 Thread ĎURDINA Michal
Hello,
In Cocoon 1.8 we used xinclude for aggregation of our xsp sources. 

Now in C2, xsp is generator and xinclude is transformer, therefore xinclude
cannot precede xsp to prepare sources for it.

Is there any working technique how to compose sources for xsp generator from
more than one file?

Michal

-- MisoD --
Michal Durdina - [EMAIL PROTECTED] 
ASSET Soft a.s.,
Kosicka 56, Bratislava, 821 08
Slovakia, Europe


-
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: Cocoon-2.1, Saxon-7.3.1, XSP pages not working

2002-12-16 Thread Timothy Larson
More Info:

If I edit the sitemap to make Saxon pretend to be Xalan (to ensure that only Saxon is 
used)
then the problem changes.  A java source file is generated for the XSP page, but the 
first line
in the file should not be there at all.  Here are the first 5 lines from the file 
hello_xsp.java:

 xmlns:xsp="http://apache.org/xsp"; 
xmlns:XSLTExtension="org.apache.cocoon.components.language.markup.xsp.XSLTExtension"
package org.apache.cocoon.www.samples.docs.samples.xsp;

import java.io.File;
import java.io.IOException;

Tim

>>> [EMAIL PROTECTED] 12/16/02 10:35AM >>>
>I am trying to use Saxon-7.3.1 with Cocoon-2.1 for XSP pages.
>It worked until a couple weeks ago (using Saxon-7.3), but broke
>around the time that the XSP changes were put in Cocoon-2.1
>for the not-recompiling bug.
>
>Anybody have ideans or a simillar setup working?
>
>When I try to access:
>http://localhost:8080/cocoon-1216-1/samples/xsp/hello 
>I get an error that looks like Saxon and Xalan are fighting each other:
>
>Error: 500
>Location: /cocoon-1216-1/samples/xsp/hello
>Internal Servlet Error:
>
>java.lang.StackOverflowError
>   at net.sf.saxon.om.NamePool.allocate(NamePool.java:413)
>   at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:181)
>   at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:131)
>   at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
>   at 
>org.apache.xalan.xsltc.runtime.output.SAXXMLOutput.closeStartTag(SAXXMLOutput.java:312)
>   at 
>org.apache.xalan.xsltc.runtime.output.SAXXMLOutput.endElement(SAXXMLOutput.java:205)
>   at error2html.returns2br()
>   at error2html.returns2br()
>   at error2html.returns2br()
>(This last line repeats maybe 100 times)
>
>Tim



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

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




Re: Problem using an external xml page

2002-12-16 Thread SAXESS - Hussayn Dabbous
Following matcher would do it:


  http://www.puentenet.com/XML_export/monedas.xml"/>
  


But you may have a proxy problem.
Are you sitting behind a firewall and can access
the internet only via your http:proxy ?
You will have to tell cocoon, how it shall access your
proxy to connect to the net...

If this is really your problem, then it will be mine
too in a couple of days. I currently don't know,
if cocoon can really be configured to call resources
through a firewall ...

Maybe someone else knows more about that ?

regards, hussayn

Mauro Daniel Ardolino wrote:

Hi all!
I'm having a problem trying to use an external xml page.  I mean
"external" to my project.  

The page is:
http://www.puentenet.com/XML_export/monedas.xml

So I put this on the sitemap:
...
	http://www.puentenet.com/XML_export/monedas.xml"; />
	
...

And I get this error message when browsing:

An error occurred		
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:  Exception during processing of
http://www.puentenet.com/XML_export/monedas.xml   More precisely:
org.apache.cocoon.ProcessingException: Exception during processing of
http://www.puentenet.com/XML_export/monedas.xml: java.net.ConnectException:
Connection refused   		
extra info		
full exception chain stacktrace	show  Original exception :
java.net.ConnectException: Connection refused at
java.net.PlainSocketImpl.socketConnect(Native Method) at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at
java.net.Socket.connect(Socket.java:426) at
java.net.Socket.connect(Socket.java:376) at
sun.net.NetworkClient.doConnect(NetworkClient.java:139) at

and so on...

I'll appreciate any help.  Thanks in advance.

-- Mauro


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




Cocoon-2.1, Saxon-7.3.1, XSP pages not working

2002-12-16 Thread Timothy Larson
I am trying to use Saxon-7.3.1 with Cocoon-2.1 for XSP pages.
It worked until a couple weeks ago (using Saxon-7.3), but broke
around the time that the XSP changes were put in Cocoon-2.1
for the not-recompiling bug.

Anybody have ideans or a simillar setup working?

When I try to access:
http://localhost:8080/cocoon-1216-1/samples/xsp/hello
I get an error that looks like Saxon and Xalan are fighting each other:

Error: 500
Location: /cocoon-1216-1/samples/xsp/hello
Internal Servlet Error:

java.lang.StackOverflowError
at net.sf.saxon.om.NamePool.allocate(NamePool.java:413)
at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:181)
at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:131)
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
at 
org.apache.xalan.xsltc.runtime.output.SAXXMLOutput.closeStartTag(SAXXMLOutput.java:312)
at 
org.apache.xalan.xsltc.runtime.output.SAXXMLOutput.endElement(SAXXMLOutput.java:205)
at error2html.returns2br()
at error2html.returns2br()
at error2html.returns2br()
(This last line repeats maybe 100 times)

Tim



-
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: Security and authentication

2002-12-16 Thread Lajos Moczar
If you really didn't want to do it via web.xml, which I would recommend, 
you probably could have a pipeline for the resource that did a 
 and took your user to a fully-qualified secure URL.

Lajos


Miles Elam wrote:
Is there a way to specify that a Cocoon resource only be accessed via a 
secure socket?  Another way, most of the site would be Cocoon on an 
unencrypted channel, but you could specify that a particular URL would 
redirect to an https handler.

This would be an equivalent to the servlet spec that allows an entry in 
web.xml to say that the resource is confidential.

Is this possible now?

---

Also, do the portal/authentication frameworks use the same mechanisms as 
the enclosing servlet container or do they use their own, 
Cocoon-specific mechanisms where authentication to one has no bearing on 
authentication to the other?

- Miles



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




--
galatea.com
Cocoon training, consulting & support


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

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




Re: Using saxon extensions in Cocoon?

2002-12-16 Thread SAXESS - Hussayn Dabbous
You may have multiple independent problems in your
setup:

I understand your environment is as folows:

1.) there are two independent webapps running in your container,
a.) the original cocoon webapp
b.) your cocoon-dev webapp

2.) You have inserted saxon-6.5.2.*.jar into the WEB-inf/lib
of your cocoon-dev.

Now when accessing your pages within cocoon-dev, you get the
error xml page can't be displayed.
Please look into the cocoon logs (WEB-INF/logs/core.log) and
search for the last stack trace. On top of this stack trace
you may find the original Saxon message, that created this
failure. You will have to look around a bit. Eventually you will
find the cause of your problem in the logs.

3.) You have inserted saxon-6.5.2*.jar additionally into your
cocoon webapp

Now you get /cocoon is not available.

That seems to be something with your tomcat setup. Look into
the logfiles of your tomcat container and check, if one of
your webapps has crashed ?

By the way, did you restart tomcat after you changed the
cocoon.xconf ?


regards, hussayn


Anna Afonchenko wrote:

Hi Hussayn.
Thank you for your help
I looked on the hint enabling saxon, and I am meeting the following
problems:

under the Tomcat webapps directory I have the original cocoon directory,
and I have cocoon-dev, my working directory with the WebInf dir copied from
the original cocoon.
I edited the cocoon.xconf file, adding

  
  
  


and I copied the saxon.jar to the WebInf/lib dir.
Now my problem starts:
When I put the saxon.jar only in cocoon dir, but not in the cocoon-dev dir,
the cocoon works, but I still  can't use any saxon functions, because if I
do, I get the error: The XML page cannot be displayed...

If I put the saxon.jar in the cocoon-dev directory too, the cocoon stops
running at all, giving me the error:

type Status report

message /cocoon

description The requested resource (/cocoon) is not available.

Can you explain this mistery to me, please?
I am very confused, and stuck on my work because of this.
Thank you very very much.

Anna


- Original Message -
From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 2:57 PM
Subject: Re: Using saxon extensions in Cocoon?


you need to enable saxon.
there are some hint in the cocoon-wiki at
http://outerthought.net/wiki/Wiki.jsp

I gathered all infos i could find on this issue
into one "howto" document. What i did is documented
in

http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install

You will find info, how I managed building a fresh cocooon
with saxon support and a little bit more, but it is currently
an internal document. I'm still workming on it ;-)

good luck,
hussayn



Anna Afonchenko wrote:


Hi all.
I have an xsl stylesheet that uses a few saxon extension functions.
When I was applying this stylesheet on an xml file through command line,
everything worked,
but now I am trying to run it through Cocoon, and I get the message:

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and
then click the Refresh  button, or try
again later.



XML document must have a top level element. Error processing resource
'http://localhost:8080/cocoon-dev/ub/violations.html'.

And if I look in the source of this page, it is empty.
If I remove the line in xsl that uses saxon function, everything else
works fine.

How can I use saxon extensions from Cocoon?
I am sure that should be simple, but I can't work it out myself.

Thank you very much for your help.

Anna




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

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




How to set a "send mail" action on a checkbox

2002-12-16 Thread Maxime.Gheysen
Hi,

I have a list of processes, every process has a status. This status is a
checkbox. On every checkbox I want to set an action. How can I set
following actions : 

Every checkbox updates the database (change the Status field)
Some checkboxes must send an e-mail

I'm working with xsp pages and esql for connections with Sql2000 server

Thank you for your help!

Maxime

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

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




Problem using an external xml page

2002-12-16 Thread Mauro Daniel Ardolino
Hi all!
I'm having a problem trying to use an external xml page.  I mean
"external" to my project.  

The page is:
http://www.puentenet.com/XML_export/monedas.xml

So I put this on the sitemap:
...
http://www.puentenet.com/XML_export/monedas.xml"; />

...

And I get this error message when browsing:

An error occurred   
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:  Exception during processing of
http://www.puentenet.com/XML_export/monedas.xml   More precisely:
org.apache.cocoon.ProcessingException: Exception during processing of
http://www.puentenet.com/XML_export/monedas.xml: java.net.ConnectException:
Connection refused  
extra info  
full exception chain stacktrace show  Original exception :
java.net.ConnectException: Connection refused at
java.net.PlainSocketImpl.socketConnect(Native Method) at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at
java.net.Socket.connect(Socket.java:426) at
java.net.Socket.connect(Socket.java:376) at
sun.net.NetworkClient.doConnect(NetworkClient.java:139) at

and so on...

I'll appreciate any help.  Thanks in advance.

-- Mauro


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




Applet trouble in output...

2002-12-16 Thread Ben Young
The HTML I'm outputting contains applet tags. The applet returned a
ClassNotFoundException. I've added a map:read line for **.jar's to the
sitemap, but to not avail. There is also a file being passed to the applet
with an **.ivr extension. I'm not sure of the mime type, but I suppose I'll
need to do something similar for them.

Thoughts? 

Thanks,
Ben


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

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




RE: problem with the sitemap and patterns

2002-12-16 Thread Geoff Howard
I'm not sure if that behaviour was is by design or not - I'd suggest that
you
post an "is this correct sitemap behaviour" on the dev list, being sure to
include which version you're using.

In the meantime, if you want your sub-sitemap to handle unmatched requests,
you can put a generic match at the end of the pipeline:







where the foo.xml is a hack to allow you to use the same style sheet to
process
not found the same as error.  it ought to have real, but short xml in it.
 might do
as the whole contents of the file.

Geoff

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 3:34 AM
> To: cocoon-users
> Subject: RE: problem with the sitemap and patterns
>
>
> Ok, the problem it's a bit more clear, now.
>
> My custom sylesheet is only executed if I force the error:
>
> 
>
>   
>
>
>   
>
>
>
>   
>
>
>   
>   
>
> 
>
> It seesms that Cocoon performs my handle-errors only if it finds
> an error WHILE processing a match pattern.
> Whithout the , my error.xsl isn't executed.
>
> I think this is a Cocoon bug ...
>
> > From what I understand, you should have seen your expected custom
> > stylesheet.  Are you certain it's finding your error.xsl, and are you
> > certain there are no problems with it?  Look in sitemap.log - trace the
> > request as it's being processed.
> >
> > Geoff
> >
> > > -Original Message-
> > >
> > > Well, maybe what I supposed to know about pipelines and matchers is
> > > wrong, but ...
> > >
> > > 
> > >> > src="mysite/sitemap.xmap" uri-prefix="mysite"/>
> > > 
> > >
> > > and the mounted pipeline is something like:
> > > 
> > >   
> > > 
> > > 
> > >   
> > > 
> > > 
> > >   
> > >   
> > > 
> > >
> > > Now, if I call
> > > http://localhost:8080/cocoon/mysite/index.html
> > > or
> > > http://localhost:8080/cocoon/mysite/dir1/dir2/index.html
> > > it works
> > >
> > > but if I try
> > > http://localhost;8080/cocoon/mysite/anything.html
> > > I get the well known white page with the blu header "Cocoon 2 -
> > > Resource not found",
> > > while I expected to find my custom error page.
> > >
> > > Coccon processes a request which begins with "mysite" and,
> according to
> > > the "2 asterisks rule", the mounted pipeline is executed.
> > > But there isn't a pattern that matches the request, an error occurs.
> > > So why my custom handler isn't processed?
> > >
> > > Where I'm wrong?
> > >
> > > Cocoon 2.0.3 - Tomcat 4.1.12 - j2sdk1.4.0 - Win2k server
>
>
>
> -
> 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: Configuring JTidy

2002-12-16 Thread Geoff Howard
should be in a file called jtidy.properties in the same directory as the
sitemap?  the properties file style would contain each name=value pair on a
separate line.

Geoff Howard
-Original Message-
From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:15 AM
To: cocoon-users
Subject: Configuring JTidy


Hi all.
I have a very  simple and stupid question.
In the 2.0.4 version of cocoon the HTMLGenerator now can accept a JTidy
configuration file.
The example that is given in the user documentation is:

  
jtidy.properties
  

I am probably very stupid, but from this documentation I don't understand
where am I supposed to write the additional JTidy properties.
Let's say I want to set the following properties:
output-xml=no, output-xhtml=yes,quote-marks=yes
Can someone please give me an example of how am I defining HTMLGenerator to
use this properties when tidying the input file?

Thank you very much for help.

Anna


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

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




Re: Using saxon extensions in Cocoon?

2002-12-16 Thread Anna Afonchenko
Hi Hussayn.
Thank you for your help
I looked on the hint enabling saxon, and I am meeting the following
problems:

under the Tomcat webapps directory I have the original cocoon directory,
and I have cocoon-dev, my working directory with the WebInf dir copied from
the original cocoon.
I edited the cocoon.xconf file, adding

  
  
  


and I copied the saxon.jar to the WebInf/lib dir.
Now my problem starts:
When I put the saxon.jar only in cocoon dir, but not in the cocoon-dev dir,
the cocoon works, but I still  can't use any saxon functions, because if I
do, I get the error: The XML page cannot be displayed...

If I put the saxon.jar in the cocoon-dev directory too, the cocoon stops
running at all, giving me the error:

type Status report

message /cocoon

description The requested resource (/cocoon) is not available.

Can you explain this mistery to me, please?
I am very confused, and stuck on my work because of this.
Thank you very very much.

Anna


- Original Message -
From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 2:57 PM
Subject: Re: Using saxon extensions in Cocoon?


you need to enable saxon.
there are some hint in the cocoon-wiki at
http://outerthought.net/wiki/Wiki.jsp

I gathered all infos i could find on this issue
into one "howto" document. What i did is documented
in

http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install

You will find info, how I managed building a fresh cocooon
with saxon support and a little bit more, but it is currently
an internal document. I'm still workming on it ;-)

good luck,
hussayn



Anna Afonchenko wrote:
> Hi all.
> I have an xsl stylesheet that uses a few saxon extension functions.
> When I was applying this stylesheet on an xml file through command line,
> everything worked,
> but now I am trying to run it through Cocoon, and I get the message:
>
> The XML page cannot be displayed
>
> Cannot view XML input using style sheet. Please correct the error and
> then click the Refresh  button, or try
> again later.
>
> 
>
> XML document must have a top level element. Error processing resource
> 'http://localhost:8080/cocoon-dev/ub/violations.html'.
>
> And if I look in the source of this page, it is empty.
> If I remove the line in xsl that uses saxon function, everything else
> works fine.
>
> How can I use saxon extensions from Cocoon?
> I am sure that should be simple, but I can't work it out myself.
>
> Thank you very much for your help.
>
> Anna


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

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




saving a generated pdf file in server side

2002-12-16 Thread Niket Anand



Hello All,
Can anybody help me out of this 
problem?
 
A screen is divided in two frames:-Top frame 
shows PDF generated by pattern using XSL:FOBottom frame contains button for 
sending opened PDF (in top frame) through Mail. We are using JavaMail API 
integrated with JBoss. Actually I want to send the Pdf through Mail, when a user 
want to seePDF and submit Mail PDF button.
 
How can I save and send opened PDF through mail as 
attachment or 
How can I save opened PDF at server 
side on click of Submit button in bottom frame?
 
Thanks,
Niket 
- Original Message - 
From: "Niket Anand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 14, 2002 8:50 
PM
Subject: Re: saving a generated pdf file in local 
directory
> Hello Joerg,> How come I save the opened PDF(in top frame) at 
server side at certain> folder such that I can send mail with attached 
PDF on click of button in> bottom frame?> Thanks for helping 
me.> Niket> - Original Message -> From: "Joerg 
Heinicke" <[EMAIL PROTECTED]>> To: 
<[EMAIL PROTECTED]>> Sent: Saturday, December 14, 2002 8:05 PM> Subject: 
Re: saving a generated pdf file in local directory> > > 
> Hmm, what about a request like> > http://localhost/cocoon/sendmail?pdf=myreport.pdf&[EMAIL PROTECTED].> > On the server you can do your processing. But I 
can't help you further,> > I did not never used JavaMail.> 
>> > Joerg> >> > Niket Anand wrote:> 
> > Sorry Joerg,> > > I want to disturb you again.> 
> > The actual scenario is like that:-> > > A screen is 
divided in two frames:-> > > Top frame shows PDF generated by 
pattern using XSL:FO> > > Bottom frame contains button for sending 
opened PDF (in top frame)> through> > > Mail. We are using 
JavaMail API integrated with JBoss.> > > Actually I want to send 
the Pdf through Mail, when a user want to see> PDF> > > and 
submit Mail PDF button.> > > Does it possible in Cocoon?> 
> > Thanks,> > > Niket> > > - Original 
Message -> > > From: "Joerg Heinicke" <[EMAIL PROTECTED]>> > 
> To: <[EMAIL PROTECTED]>> > > Sent: Saturday, December 14, 2002 7:44 PM> 
> > Subject: Re: saving a generated pdf file in local directory> 
> >> > >> > >> > >>Remove the 
plugin from your browser. Or use right click and use> > 
>>something like "Save link target as ...".> > >>> 
> >>It's not a Cocoon related problem, only one with browser 
usage.> > >>> > >>And please don't post such 
questions to developer list. From there you> > >>won't get no 
answer relating to the usage of Cocoon. Therefore the users> > 
>>list exists.> > >>> > >>Regards,> 
> >>> > >>Joerg> > >>> > 
>>Niket Anand wrote:> > >>> > >>>Hi 
All,> > >>>I have a link in a screen, on click of that it 
will open new browser> and> > >> > > a> 
> >> > >>>pipeline pattern would be called on that 
browser displaying a pdf> report> > >>>using 
XSL:FO.> > >>>Instead of having this I want like 
this> > >>>When I click on that link, a dialog box or 
folder/directory selector> > >> > > popup> > 
>> > >>>window opens and ask for desired directory on 
which the generated PDF> > >> > > file> > 
>> > >>>can be saved.> > >>>How can I 
do this?> > >>>Actually how can I allow the physical pdf file 
to save in local> > >> > > directory> > 
>> > >>>using cocoon-2.0 WITHOUT OPENING IN new 
BROWSER?> > >>>Pls reply if it needs more 
clarification.> > >>>Thanks,> > >>> 
Niket> >> >> > 
-> 
> 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: AW: Perl in cocoon

2002-12-16 Thread Sorin Marti
SAXESS - Hussayn Dabbous wrote:


hy; 

Hi!



I don't know, if there is another concept besides
aggregation in cocoon. 

As I know so far, there is nothing... :-(


I could think of following
alternatives:

1.) use aggregation in pipeline (as Elmar pointed
out)

2.) Build an action, that triggers your perl script
and then read the resulting temporary file from
the pipeline. I never did that, but this is,
what i think, actions could do ... 

Thanks! I'll try these things!



I'm curious: Why do you want to combine your
XML-files externally? There must be something in
here, that i'm mmissing... 

I get these files without knowing anything else about them out of the 
structure. Till now I just put them together und parsed them with an 
XSLT-Parser to a html-output and uploaded them. Now with cocoon I thougt 
I have to make it the same way...

Besides: The ability to use perl would give one lots of possibilities in 
transformation and in other cases it surely would be useful...


regards, hussayn 

regards
Sorin Marti







-
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: Perl in cocoon

2002-12-16 Thread Sorin Marti


Joerg Heinicke wrote:


Hello Sorin,

I don't know anything about Perl in Cocoon and I don't think it's 
possible. There is another project called Axkit, which uses Perl and 
is similar to Cocoon. 

I read about axkit and i'll have a look at it...thanks for your advice



But you don't need Perl for your task. In Cocoon a DirectoryGenerator 
exists, which gives you an XML representation of the files contained 
in the directory. Now you only need a simple stylesheet, which 
combines the XML files via document(), or creates XML for 
CInclude/XInclude. The already propagated Sitemap Aggregation seems to 
be to static for your task. But the other solution is really simple 
too. If you need further help, you can ask of course. 

i'll come back to your offer later... .-)




Regards,

Joerg 

Regards and thanks

Sorin









-
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: FIND !!!!!!!!

2002-12-16 Thread Kenny Chow
Please read carefully
http://xml.apache.org/cocoon/mail-lists.html before
you post a message to this mailing list. 

The url's you mentioned are namespaces defined by the
the developers. If you have downloaded the source, you
can go to, as an example,  

src/java/org/apache/cocoon/transformation/I18nTransformer.java

HTH



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: AW: Perl in cocoon

2002-12-16 Thread SAXESS - Hussayn Dabbous
hy;

I don't know, if there is another concept besides
aggregation in cocoon. I could think of following
alternatives:

1.) use aggregation in pipeline (as Elmar pointed
out)

2.) Build an action, that triggers your perl script
and then read the resulting temporary file from
the pipeline. I never did that, but this is,
what i think, actions could do ...

I'm curious: Why do you want to combine your
XML-files externally? There must be som,ething in
here, that i'm mmissing...

regards, hussayn

Sternath Elmar wrote:

Instead of your perl script, you could use aggregation:

	
	


and then transform the aggregated XML stream with your stylesheet.

Regards,
Elmar



-Ursprüngliche Nachricht-
Von: Sorin Marti [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 16. Dezember 2002 13:26
An: [EMAIL PROTECTED]
Betreff: Perl in cocoon


Hi all,

In my directory (webapps/cocoon/mount/energie/) i've got a number of 
XML-Files which which I want to put together. I have a perl script which 
does that for me.

So my question is: Is it possible to run this perl script? The whole 
thing should look like that:

XML-File 1
-




Erdölprodukte
488300

[...]

Müll und Industrieadfälle
3700



XML-File 2,3,4

Have the same structure as number one...

Should become: combined.XML

So when I request for "combined.html" it should run the perl-script (put 
the files together, create combinded.xml) then compile (with 
"energiebericht2html.xsl") and display combined.html

is this possible?

Thanks in advance for any advice

Sorin Marti



-
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: Perl in cocoon

2002-12-16 Thread Joerg Heinicke
Hello Sorin,

I don't know anything about Perl in Cocoon and I don't think it's possible. 
There is another project called Axkit, which uses Perl and is similar to Cocoon.
But you don't need Perl for your task. In Cocoon a DirectoryGenerator 
exists, which gives you an XML representation of the files contained in the 
directory. Now you only need a simple stylesheet, which combines the XML 
files via document(), or creates XML for CInclude/XInclude. The already 
propagated Sitemap Aggregation seems to be to static for your task. But the 
other solution is really simple too. If you need further help, you can ask 
of course.

Regards,

Joerg

Sorin Marti wrote:
Hi all,

In my directory (webapps/cocoon/mount/energie/) i've got a number of 
XML-Files which which I want to put together. I have a perl script which 
does that for me.

So my question is: Is it possible to run this perl script? The whole 
thing should look like that:

XML-File 1
-




Erdölprodukte
488300

[...]

Müll und Industrieadfälle
3700



XML-File 2,3,4

Have the same structure as number one...

Should become: combined.XML

So when I request for "combined.html" it should run the perl-script (put 
the files together, create combinded.xml) then compile (with 
"energiebericht2html.xsl") and display combined.html

is this possible?

Thanks in advance for any advice

Sorin Marti



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




--

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: AW: Perl in cocoon

2002-12-16 Thread Sorin Marti
Sternath Elmar wrote:


Instead of your perl script, you could use aggregation:

	
	


and then transform the aggregated XML stream with your stylesheet.

Regards,
Elmar


Thanks for your advice but that doesn't answer my question...is it possible?
By the way: I don't know how many XML-Files there are.

Thanks
Sorin Marti


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

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




Re: Using saxon extensions in Cocoon?

2002-12-16 Thread SAXESS - Hussayn Dabbous
you need to enable saxon.
there are some hint in the cocoon-wiki at
http://outerthought.net/wiki/Wiki.jsp

I gathered all infos i could find on this issue
into one "howto" document. What i did is documented
in

http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install

You will find info, how I managed building a fresh cocooon
with saxon support and a little bit more, but it is currently
an internal document. I'm still workming on it ;-)

good luck,
hussayn



Anna Afonchenko wrote:

Hi all.
I have an xsl stylesheet that uses a few saxon extension functions.
When I was applying this stylesheet on an xml file through command line, 
everything worked,
but now I am trying to run it through Cocoon, and I get the message:
 
The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and 
then click the Refresh  button, or try 
again later.



XML document must have a top level element. Error processing resource 
'http://localhost:8080/cocoon-dev/ub/violations.html'.

And if I look in the source of this page, it is empty.
If I remove the line in xsl that uses saxon function, everything else 
works fine.
 
How can I use saxon extensions from Cocoon?
I am sure that should be simple, but I can't work it out myself.
 
Thank you very much for your help.
 
Anna


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

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




AW: Perl in cocoon

2002-12-16 Thread Sternath Elmar
Instead of your perl script, you could use aggregation:





and then transform the aggregated XML stream with your stylesheet.

Regards,
Elmar



-Ursprüngliche Nachricht-
Von: Sorin Marti [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 16. Dezember 2002 13:26
An: [EMAIL PROTECTED]
Betreff: Perl in cocoon


Hi all,

In my directory (webapps/cocoon/mount/energie/) i've got a number of 
XML-Files which which I want to put together. I have a perl script which 
does that for me.

So my question is: Is it possible to run this perl script? The whole 
thing should look like that:

XML-File 1
-




Erdölprodukte
488300

[...]

Müll und Industrieadfälle
3700



XML-File 2,3,4

Have the same structure as number one...

Should become: combined.XML

So when I request for "combined.html" it should run the perl-script (put 
the files together, create combinded.xml) then compile (with 
"energiebericht2html.xsl") and display combined.html

is this possible?

Thanks in advance for any advice

Sorin Marti



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




Perl in cocoon

2002-12-16 Thread Sorin Marti
Hi all,

In my directory (webapps/cocoon/mount/energie/) i've got a number of 
XML-Files which which I want to put together. I have a perl script which 
does that for me.

So my question is: Is it possible to run this perl script? The whole 
thing should look like that:

XML-File 1
-




Erdölprodukte
488300

[...]

Müll und Industrieadfälle
3700



XML-File 2,3,4

Have the same structure as number one...

Should become: combined.XML

So when I request for "combined.html" it should run the perl-script (put 
the files together, create combinded.xml) then compile (with 
"energiebericht2html.xsl") and display combined.html

is this possible?

Thanks in advance for any advice

Sorin Marti



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



Using saxon extensions in Cocoon?

2002-12-16 Thread Anna Afonchenko



Hi all.
I have an xsl stylesheet that uses a 
few saxon extension functions.
When I was applying this stylesheet 
on an xml file through command line, everything worked,
but now I am trying to run it through 
Cocoon, and I get the message:
 
The XML page cannot be displayed 
Cannot view XML input using style sheet. 
Please correct the error and then click the Refresh button, or try 
again later. 


XML document must have a top level 
element. Error processing resource 
'http://localhost:8080/cocoon-dev/ub/violations.html'. 
And if I look in the source of this 
page, it is empty.
If I remove the line in xsl that uses 
saxon function, everything else works fine.
 
How can I use saxon extensions from 
Cocoon?
I am sure that should be simple, but 
I can't work it out myself.
 
Thank you very much for your 
help.
 
Anna


Re: Transforming XML with XSL and Cocoon

2002-12-16 Thread Sorin Marti


Try:
http://localhost:8080/cocoon/Ich_bestehe_nicht
You will get the same message.


That's an answer I expected...



What's in the  portion  of your sitemap?


Ok, my problem is solved. As I said, I am a newbie and didn't even have 
a sitemap. Now I have one and the html output is fine...


Did you put a connection between the URI and the files?


nope. (I wouldn't even know how)



Cocoon is also about managing an URI space.


good to know...

Thanks for your help, the list surely will hear about my beginner-probs 
in future :-)





-
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: Transforming XML with XSL and Cocoon

2002-12-16 Thread Ahmed
On Mon, 2002-12-16 at 10:14, Sorin Marti wrote:
> now I want to try to look view my XML-file in the browser 
> (http://localhost:8080/cocoon/energie/energiebericht-70-99.xml)
> and I get following error:
>   Cocoon 2 - Resource not found

Try:
http://localhost:8080/cocoon/Ich_bestehe_nicht
You will get the same message.

What's in the  portion  of your sitemap?

Did you put a connection between the URI and the files?

Cocoon is also about managing an URI space.



-
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 - greek sample

2002-12-16 Thread Konstantin Piroumian
Great!

The official way of submiting patches is through Bugzilla, but it'd be
faster if you send it directly me by [EMAIL PROTECTED]

Please, include also the image of the Greece flag.

Konstantin

From: "Cocoon User" <[EMAIL PROTECTED]>

>
> we have add greek language in i18n refactored sample
>
> where can we send all this files to be part of the official
> i18n refactored samples
>
>
> Stavros Kounis
> http://www.osmosis.gr
>


-
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 - greek sample

2002-12-16 Thread Cocoon User

we have add greek language in i18n refactored sample

where can we send all this files to be part of the official
i18n refactored samples


Stavros Kounis
http://www.osmosis.gr






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




Configuring JTidy

2002-12-16 Thread Anna Afonchenko



Hi all.
I have a very  simple and stupid 
question.
In the 2.0.4 version of cocoon the 
HTMLGenerator now can accept a JTidy configuration file.
The example that is given in the user 
documentation is:
      
jtidy.properties  

 
I am probably very stupid, but from this 
documentation I don't understand where am I supposed to write the additional 
JTidy properties.
Let's say I want to set the following 
properties:
output-xml=no, 
output-xhtml=yes,quote-marks=yes
Can someone please give me an example of how am I 
defining HTMLGenerator to use this properties when tidying the input 
file?
 
Thank you very much for help.
 
Anna
 

 


Transforming XML with XSL and Cocoon

2002-12-16 Thread Sorin Marti
Hi all,

I am a newbie with cocoon. I've got some troubles and hope you can help me.

I've got an XML-File, its DTD and an XSL-File. I think they are all 
well-formed and valid.

In the XML-File I declared:
Cocoon-process-type:   
the Stylesheet location:  
the doctype:

In the XSL-File I declared:
http://www.w3.org/1999/XSL/Transform";>


I use:
cocoon 2.0.4
jakarta tomcat 4.1.12
jdk 1.3.1

now I want to try to look view my XML-file in the browser 
(http://localhost:8080/cocoon/energie/energiebericht-70-99.xml)
and I get following error:


 Cocoon 2 - Resource not found



type resource-not-found

messageResource not found

descriptionThe requested URI "/cocoon/energie/energiebericht-70-99.xml" 
was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/energie/energiebericht-70-99.xml

path-info

energie/energiebericht-70-99.xml



What's  wrong?

Thanks for any advice

Sorin Marti


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

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



RE: problem with the sitemap and patterns

2002-12-16 Thread [EMAIL PROTECTED]
Ok, the problem it's a bit more clear, now.

My custom sylesheet is only executed if I force the error:


   
  
   
   
  
   
   
   
  
   
   
  
  
   


It seesms that Cocoon performs my handle-errors only if it finds an error WHILE 
processing a match pattern.
Whithout the , my error.xsl isn't executed.

I think this is a Cocoon bug ...

> From what I understand, you should have seen your expected custom
> stylesheet.  Are you certain it's finding your error.xsl, and are you
> certain there are no problems with it?  Look in sitemap.log - trace the
> request as it's being processed.
> 
> Geoff
> 
> > -Original Message-
> >
> > Well, maybe what I supposed to know about pipelines and matchers is
> > wrong, but ...
> >
> > 
> >> src="mysite/sitemap.xmap" uri-prefix="mysite"/>
> > 
> >
> > and the mounted pipeline is something like:
> > 
> >   
> > 
> > 
> >   
> > 
> > 
> >   
> >   
> > 
> >
> > Now, if I call
> > http://localhost:8080/cocoon/mysite/index.html
> > or
> > http://localhost:8080/cocoon/mysite/dir1/dir2/index.html
> > it works
> >
> > but if I try
> > http://localhost;8080/cocoon/mysite/anything.html
> > I get the well known white page with the blu header "Cocoon 2 -
> > Resource not found",
> > while I expected to find my custom error page.
> >
> > Coccon processes a request which begins with "mysite" and, according to
> > the "2 asterisks rule", the mounted pipeline is executed.
> > But there isn't a pattern that matches the request, an error occurs.
> > So why my custom handler isn't processed?
> >
> > Where I'm wrong?
> >
> > Cocoon 2.0.3 - Tomcat 4.1.12 - j2sdk1.4.0 - Win2k server



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




FIND !!!!!!!!

2002-12-16 Thread Hong Gia Dinh
Title: FIND SOURCE



Hi 
all,
Where 
can i find these files :, are they published freely ??
http://apache.org/xsp/log ; http://apache.org/cocoon/i18n/2.0, 
http://apache.org/xsp; 
http://apache.org/xsp/request/2.0
http://apache.org/xsp/form-validator/2.0
Please show me!!
thanks very much
GD
 

   


Re: AW: change data between java-action and html-pages

2002-12-16 Thread Thor Heinrichs-Wolpert
You can see it online at
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform- 
wizard.html
or if you get the latest cocoon from cvs at
http://localhost:8080/cocoon/documents/howto/xmlform-wizard/howto- 
xmlform-wizard.html

Cheers,
Thor HW
On Monday, December 16, 2002, at 12:05  AM, Christoph Stocker wrote:

hi!

thank you.

are the xmlforms implemented in cocoon.
i read about the xmlforms implemented in cocoon 2.1, is this correct?
or where can i get else information about the xmlforms?

greetings, chris


-Ursprüngliche Nachricht-
Von: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 16. Dezember 2002 02:24
An: '[EMAIL PROTECTED]'
Betreff: AW: change data between java-action and html-pages


Hello Chris,

I'm just wondering why you are not using the xmlforms, they provide  
data

storage for the multiple forms, have a flow logic and using the xforms
for
generating form elements. So there is no need to write an own action,  
in
my
opinion as long as you are not need too specific tasks to be
accomplished
with these action.

ciao Lars

-Ursprüngliche Nachricht-
Von: Christoph Stocker [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 16. Dezember 2002 02:12
An: [EMAIL PROTECTED]
Betreff: AW: change data between java-action and html-pages


hi!

what i have forgotten is, that i want to store information over
muliple pages and i thougth i can use a bean for this data-storing.

greetings, chris

-Ursprüngliche Nachricht-
Von: giacomo@lapgp [mailto:giacomo@lapgp] Im Auftrag von Giacomo Pati
Gesendet: Sonntag, 15. Dezember 2002 17:29
An: [EMAIL PROTECTED]
Betreff: Re: change data between java-action and html-pages


On Sun, 15 Dec 2002, Christoph Stocker wrote:


hi!

i have a java-action, which in every call say what's the

next page and


do some other data controlling.

no i want to share the date, generated in my action, with my
xsp-pages. whats the best way to share this date (in the session
object?)

is there another possibility, maybe a bean defined in the

sitemap and

can be filled in the action and read out in my xsp-pages.


i don't want to use cookies!!!


Why don't you use the request object than?

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



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




AW: change data between java-action and html-pages

2002-12-16 Thread Kirchhoff, Lars
get the latest cvs from cocoon. then you will find it at
http://localhost/cocoon/samples/xmlform/overview.html

ciao Lars

> -Ursprüngliche Nachricht-
> Von: Christoph Stocker [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 16. Dezember 2002 16:05
> An: [EMAIL PROTECTED]
> Betreff: AW: change data between java-action and html-pages
> 
> 
> hi!
> 
> thank you. 
> 
> are the xmlforms implemented in cocoon.
> i read about the xmlforms implemented in cocoon 2.1, is this correct?
> or where can i get else information about the xmlforms?
> 
> greetings, chris
> 
> 
> -Ursprüngliche Nachricht-
> Von: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] 
> Gesendet: Montag, 16. Dezember 2002 02:24
> An: '[EMAIL PROTECTED]'
> Betreff: AW: change data between java-action and html-pages
> 
> 
> Hello Chris, 
> 
> I'm just wondering why you are not using the xmlforms, they 
> provide data
> 
> storage for the multiple forms, have a flow logic and using the xforms
> for 
> generating form elements. So there is no need to write an own 
> action, in
> my 
> opinion as long as you are not need too specific tasks to be
> accomplished 
> with these action.
> 
> ciao Lars
> 
> > -Ursprüngliche Nachricht-
> > Von: Christoph Stocker [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 16. Dezember 2002 02:12
> > An: [EMAIL PROTECTED]
> > Betreff: AW: change data between java-action and html-pages
> > 
> > 
> > hi!
> > 
> > what i have forgotten is, that i want to store information over 
> > muliple pages and i thougth i can use a bean for this data-storing.
> > 
> > greetings, chris
> > 
> > -Ursprüngliche Nachricht-
> > Von: giacomo@lapgp [mailto:giacomo@lapgp] Im Auftrag von 
> Giacomo Pati
> > Gesendet: Sonntag, 15. Dezember 2002 17:29
> > An: [EMAIL PROTECTED]
> > Betreff: Re: change data between java-action and html-pages
> > 
> > 
> > On Sun, 15 Dec 2002, Christoph Stocker wrote:
> > 
> > > hi!
> > >
> > > i have a java-action, which in every call say what's the
> > next page and
> > 
> > > do some other data controlling.
> > >
> > > no i want to share the date, generated in my action, with my
> > > xsp-pages. whats the best way to share this date (in the session 
> > > object?)
> > >
> > > is there another possibility, maybe a bean defined in the
> > sitemap and
> > > can be filled in the action and read out in my xsp-pages.
> > >
> > >
> > > i don't want to use cookies!!!
> > 
> > Why don't you use the request object than?
> > 
> > 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]>
> > 
> > 
> > 
> > 
> -
> > 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]>




AW: change data between java-action and html-pages

2002-12-16 Thread Christoph Stocker
hi!

thank you. 

are the xmlforms implemented in cocoon.
i read about the xmlforms implemented in cocoon 2.1, is this correct?
or where can i get else information about the xmlforms?

greetings, chris


-Ursprüngliche Nachricht-
Von: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 16. Dezember 2002 02:24
An: '[EMAIL PROTECTED]'
Betreff: AW: change data between java-action and html-pages


Hello Chris, 

I'm just wondering why you are not using the xmlforms, they provide data

storage for the multiple forms, have a flow logic and using the xforms
for 
generating form elements. So there is no need to write an own action, in
my 
opinion as long as you are not need too specific tasks to be
accomplished 
with these action.

ciao Lars

> -Ursprüngliche Nachricht-
> Von: Christoph Stocker [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 16. Dezember 2002 02:12
> An: [EMAIL PROTECTED]
> Betreff: AW: change data between java-action and html-pages
> 
> 
> hi!
> 
> what i have forgotten is, that i want to store information over 
> muliple pages and i thougth i can use a bean for this data-storing.
> 
> greetings, chris
> 
> -Ursprüngliche Nachricht-
> Von: giacomo@lapgp [mailto:giacomo@lapgp] Im Auftrag von Giacomo Pati
> Gesendet: Sonntag, 15. Dezember 2002 17:29
> An: [EMAIL PROTECTED]
> Betreff: Re: change data between java-action and html-pages
> 
> 
> On Sun, 15 Dec 2002, Christoph Stocker wrote:
> 
> > hi!
> >
> > i have a java-action, which in every call say what's the
> next page and
> 
> > do some other data controlling.
> >
> > no i want to share the date, generated in my action, with my
> > xsp-pages. whats the best way to share this date (in the session 
> > object?)
> >
> > is there another possibility, maybe a bean defined in the
> sitemap and
> > can be filled in the action and read out in my xsp-pages.
> >
> >
> > i don't want to use cookies!!!
> 
> Why don't you use the request object than?
> 
> 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]>
> 
> 
> 
> -
> 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]>