Encoding in HSSF Serializer

2002-04-02 Thread Sozonnik Andrew

Hello all !

Does anybody have experience in using national characters in HSSF
Serializer ?
I have a problem with Russian symbols in UTF-8.

With respect,
Sozonnik Andrew.


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

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




Livesites

2002-04-02 Thread Montier Patrick


The web site http://www.bethe1.com "the worldwide employment specialist in FASHION, 
BEAUTY and selective RETAIL." has been developped with cocoon 2 / Postgresql in 
French, English and Japanese languages.

Patrick Montier - Easance.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]>




Urgent: Error in SunRise authentication logout Action

2002-04-02 Thread Chitharanjan Das








Hello,

    Whwn the logout action is activated a NullPointer
exception is thrown. Upon investigation the error occurs in the following line
of code in SunRise.java

 

(SessionContextImpl)this.getSunShineComponent().getContext(Constants.SESSION_CONTEXT_NAME)).cleanParametersCache(logoutHandlerName);.

 

Upon commenting this line  and
regenerating the scratchpad.jar. The logout pipeline
functions properly.

 

Please comment and look at the validity
of the code

    this.getSunShineComponent().getContext(Constants.SESSION_CONTEXT_NAME
returns a null

 

Regds,

Chiths

 

accordia,
inc 

34347 Maybird Circle

Fremont, CA 94555



650
279 1137

[EMAIL PROTECTED]

 

The information contained
in this communication is intended solely for the use of the individual or
entity to whom it is addressed and others authorized to receive it. It may
contain confidential or legally privileged information. If you are not the
intended recipient you are hereby notified that any disclosure, copying,
distribution or taking any action in reliance on the contents of this
information is strictly prohibited and may be unlawful. If you have received
this communication in error, please notify us immediately by responding to this
email and then delete it from your system. Accordia Inc.
is neither liable for the proper and incomplete transmission of the information
contained in this communication nor for any delay in its receipt

 








Re: fo2pdf serializer

2002-04-02 Thread cyril vidal

HI!

Thanks a lot for all your tips! That's the result of my experiments:
first, I've done what Stijn told to me: so remplace fop 0.20.3rc.jar by
fop.jar of FOP 0.20.3
It's running by calling the URL http:/localhost:8080/essai/CinemaFO.xml only
with Netscape6
(with IE6, I still have a white page!)

So, after, I followed Andrew's tip: I changed my pattern to 
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 9:56 PM
Subject: Re: fo2pdf serializer


>
>
> I had a similar problem, my stylesheet was running from command line and
> produced the pdf.
> Within cocoon it gave some errors and produced no output.
>
> I changed the fop jar from cocoon (version 0.20.3rc with the latest
> version 0.20.3 ) and everything was running again !
>
>
>
> On Tue, 2 Apr 2002, cyril vidal wrote:
>
> > Good evening,
> >
> > I've got problems with transforming an xml document (CinemaFO.xml) into
a pdf one (CinemaFO.pdf) via an xslt transformation (CinemaFO.xsl).
> > I'm sure CinemaFO.xml and Cinema.xsl are valid because I've tested them
by command line with fop 0.20.3
> >
> > To test my samples with Cocoon2, I've created a new clean environment,
also a new directory under $CATALINA_HOME/webapps/ , e.g. essai.
> > Under essai, I've created  the following repertory structure:  /static
(including the file CinemaFO.xml and index.html) and transforms(including
the file CinemaFO.xsl), and I've also copied over both
$COCOON_HOME/cocoon.xconf and the $COCOON_HOME/WEB-INF directory.
> >
> > The structure of my sitemap.xmap file (in directory essai) is following:
> >
> > 
> >   
> >  
> > 
> >  
> >   
> >
> >   
> > 
> >   
> >   
> >
> > 
> >   
> >
> > Theres is no problem with serving static document index.html.
> > But when I try to perform the xslfo transformation by requesting the
URL:http://localhost:8080/essai/CinemaFO.xml, I've got any message error (It
means the server finds the files) but the browser (IE6) stays completely
white. With Netscape 6, the browser opens Acrobat reader, but there's a
message error, that indicates that an error occured at the opening of the
pdf document.
> >
> > What do you think is wrong?
> > Thanks a lot for your answers,
> > Cyril.
> >
> >
>
> --
>
> Stijn Van Vreckem
>
>
>
>
>
> -
> Please check that your 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: fo2pdf serializer

2002-04-02 Thread Andrew Russell



Hi I saw that your request ends with 
.xml,
That can be a problem with pdfs in IE.
(Not my own experience, but an advantage of being a 
lurker here)
 
So the problem should be fixed by you by using the 
url
http://localhost:8080/essai/CinemaFO.xml&t=.pdf
Or changing your pattern to 
 
Andrew

  - Original Message - 
  From: 
  cyril 
  vidal 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, April 03, 2002 6:16 
  AM
  Subject: fo2pdf serializer
  
  Good evening,
   
  I've got problems with transforming 
  an xml document (CinemaFO.xml) into a pdf one (CinemaFO.pdf) via an xslt 
  transformation (CinemaFO.xsl).
  I'm sure CinemaFO.xml and 
  Cinema.xsl are valid because I've tested them by command line with fop 
  0.20.3
   
  To test my samples with Cocoon2, 
  I've created a new clean environment, also a new directory under 
  $CATALINA_HOME/webapps/ , e.g. essai. 
  Under essai, I've 
  created  the following repertory structure:  /static 
  (including the file CinemaFO.xml and index.html) and transforms(including the 
  file CinemaFO.xsl), and I've also copied over both $COCOON_HOME/cocoon.xconf 
  and the $COCOON_HOME/WEB-INF directory.
   
  The structure of my sitemap.xmap 
  file (in directory essai) is following:
   
    
       
   
    
   
    
          
     
      
    
   
  Theres is no problem with serving 
  static document index.html.
  But when I try to perform the xslfo 
  transformation by requesting the 
  URL:http://localhost:8080/essai/CinemaFO.xml, I've got any message error 
  (It means the server finds the files) but the browser (IE6) stays 
  completely white. With Netscape 6, the browser opens Acrobat reader, but 
  there's a message error, that indicates that an error occured at the opening 
  of the pdf document.
   
  What do you think is 
  wrong?
  Thanks a lot for your 
  answers,
  Cyril.
   


Livesites

2002-04-02 Thread Wes Morgan

The Christian Classics Ethereal Library is now using Cocoon 2 to 
transform ThML (an XML application) documents into HTML, PDF, plain text 
and OEB. Check it out at http://www.ccel.org

Wes Morgan
XML Developer - ccel.org


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

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




Re: fo2pdf serializer

2002-04-02 Thread Stijn Van Vreckem



I had a similar problem, my stylesheet was running from command line and 
produced the pdf. 
Within cocoon it gave some errors and produced no output. 

I changed the fop jar from cocoon (version 0.20.3rc with the latest 
version 0.20.3 ) and everything was running again ! 
  


On Tue, 2 Apr 2002, cyril vidal wrote:

> Good evening,
> 
> I've got problems with transforming an xml document (CinemaFO.xml) into a pdf one 
>(CinemaFO.pdf) via an xslt transformation (CinemaFO.xsl).
> I'm sure CinemaFO.xml and Cinema.xsl are valid because I've tested them by command 
>line with fop 0.20.3
> 
> To test my samples with Cocoon2, I've created a new clean environment, also a new 
>directory under $CATALINA_HOME/webapps/ , e.g. essai. 
> Under essai, I've created  the following repertory structure:  /static (including 
>the file CinemaFO.xml and index.html) and transforms(including the file 
>CinemaFO.xsl), and I've also copied over both $COCOON_HOME/cocoon.xconf and the 
>$COCOON_HOME/WEB-INF directory.
> 
> The structure of my sitemap.xmap file (in directory essai) is following:
> 
> 
>   
>  
> 
>  
>   
> 
>   
> 
>   
>   
>
> 
>   
> 
> Theres is no problem with serving static document index.html.
> But when I try to perform the xslfo transformation by requesting the 
>URL:http://localhost:8080/essai/CinemaFO.xml, I've got any message error (It means 
>the server finds the files) but the browser (IE6) stays completely white. With 
>Netscape 6, the browser opens Acrobat reader, but there's a message error, that 
>indicates that an error occured at the opening of the pdf document.
> 
> What do you think is wrong?
> Thanks a lot for your answers,
> Cyril.
> 
> 

-- 

Stijn Van Vreckem





-
Please check that your 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 self written user components with cocoon2

2002-04-02 Thread Vadim Gritsenko

Take a look at the web.xml:



Might be of help to you.

Vadim

> From: Pierre-Alexandre Losson [mailto:[EMAIL PROTECTED]]
> 
> Hi folks,
> 
> Since Cocoon2 is based on Avalon & Excalibur, how do I use
> cocoon's component manager in the custom java classes used in a
web-app.
> 
> I saw that a "manager" handle was available in an XSP, but how do I
access
> the
> component manager from a pure java class I wrote myself ?
> 
> I think I can modify the cocoon.roles file, add a configuration entry
> in cocoon.xconf so that cocoon will initialize my component for me and
that
> way I will have access to it's component manager but this seems not
very
> "clean" to me
> 
> Is there any other way to do this ?
> 
> Pierre
> 


-
Please check that your 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: fo2pdf serializer

2002-04-02 Thread cyril vidal

Sorry, but what is SSL?
I think the answer is no...
- Original Message -
From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 8:25 PM
Subject: Re: fo2pdf serializer


> I've had your same problem using SSL on Tomcat, and it goes away with the
> normal connector.
> The really strange thing, though, is that the test svg from the Cocoon
> webapp *works* under SSL!
>
> Are you using SSL?
>
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -
>
> - Original Message -
> From: cyril vidal
> To: [EMAIL PROTECTED]
> Sent: Tuesday, April 02, 2002 8:16 PM
> Subject: fo2pdf serializer
>
>
> Good evening,
>
> I've got problems with transforming an xml document (CinemaFO.xml) into a
> pdf one (CinemaFO.pdf) via an xslt transformation (CinemaFO.xsl).
> I'm sure CinemaFO.xml and Cinema.xsl are valid because I've tested them by
> command line with fop 0.20.3
>
> To test my samples with Cocoon2, I've created a new clean environment,
also
> a new directory under $CATALINA_HOME/webapps/ , e.g. essai.
> Under essai, I've created  the following repertory structure:  /static
> (including the file CinemaFO.xml and index.html) and transforms(including
> the file CinemaFO.xsl), and I've also copied over both
> $COCOON_HOME/cocoon.xconf and the $COCOON_HOME/WEB-INF directory.
>
> The structure of my sitemap.xmap file (in directory essai) is following:
>
> 
>   
>  
> 
>  
>   
>
>   
> 
>   
>   
>
> 
>   
>
> Theres is no problem with serving static document index.html.
> But when I try to perform the xslfo transformation by requesting the
> URL:http://localhost:8080/essai/CinemaFO.xml, I've got any message error
(It
> means the server finds the files) but the browser (IE6) stays completely
> white. With Netscape 6, the browser opens Acrobat reader, but there's a
> message error, that indicates that an error occured at the opening of the
> pdf document.
>
> What do you think is wrong?
> Thanks a lot for your answers,
> Cyril.
>
>
> -
> Please check that your 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: XSLT and international characters in parameters

2002-04-02 Thread Vadim Gritsenko

> From: Tomasz Bech [mailto:[EMAIL PROTECTED]]
> 
> Hi all,
>   I found some request about this problem, but no answer.
>   Problem is: when form is in utf8, parameters are encoded as
utf8. But
> server always wants to treat them as iso-something.
> In XSP remedy is:
> 
>   ^^^

Yup.


> But problem appears when I try to use parameters in xsl (as  name='searchtext/>). No idea how to set encoding to proper one?

Try custom action.

 
> More questions:
> 2. Why server doesn't understand encoding of request parameters?

Sounds like question to your server. Is it tomcat? Try tomcat docs/user
list.


> 3. How to set encoding of request globaly (for all and forever)?

You can change encoding of the JVM if you either change locale of the OS
or provide "-D" parameter on the startup of the JVM (see JDK docs)

Vadim

>   Thanks,
>   Tomasz
> 


-
Please check that your 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: Is it possible to use the logicsheet as well within stylesheets?

2002-04-02 Thread Vadim Gritsenko

Harald (a000),

Short answer: No.

Long answer: Take a look at the samples, in particular in sub/xsl-cocoon
for sample of dynamically generated XSLT (that's what you are looking
for).

One note: Your XSLT is not valid, greeting prefix is not defined.

PS It is assumed that you know well XML, XML namespaces, and XSLT when
you are working with Cocoon.

Vadim

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Hello!
> 
> I'm new using cocoon and I just got running the example
'greeting3.xml'
> using 'logicsheet.greeting.xsl' as taglib transformed with the
stylesheet
> 'greeting.xsl'. I was using cocoon 2.
> (http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html)
> 
> This example uses the logicsheet within the xsp-file 'greeting3.xml'.
Is it
> possible to use the logicsheet as well within stylesheets?
> 
> Here is my idea:
> 
> greeting.xsl
> 
> 
> http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> 
> 
> 
> 
>   
> 
>   
> 
>   
>   2nd time: 
>   
> 
> 
> 
> 
> 
> 
> 
> If I have it processed I get the following result:
> 
> 
> 
>   
>  Hello, world!
>   
> 
>   2nd time: 
> 
> 
> 
> 
> As you can see the reference to the logicsheet within the stylesheet
didn't
> get resolved. (The output is the plain tag instead of the
hello-message from
> the logicsheet.
> 
> 
> The transformed output should be something like this:
> 
> 
> 
>   
> Hello, world!
>   
> 
>   2nd time:  Hello, world!
> 
>  
> 
> 
> Thanks for your comments!
> 
> Harald
> 
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net



-
Please check that your 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: fo2pdf serializer

2002-04-02 Thread Nicola Ken Barozzi

I've had your same problem using SSL on Tomcat, and it goes away with the
normal connector.
The really strange thing, though, is that the test svg from the Cocoon
webapp *works* under SSL!

Are you using SSL?

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-

- Original Message -
From: cyril vidal
To: [EMAIL PROTECTED]
Sent: Tuesday, April 02, 2002 8:16 PM
Subject: fo2pdf serializer


Good evening,

I've got problems with transforming an xml document (CinemaFO.xml) into a
pdf one (CinemaFO.pdf) via an xslt transformation (CinemaFO.xsl).
I'm sure CinemaFO.xml and Cinema.xsl are valid because I've tested them by
command line with fop 0.20.3

To test my samples with Cocoon2, I've created a new clean environment, also
a new directory under $CATALINA_HOME/webapps/ , e.g. essai.
Under essai, I've created  the following repertory structure:  /static
(including the file CinemaFO.xml and index.html) and transforms(including
the file CinemaFO.xsl), and I've also copied over both
$COCOON_HOME/cocoon.xconf and the $COCOON_HOME/WEB-INF directory.

The structure of my sitemap.xmap file (in directory essai) is following:


  
 

 
  

  

  
  
   

  

Theres is no problem with serving static document index.html.
But when I try to perform the xslfo transformation by requesting the
URL:http://localhost:8080/essai/CinemaFO.xml, I've got any message error (It
means the server finds the files) but the browser (IE6) stays completely
white. With Netscape 6, the browser opens Acrobat reader, but there's a
message error, that indicates that an error occured at the opening of the
pdf document.

What do you think is wrong?
Thanks a lot for your answers,
Cyril.


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

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




fo2pdf serializer

2002-04-02 Thread cyril vidal



Good evening,
 
I've got problems with transforming 
an xml document (CinemaFO.xml) into a pdf one (CinemaFO.pdf) via an xslt 
transformation (CinemaFO.xsl).
I'm sure CinemaFO.xml and Cinema.xsl 
are valid because I've tested them by command line with fop 0.20.3
 
To test my samples with Cocoon2, I've 
created a new clean environment, also a new directory under 
$CATALINA_HOME/webapps/ , e.g. essai. 
Under essai, I've 
created  the following repertory structure:  /static 
(including the file CinemaFO.xml and index.html) and transforms(including the 
file CinemaFO.xsl), and I've also copied over both $COCOON_HOME/cocoon.xconf and 
the $COCOON_HOME/WEB-INF directory.
 
The structure of my sitemap.xmap file 
(in directory essai) is following:
 
  
     
 
  
 
  
        
   
    
  
 
Theres is no problem with serving 
static document index.html.
But when I try to perform the xslfo 
transformation by requesting the 
URL:http://localhost:8080/essai/CinemaFO.xml, I've got any message error 
(It means the server finds the files) but the browser (IE6) stays 
completely white. With Netscape 6, the browser opens Acrobat reader, but there's 
a message error, that indicates that an error occured at the opening of the pdf 
document.
 
What do you think is 
wrong?
Thanks a lot for your 
answers,
Cyril.
 


RE: XSLT - processing XML from a database field problem

2002-04-02 Thread vgritsenko

Florent,

I hope you understand that your solution (btw this is FAQ of the week - several other 
people on the list also using util logichsheet) has some overhead of extra parsing 
step(s) - especially if you have a lot of 

If you need to produce just one tag, it would be *much* more faster if you use content 
handler.

Regards,
Vadim

> From: Florent Soulire [mailto:[EMAIL PROTECTED]]
> 
> My final answer!!!
> 
> Finally, after 3 days of work, I found a replacement solution for the 
> unescaping problem. The tip is to put SQL Transformer away, and to
take the
> advantage of both the ESQL Logicsheet and the Util Logicsheet in the 
> generating XSP page.
> 
> Here is how the XSP page looks like:
> 
> 
> language="java"
>xmlns:xsp="http://apache.org/xsp";
>xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>xmlns:util="http://apache.org/xsp/util/2.0";
>xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> 
>private String getUnescapedTag(String tag, String str)
>{
>  
>}
> 
> 
> 
>BDConnection
>
>  
>  
>
>  
>
>column="nomClient_TXT"/> 
>  expr>getUnescapedTag("resume_txt",
>  column="resume_TXT"/>) 
> ...
>
>  
>
>  
>  
> Sorry, no results!
>  
>
> 
> 
> 
> 

...

> Now you can enjoy...
> 
> I know this is not the best answer, as long as the design of the
pipeline
> is modified. But it is the only thing I found...
> 
> 
> Florent, Soulire
> Stagiaire e-Technologies
> T-Systems Soleri
> Groupe Deutsche Telekom
> Notre mtier: la convergence informatique et tlcoms Convergence is 
> our Business
>

> tl.:+33 4 37 65 24 26
> fax:+33 4 37 65 22 31
> mail:   [EMAIL PROTECTED]
>

> www.t-systems.fr
...

-
Please check that your 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 self written user components with cocoon2

2002-04-02 Thread Pierre-Alexandre Losson

Hi folks,

Since Cocoon2 is based on Avalon & Excalibur, how do I use
cocoon's component manager in the custom java classes used in a web-app.

I saw that a "manager" handle was available in an XSP, but how do I access
the
component manager from a pure java class I wrote myself ?

I think I can modify the cocoon.roles file, add a configuration entry
in cocoon.xconf so that cocoon will initialize my component for me and that
way I will have access to it's component manager but this seems not very
"clean" to me

Is there any other way to do this ?

Pierre





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

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




XSLT and international characters in parameters

2002-04-02 Thread Tomasz Bech

Hi all,
I found some request about this problem, but no answer.
Problem is: when form is in utf8, parameters are encoded as utf8. But 
server always wants to treat them as iso-something.
In XSP remedy is:

  ^^^

But problem appears when I try to use parameters in xsl (as http://xml.apache.org/cocoon/faqs.html>

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




Re: XSLT - processing XML from a database field problem

2002-04-02 Thread Florent Soulière

And more: notice that when you replace  by 
, the  tags are still unescaped, unlike with 
apply-templates. The problem seems to be in this apply-templates stuff, but 
who/where/when???

Florent.

At 13:01 02/04/02 +0200, you wrote:
>Florent
>
>I cannot get this to work - when I try and apply the first sheet
>to the results of the database query (via the XSP page), then
>it works great!  e.g. a  in the database field is kept as such
>in the generated XML.  However, as soon as I apply the final
>sheet (to generate the HTML), then the  becomes 
>again.
>
>Any ideas on how to avoid this?
>
>Thanks
>Derek
>
> >>> [EMAIL PROTECTED] 02/04/2002 10:16:19 >>>
>Sorry, there is a little mistake in the source of resume_long.txt:
>replace the line containingselect="sql:resumelong_txt/*"/>
>with
>
>
>-
>Please check that your 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: XSLT - processing XML from a database field problem


At 13:01 02/04/02 +0200, you wrote:
>Florent
>
>I cannot get this to work - when I try and apply the first sheet
>to the results of the database query (via the XSP page), then
>it works great!  e.g. a  in the database field is kept as such
>in the generated XML.  However, as soon as I apply the final
>sheet (to generate the HTML), then the  becomes 
>again.
>
>Any ideas on how to avoid this?

Yes! you've got it! it is *the* problem. I don't know where it comes from 
(cocoon, sax, or others), but this is very annoying...

Thank you in advance.

Florent.

>Thanks
>Derek
>
> >>> [EMAIL PROTECTED] 02/04/2002 10:16:19 >>>
>Sorry, there is a little mistake in the source of resume_long.txt:
>replace the line containingselect="sql:resumelong_txt/*"/>
>with
>
>
>-
>Please check that your 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]>




Is it possible to use the logicsheet as well within stylesheets?


Hello!

I'm new using cocoon and I just got running the example 'greeting3.xml'
using 'logicsheet.greeting.xsl' as taglib transformed with the stylesheet
'greeting.xsl'. I was using cocoon 2.
(http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html)

This example uses the logicsheet within the xsp-file 'greeting3.xml'. Is it
possible to use the logicsheet as well within stylesheets? 

Here is my idea:

greeting.xsl


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




  

  
  
  
2nd time: 
  







If I have it processed I get the following result:



  
 Hello, world!
  
  
2nd time: 




As you can see the reference to the logicsheet within the stylesheet didn't
get resolved. (The output is the plain tag instead of the hello-message from
the logicsheet.


The transformed output should be something like this:



  
Hello, world!
  
  
  2nd time:  Hello, world!
  
 

  
Thanks for your comments!

Harald

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
Please check that your 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: XInclude - optimization/alternatives to


Thanks, that's pretty much what I ended up doing the day before yesterday. I
include the stuff only once, then use the site map to pass it through a
final transformation which handles the precise placement of display
elements.

One more lesson learnt in XSL! :)

Sreedhar

-Original Message-
From: Axel Honfi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:09 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: XInclude - optimization/alternatives to


Hi!

I would first generate the data(featured article) and then format it with
xslt. Another way would be to generate the content-page, then include the
data one time, and then format it with xslt. I have pipelines with up to
four xslt-transformations, because I think that's faster(especially if you
don't use params in the xslt) than multiple queries to a db.

Yes, and you can put xinclude in the content page, take a look at the
Xinclude-transformer.

Best Regards

Axel


-Original Message-
From: Sreedhar Chintalapaty [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 4:07 PM
To: Cocoon Users
Subject: XInclude - optimization/alternatives to


Hi all,

I am using XInclude to process a content page and place the title, author,
and article into different cells in a table.

Content File: featuredArticle.xml

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:dbtags=http://gvs/dbtags>

Fall in New Hampshire
The Itinerant Monk

blah-blah-blah
List of Hiking Trails




Style Sheet: formatter.xsl



http://localhost/cocoon/gvs/xsp/{$tab}/{$request-url}#xpointer(//title
)"/>




http://localhost/cocoon/gvs/xsp/{$tab}/{$request-url}#xpointer(//autho
r)"/>




http://localhost/cocoon/gvs/xsp/{$tab}/{$request-url}#xpointer(//artic
le)"/>




This does what I want it to do, but at a cost: The -entire-
featuredArticle.xml is loaded three times, parsed three times and, for the
get-list-of-trails tag, the database is queried three times - you get the
picture.

There must be a better way to do something like this... I would appreciate
any suggestions/advice/pointers...

Thanks, and Best Regards,

Sreedhar Chintalapaty

__
A computer is like an Old Testament god, with a lot of rules and no mercy -
Joseph Campbell


-
Please check that your 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: Session attribute change within aggregation


Roman,

Aggregation is being executed linearly, which means that first part is
executed before second. If first part contains an XSP and that XSP is
not cached, it could change session attribute which will be visible in
the second part's XSP (if it is not cached)

XSPs are not cacheable by default.

PS Use System.outs or  to see how it (doesn't) works.

Vadim

> From: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> Is it possible in Cocoon 2.01 to set session attribute within
> aggregation so that the change would be in a first part (xsp) and next
> part could use the new value of the changed attribute. It seems that
the
> new value is not available for the rest parts of aggregation within
the
> same request.
> If it is true, then how is it possible to make a branch comparing a
> request parameter's value with some session attribute's value?
> In particular, I'd like to store some parameter as a session attribute
> and if it is not changed then read query results stored as DOM in a
> session before, otherwise update query results. My xsp part of
> aggregation is the following:
> 
> 
> language="java"
>xmlns:xsp="http://apache.org/xsp";
>xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>xmlns:session="http://apache.org/xsp/session/2.0";
>xmlns:util="http://apache.org/xsp/util/2.0";
>create-session="true">
>  
>
>  String idList = (String) default=""/>;
>  String idListOld = (String) default=""/>;
>  String isChanged = (idList.equals(idListOld))?"no":"yes";
>
>
name="idList">idList attribute>
> 
>
name="isChanged">isChanged n:set-attribute>
> 
> 
>
idList ic>
> 
> 
>
isChanged sp:logic>
> 
>
> 
> 
> The second part of aggregation calls the following via cocoon://
> protocol:
> 
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> So the problem is that after changing idList parameter I have to call
> the aggregating pipeline twice (i.e. to make two requests from browser
> with the same idList parameter) to get an updated query result.
> 
> Thank you very much for any advice.
> Roman


-
Please check that your 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: Placing markup in xsp:logic code


Please constraint from using html mail. My comments below start with
'---'

Vadim

-Original Message-
From: von Schwerdtner, Thomas (GXS, FPI) 

Hello all, 
  I am trying to put some markup inside my xsp:logic, somewhat as
follows: 
 
String foo = "FOO"; 
 
Problem is, if I leave it as above, I get "content of elements must
consist of well-formed character data or markup" errors, if I use use
any alternate representations of < and > (HTML entities or placing the
whole thing in a CDATA block) then they are kept as such and are
displayed as such in the resulting HTML page (which is no good for me).

--- As I just wrote in the previous email, this is quite popular theme
now on the list. Look at util logicsheet and at the usage samples posted
to this list on this and last week.


Everything works fine without the  tags, so what can I do to get
some markup inside a java string inside some ?
I am using Cocoon 2.0.2 and the default compiler (Pizza I believe).  
I'm somewhat confused since some mails in the archives seem to indicate
that tags within " " should work OK 

--- No, you always have to escape < and > symbols in the XSP, either by
using CDATA section or by using < > entities. IIRC, this could be
seen in the XSP samples.

Vadim


TIA, 
-Tom 
:wq 


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

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




Session attribute change within aggregation


Hi,

Is it possible in Cocoon 2.01 to set session attribute within
aggregation so that the change would be in a first part (xsp) and next
part could use the new value of the changed attribute. It seems that the
new value is not available for the rest parts of aggregation within the
same request.
If it is true, then how is it possible to make a branch comparing a
request parameter's value with some session attribute's value?
In particular, I'd like to store some parameter as a session attribute
and if it is not changed then read query results stored as DOM in a
session before, otherwise update query results. My xsp part of
aggregation is the following:


http://apache.org/xsp";
   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
   xmlns:session="http://apache.org/xsp/session/2.0";
   xmlns:util="http://apache.org/xsp/util/2.0";
   create-session="true">
 
   
 String idList = (String);
 String idListOld = (String);
 String isChanged = (idList.equals(idListOld))?"no":"yes";
   
   idList

   isChanged


idList


isChanged

   


The second part of aggregation calls the following via cocoon://
protocol:


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


So the problem is that after changing idList parameter I have to call
the aggregating pipeline twice (i.e. to make two requests from browser
with the same idList parameter) to get an updated query result.

Thank you very much for any advice.
Roman


-
Please check that your 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: XInclude - optimization/alternatives to


Hi!

I would first generate the data(featured article) and then format it with
xslt. Another way would be to generate the content-page, then include the
data one time, and then format it with xslt. I have pipelines with up to
four xslt-transformations, because I think that's faster(especially if you
don't use params in the xslt) than multiple queries to a db.

Yes, and you can put xinclude in the content page, take a look at the
Xinclude-transformer.

Best Regards

Axel


-Original Message-
From: Sreedhar Chintalapaty [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 4:07 PM
To: Cocoon Users
Subject: XInclude - optimization/alternatives to


Hi all,

I am using XInclude to process a content page and place the title, author,
and article into different cells in a table.

Content File: featuredArticle.xml

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:dbtags=http://gvs/dbtags>

Fall in New Hampshire
The Itinerant Monk

blah-blah-blah
List of Hiking Trails




Style Sheet: formatter.xsl



http://localhost/cocoon/gvs/xsp/{$tab}/{$request-url}#xpointer(//title
)"/>




http://localhost/cocoon/gvs/xsp/{$tab}/{$request-url}#xpointer(//autho
r)"/>




http://localhost/cocoon/gvs/xsp/{$tab}/{$request-url}#xpointer(//artic
le)"/>




This does what I want it to do, but at a cost: The -entire-
featuredArticle.xml is loaded three times, parsed three times and, for the
get-list-of-trails tag, the database is queried three times - you get the
picture.

There must be a better way to do something like this... I would appreciate
any suggestions/advice/pointers...

Thanks, and Best Regards,

Sreedhar Chintalapaty

__
A computer is like an Old Testament god, with a lot of rules and no mercy -
Joseph Campbell


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

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




Placing markup in xsp:logic code

Title: Placing markup in xsp:logic code





Hello all,


  I am trying to put some markup inside my xsp:logic, somewhat as follows:



String foo = "FOO";



Problem is, if I leave it as above, I get "content of elements must consist of well-formed character data or markup" errors, if I use use any alternate representations of < and > (HTML entities or placing the whole thing in a CDATA block) then they are kept as such and are displayed as such in the resulting HTML page (which is no good for me).

Everything works fine without the  tags, so what can I do to get some markup inside a java string inside some ?

I am using Cocoon 2.0.2 and the default compiler (Pizza I believe).  


I'm somewhat confused since some mails in the archives seem to indicate that tags within " " should work OK


TIA,
-Tom
:wq





Re: XSLT - processing XML from a database field problem


My final answer!!!

Finally, after 3 days of work, I found a replacement solution for the 
unescaping problem. The tip is to put SQL Transformer away, and to take the 
advantage of both the ESQL Logicsheet and the Util Logicsheet in the 
generating XSP page.

Here is how the XSP page looks like:


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

   private String getUnescapedTag(String tag, String str)
   {
 
   }



   BDConnection
   
 
 
   
 
   
   
getUnescapedTag("resume_txt", 
) 
...
   
 
   
 
 
Sorry, no results!
 
   







Then, the sql2xml.xsl is not needed anymore, and here is the corrected 
sample of resume_long.xsl, the XML-to-FO stylesheet:

 

...
 














Now you can enjoy...

I know this is not the best answer, as long as the design of the pipeline 
is modified. But it is the only thing I found...


Florent, Soulière
Stagiaire e-Technologies
T-Systems Soleri
Groupe Deutsche Telekom
Notre métier: la convergence informatique et télécoms
Convergence is our Business

tél.:+33 4 37 65 24 26
fax:+33 4 37 65 22 31
mail:   [EMAIL PROTECTED]

www.t-systems.fr

At 14:45 02/04/02 +0200, you wrote:
>At 13:01 02/04/02 +0200, you wrote:
>>Florent
>>
>>I cannot get this to work - when I try and apply the first sheet
>>to the results of the database query (via the XSP page), then
>>it works great!  e.g. a  in the database field is kept as such
>>in the generated XML.  However, as soon as I apply the final
>>sheet (to generate the HTML), then the  becomes 
>>again.
>>
>>Any ideas on how to avoid this?
>
>Err... actually, this is *the* problem in all that.
>and please notice that when you replace   by 
>, you still get the unescaped  tags, as it 
>would be expected with apply-templates... would it be a 
>"apply-templates-specific" problem? what else could I do?
>
>Thank you in advance.
>
>Florent.
>
>>Thanks
>>Derek
>>
>> >>> [EMAIL PROTECTED] 02/04/2002 10:16:19 >>>
>>Sorry, there is a little mistake in the source of resume_long.txt:
>>replace the line containing>select="sql:resumelong_txt/*"/>
>>with
>>
>>
>>-
>>Please check that your 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]>
>
>Florent, Soulière
>Stagiaire e-Technologies
>T-Systems Soleri
>Groupe Deutsche Telekom
>Notre métier: la convergence informatique et télécoms
>Convergence is our Business
>
>tél.:+33 4 37 65 24 26
>fax:+33 4 37 65 22 31
>mail:   [EMAIL PROTECTED]
>
>www.t-systems.fr
>
>
>-
>Please check that your 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]>




form-validator and UTF-8 ???


When i use the form-validator section with an UTF-8 sql table having a login
and password (Mysql) , the cocoon process reject all non ascii records.

For example, all japanese fields are correctly managed in all xsp / xsl
pages but when registering, all french or japanese caracters are rejected. I
have no error but the process don't seem to retreive those records: If i do
manually the select,  it works.

How to declare in the sitemap.xmap that i want the form-validator to accept
utf-8 comparison and validation ?

(I use the 2.1-dev cocoon release).

Thanks for your great help.

Patrick Montier


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

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




redirection and parameters


Hi all!
I know that similar questions has got on this list, but I can't found
resolve of my trouble.
I need to:
1. make redirection from one pipeline to another.
2. add a few parameters to new pipeline request.

Is it possible?

I try:

 
  
   
   
  
 


 
   
   


 

 
  
 

 
  
 


   
  


When I try request form like:
http://localhost:8080/cocoon/myapp/employee?action=any
I want to pass to "message" resource one additional parameter
param=value
I try to do it as:

 
  
  
 
but it doesn't run. I don't want to do it as:
  

I have cocoon2.0.1.

What is the method to pass additional parameters with redirection?
Please help if it's possible.

Best regards

Jerzy Kut



-
Please check that your 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 1.8.2


Hi, I'm having the following error trying to access one .xml file, what
could be the problem?

Error found handling the request.
java.lang.RuntimeException: Cannot access non-file/war resources
 at org.apache.cocoon.Utils.getBasename(Utils.java:277)
 at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
a:76)
 at org.apache.cocoon.Engine.handle(Engine.java:359)
 at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)


Lic. Martin O. Mauri
Profesion + Auge A.F.J.P.
Parana 666 - CP:1017 - Cap. Federal
TE:(011)4373-7786/87 int 422
[EMAIL PROTECTED]
www.profesi.com.ar
www.martinmauri.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: Minimal Requirements


> From: Peter Robins [mailto:[EMAIL PROTECTED]]
> 
> Just tried this with 2.0.2: my docs etc plus core cocoon. However, it
tries
> to generate the cocoon documentation and the scratchpad as well, which
I
> don't want in my production environment. Is there a way to produce the
webapp
> without these (other than creating my own build.xml of course)?

It just compiles and packages scratchpad.jar, it isn't going into WAR if
no special option specified.

Or, you can rm -rf scratchpad/src/*

Vadim

> 
> On Sunday 24 Mar 2002 3:07 am, Vadim Gritsenko wrote:
> >
> > Here is the way (assuming you have source distribution):
> >
> > 1. build clean
> > 2. remove all JAR files you do not need from the lib/optional
(consult
> > installing/jars.xml document on the disk or on the xml.apache.org
site)
> > 3. remove all pipelines from the sitemap.xmap, leave one
map:pipeline
> > with at least map:generate, map:transform (optional), map:serialize.
You
> > may want to have one pipeline with the map:read also for static
> > resources.
> > 4. remove all unneeded components from the sitemap.xmap
> > 5. visit cocoon.xconf, check may be you do not need something there
also
> > (say, XSP language or certain XSP logicsheets)
> > 6. build -Dinclude.webapp.libs=yes webapp
> >
> > Here it is, Cocoon webapp as you want it.
> >
> > Regards,
> > Vadim
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your 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: Minimal Requirements


> From: Peter Davis [mailto:[EMAIL PROTECTED]] On Behalf Of Peter Davis
> 
> On Saturday 23 March 2002 19:07, Vadim Gritsenko wrote:
> > (consult
> > installing/jars.xml document on the disk or on the xml.apache.org
site)
> 
> The following packages in that file are listed as "not required" for
the
> Cocoon core, but I received fatal ClassNotFound exceptions when I
removed
> their .jar files:
> 
> maybeupload
> jstyle
> 
> Has this been updated lately and are these packages truly necessary?
>
> Note that I used the binary distribution, not the source.  Would
recompiling
> from source without those packages make them not required?

Yes. Exactly for this reason:

> 1. build clean
...
> 6. build -Dinclude.webapp.libs=yes webapp

Take care,
Vadim


> --
> Peter Davis
> Reserve your abuse for your true friends.
>  -- Larry Wall in <[EMAIL PROTECTED]>


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

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




RE: XSP multiple value processing [Was Re: Is it possible toprocess multiple value parameter in XSL?]


> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> 
> On a similar vein - is it possible to process multiple-values
> (say from a form) in an XSP page and, if yes, how?

This one sounds like basic question on Servlet API. Use either
request.getParameterValues or 


> (examples would be very useful ;-)

Example comes with Cocoon:
xml-cocoon2\src\webapp\docs\samples\xsp\request.xsp

Take care,
Vadim


> Thanks
> Derek
> 
> >>> [EMAIL PROTECTED] 01/04/2002 12:49:26 >>>
> Hi,
> 
> Is it possible to process multiple value parameter in XSL under Cocoon
> 2.01?
> For example, how to get all values of the tst parameter from the
> following request in xsl:
> http://localhost:8080/cocoon/test?tst=002&tst=004&tst=005
> 
> Thank you.
> Roman
> 


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

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




error building schecoon


My platform
Win2k
Tomcat 4.0.1
Cocoon CVS 2.0.3 (latest build of april 2nd 2002)

When I build the schecoon app I get
  [java] Expanding and compiling 
D:\cvs\xml-cocoon2\src\scratchpad\schecoon/.
/scheme/sitemap.scm...
  [java] Error during expand: Error in load: exception during nested call
  [java]   Error in load-native-library: sisc.modules.Regexp
  [java] Saving heap...
  [java] Heap saved.

When I start Tomcat I get an error
Loading heap null
Error loading heap:java.lang.NullPointerException 
java.lang.NullPointerException
 at 
org.apache.cocoon.components.flow.scheme.SchemeInterpreter.configure(SchemeInterpreter.java:64)
 at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
 at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
 at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467)
 at 
org.apache.cocoon.components.flow.InterpreterSelector.configure(InterpreterSelector.java:53)
 at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
 at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
 at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:167)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:269)
 at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1212)
 at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
 at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
 at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
 at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
 at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
 at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

I followed the guidelines in the readme file I found in the schecoon 
directory.  I even cleaned out cocoon cvs, cocoon build, cocoon webapp and 
tomcat work directory.
Does this have to do something with the platform?

Bert


-
Please check that your 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: XSLT - processing XML from a database field problem


At 13:01 02/04/02 +0200, you wrote:
>Florent
>
>I cannot get this to work - when I try and apply the first sheet
>to the results of the database query (via the XSP page), then
>it works great!  e.g. a  in the database field is kept as such
>in the generated XML.  However, as soon as I apply the final
>sheet (to generate the HTML), then the  becomes 
>again.
>
>Any ideas on how to avoid this?

Err... actually, this is *the* problem in all that.
and please notice that when you replace   by 
, you still get the unescaped  tags, as it 
would be expected with apply-templates... would it be a 
"apply-templates-specific" problem? what else could I do?

Thank you in advance.

Florent.

>Thanks
>Derek
>
> >>> [EMAIL PROTECTED] 02/04/2002 10:16:19 >>>
>Sorry, there is a little mistake in the source of resume_long.txt:
>replace the line containingselect="sql:resumelong_txt/*"/>
>with
>
>
>-
>Please check that your 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]>

Florent, Soulière
Stagiaire e-Technologies
T-Systems Soleri
Groupe Deutsche Telekom
Notre métier: la convergence informatique et télécoms
Convergence is our Business

tél.:+33 4 37 65 24 26
fax:+33 4 37 65 22 31
mail:   [EMAIL PROTECTED]

www.t-systems.fr


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

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




jaxp.properties HELP


HI!
I know this is not right place to ask, but I need example of jaxp.properties
file or some kind of explanation...


-
Please check that your 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: XSLT - processing XML from a database field problem


Florent

I cannot get this to work - when I try and apply the first sheet
to the results of the database query (via the XSP page), then
it works great!  e.g. a  in the database field is kept as such
in the generated XML.  However, as soon as I apply the final
sheet (to generate the HTML), then the  becomes 
again.

Any ideas on how to avoid this?

Thanks
Derek

>>> [EMAIL PROTECTED] 02/04/2002 10:16:19 >>>
Sorry, there is a little mistake in the source of resume_long.txt:
replace the line containing
with


-
Please check that your 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: newbie: convert http POST to XML


Hi Charles,

You can use request generator:



Best regards
Roman

charles gebhard wrote:

> greetings,
>
> i would like to convert a bunch of http POST params into an XML document
> (or stream) and pass the XML on to another server.  is this something that
> cocoon can accomplish?  there are many examples of cocoon transforming XML
> to HTML, but i'm sorta looking at going the opposite direction.
>
> we're creating a web service that only accepts and returns XML and are
> wondering if cocoon is the right piece of software to put between it and
> web browsers.  links to examples will be much appreciated!  thanks.
>
> -chuck
>
> -
> Please check that your 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: Transformation comma-point


Hello,

It is also possible to use translate function like this:



Best regards
Roman

Luca Morandini wrote:

> Ferran,
>
> one elegant way could be:
>
> 1) Define your format for numbers
>
> name="italy"
>   decimal-separator=","
>   grouping-separator="."
>   NaN="vuoto"
>  />
>
> 1) Apply it to the outputted numbers
>
> 
>
> Of course, I used this for the opposite reason (outputting commas instead of
> points)... but you got the idea :)
>
> Best regards,
>
> P.S.
> Next time use plain text, please.
>
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
> http://utenti.tripod.it/lmorandini/index.html
> -
>
> -Original Message-
> From: Ferran Urgell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 11:18 AM
> To: [EMAIL PROTECTED]
> Subject: Transformation comma-point
>
> Hi Cocooners!
>
> I've a problem:
> I'm getting xml from a database, but I'm getting some results (number
> results with decimals), but these results are in commas (ex. 123,34).
>
> Now I'm trying to make some transformation into svg, but don't accept the
> commas
> I need to change this commas to points...
>
> The question is: How I can do this ?
>
> Thanks
>
> Ferran Urgell
>
> -
> Please check that your 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: Transformation comma-point




There are some function in xsl to transform commas 
into points ?

  - Original Message - 
  From: 
  Nader S. Henein 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, April 02, 2002 11:25 
  AM
  Subject: RE: Transformation 
  comma-point
  
  you can use a 
  regular expression witch changes comas between numeric characters into "." but 
  this 
  will affect you 
  if you have something like 1,2,3,4 in a textual context as opposed to 
  numerical.
  
-Original Message-From: Ferran Urgell [mailto:[EMAIL PROTECTED]]Sent: 
Tuesday, April 02, 2002 1:18 PMTo: 
[EMAIL PROTECTED]Subject: Transformation 
comma-point
Hi Cocooners!
 
I've a problem:
I'm getting xml from a database, but I'm 
getting some results (number results with decimals), but these results are 
in commas (ex. 123,34).
 
Now I'm trying to make some transformation into 
svg, but don't accept the commas
I need to change this commas to 
points...
 
The question is: How I can do this 
?
 
Thanks
 
Ferran 
Urgell


RE: Transformation comma-point


Ferran,

one elegant way could be:

1) Define your format for numbers

 

1) Apply it to the outputted numbers



Of course, I used this for the opposite reason (outputting commas instead of
points)... but you got the idea :)


Best regards,

P.S.
Next time use plain text, please.

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-

-Original Message-
From: Ferran Urgell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Transformation comma-point


Hi Cocooners!

I've a problem:
I'm getting xml from a database, but I'm getting some results (number
results with decimals), but these results are in commas (ex. 123,34).

Now I'm trying to make some transformation into svg, but don't accept the
commas
I need to change this commas to points...

The question is: How I can do this ?

Thanks

Ferran Urgell


-
Please check that your 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: Transformation comma-point


I call this template to substitute ' with \' for javascripts.
You can change it to make it substitute other chars.

How I call it:


  '
  


The template:

  
   
   
   
 
   
 
   
   \'
   
 
 
   
 
 
   
 
   
 
 
   
 
   


--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


- Original Message -
From: Ferran Urgell
To: [EMAIL PROTECTED]
Sent: Tuesday, April 02, 2002 11:17 AM
Subject: Transformation comma-point


Hi Cocooners!

I've a problem:
I'm getting xml from a database, but I'm getting some results (number
results with decimals), but these results are in commas (ex. 123,34).

Now I'm trying to make some transformation into svg, but don't accept the
commas
I need to change this commas to points...

The question is: How I can do this ?

Thanks

Ferran Urgell


-
Please check that your 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: Session attribute -> database


On 28.Mar.2002 -- 10:22 AM, Alexander Kruth wrote:
> Hi!
> Is it possible to write a session-attribute to a database?

IMHO no, not using the database actions from main trunk. Database
actions in scratchpad support arbitrary sources.

Chris.

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

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

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




RE: Transformation comma-point




you can use a 
regular expression witch changes comas between numeric characters into "." but 
this 
will affect you 
if you have something like 1,2,3,4 in a textual context as opposed to 
numerical.

  -Original Message-From: Ferran Urgell 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 02, 2002 
  1:18 PMTo: [EMAIL PROTECTED]Subject: 
  Transformation comma-point
  Hi Cocooners!
   
  I've a problem:
  I'm getting xml from a database, but I'm getting 
  some results (number results with decimals), but these results are in commas 
  (ex. 123,34).
   
  Now I'm trying to make some transformation into 
  svg, but don't accept the commas
  I need to change this commas to 
  points...
   
  The question is: How I can do this ?
   
  Thanks
   
  Ferran 
Urgell


Transformation comma-point




Hi Cocooners!
 
I've a problem:
I'm getting xml from a database, but I'm getting 
some results (number results with decimals), but these results are in commas 
(ex. 123,34).
 
Now I'm trying to make some transformation into 
svg, but don't accept the commas
I need to change this commas to 
points...
 
The question is: How I can do this ?
 
Thanks
 
Ferran Urgell


Re: Minimal Requirements


On Saturday 23 March 2002 19:07, Vadim Gritsenko wrote:
> (consult
> installing/jars.xml document on the disk or on the xml.apache.org site)

The following packages in that file are listed as "not required" for the 
Cocoon core, but I received fatal ClassNotFound exceptions when I removed 
their .jar files:

maybeupload
jstyle

Has this been updated lately and are these packages truly necessary?

Note that I used the binary distribution, not the source.  Would recompiling 
from source without those packages make them not required?

-- 
Peter Davis
Reserve your abuse for your true friends.
 -- Larry Wall in <[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: Minimal Requirements


Just tried this with 2.0.2: my docs etc plus core cocoon. However, it tries 
to generate the cocoon documentation and the scratchpad as well, which I 
don't want in my production environment. Is there a way to produce the webapp 
without these (other than creating my own build.xml of course)?

On Sunday 24 Mar 2002 3:07 am, Vadim Gritsenko wrote:
>
> Here is the way (assuming you have source distribution):
>
> 1. build clean
> 2. remove all JAR files you do not need from the lib/optional (consult
> installing/jars.xml document on the disk or on the xml.apache.org site)
> 3. remove all pipelines from the sitemap.xmap, leave one map:pipeline
> with at least map:generate, map:transform (optional), map:serialize. You
> may want to have one pipeline with the map:read also for static
> resources.
> 4. remove all unneeded components from the sitemap.xmap
> 5. visit cocoon.xconf, check may be you do not need something there also
> (say, XSP language or certain XSP logicsheets)
> 6. build -Dinclude.webapp.libs=yes webapp
>
> Here it is, Cocoon webapp as you want it.
>
> Regards,
> Vadim

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

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