Re: java.lang.IndexOutOfBoundsException

2002-11-21 Thread Bertrand Delacretaz
On Friday 22 November 2002 07:44, Carsten Ziegeler wrote:
>. . .
> I don't know why, but my IDE didn't commit the changes yesterday,
> although it says that it did

FYI yesterday morning when I did a CVS update (from the command line ;-) to 
check the batik.jar, CVS said "waiting on lock from cziegeler" or something 
for some other files. Maybe this helps in finding out what happened.

-Bertrand

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

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




XSP caching with 2.1-dev

2002-11-21 Thread neil
Hi cocooners,
I'm just trying the CVS HEAD and have a problem with some of my old 2.0.3 XSP's which 
used to be cached for 30mins.

generateValidity() now has to return a org.apache.excalibur.source.SourceValidity 
instead of a
org.apache.cocoon.caching.CacheValidity.
I used to return org.apache.cocoon.caching.DeltaTimeCacheValidity(30, 0) to cache for 
30 mins.
Is there a new substitute for this or do I have to write my own?

P.S. I like the look of the XForm & flow stuff and the performance of xsltc!
Cheers,
Neil.


-
Please check that your 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: cant create pdfs

2002-11-21 Thread Thorsten Scherler
Hi Anton,

you're welcome!
If you use the code of the tutorial the problem will be the plugin of 
the client. Do you know anyone of this 1%? Ask her/him to setup the 
A.Reader again. I expect they then see your page.

King Regards
Thorsten

Anton Hughes wrote:
Hi Thorsten

Thanks for the reply!
The code I used is the exact code from the tutorial which can be found at
http://xml.apache.org/cocoon/howto/howto-html-pdf-publishing.htmld

I cut and pasted the code several times and each time got the same results.

I've also cut and pasted the code for sitemap.xmap file.

Regards
Anton

-Original Message-
From: Thorsten Scherler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:03 PM
To: [EMAIL PROTECTED]
Subject: Re: cant create pdfs


gidday mate,
Could not read resource
 > file:/C:/apache/Apache Tomcat 
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
 > java.lang.RuntimeException: org.apache.fop.apps.FOPException: 
'master-name'
 > for 'fo:page-sequence'matches no 'simple-page-master' or
 > 'page-sequence-master'
 >
I reckon that the .fo file is screwed. I mean did you use the exact file 
of the tutorial? It seems that in your fo:page-sequence you don't have a 
  'page-sequence-master' for that reason u get a internal server error.

But it would be nice to see your code.

Good on ya mate. Greetings to downunder.

Anton Hughes wrote:

Greetings

I'm just starting out with Cocoon and am having trouble getting it to


create


pdfs.  I have gone through the tutorial on how to make HTML/pdf docs and


it


works fine with making HTML docs from and xml file but not with PDFs - can
someone please advise me as to what I should do?

The error msg I recieve is this:
Cocoon 2 - Internal server error









type internal-server-error

message Could not read resource file:/C:/apache/Apache Tomcat
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml

description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/apache/Apache Tomcat


4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:


java.lang.RuntimeException: org.apache.fop.apps.FOPException:


'master-name'


for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

exception

org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/apache/Apache Tomcat


4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:


java.lang.RuntimeException: org.apache.fop.apps.FOPException:


'master-name'


for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'

request-uri

/cocoon/mount/html-pdf/pageOne.pdf

stacktrace

org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/apache/Apache Tomcat


4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:


java.lang.RuntimeException: org.apache.fop.apps.FOPException:


'master-name'


for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'
	at



org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)


	at



org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv


entPipeline.java:210)
	at



org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS


treamPipeline.java:350)
	at



org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.wildcardMatchN40002E(sitem


ap_xmap.java:555)
	at



org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:


342)
	at



org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:


295)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at



org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400251(sitemap_xmap.java:34


13)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2646)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2448)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at



org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application


FilterChain.java:247)
	at



org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh


ain.java:193)
	at



org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja


va:243)
	at



org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


66)
	at



org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)


	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at



org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja


va:190)
	at



org.apache.catalina.core.StandardPipeline.invo

RE: java.lang.IndexOutOfBoundsException

2002-11-21 Thread Carsten Ziegeler
Ok, sorry for this - I just committed the missing line.
I don't know why, but my IDE didn't commit the changes yesterday,
although it says that it did. Wired. So, don't rely on tools
and always make sure that everything went as it should have
been.

Sorry
Carsten

> -Original Message-
> From: Marcus Crafter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 7:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: java.lang.IndexOutOfBoundsException
> 
> 
> Hi Gernot,
> 
>   I've located the problem but aren't 100% sure about what 
> the proper fix
>   is as I think Carsten is still working on the code. I've already
>   contacted him about the problem so I'm sure it will be fixed soon.
>   
>   In the meantime you can change the removeLastSitemapConfiguration() 
>   method in CocoonComponentManager to look like:
>   
> void removeLastSitemapConfiguration() {
>   if (this.sitemapConfigurations.size() > 0)
> 
> this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1);
> } 
>   
>   and it will let you continue working. A proper fix will appear
>   shortly.
>   
>   Hope that helps.
>   
>   Cheers,
>   
>   Marcus
>   
> On Thu, Nov 21, 2002 at 06:52:28PM +0100, Gernot Koller wrote:
> > Hi!
> > 
> > Trying to use the current cvs version of cocoon with tomcat 
> version 4.1.12 I experience the following problem
> > After building and installing cocoon
> > (./build.bat -Dinclude.webapp.libs=true 
> -Dinclude.scratchpad.libs=true webapp ; ./build.bat - 
> Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
> > Dinstall.war="C:/ent/jakarta-tomcat-4.1.12/webapps" installwar)
> > and starting tomcat server enterint the URl 
> "http://localhost:8080/cocoon/"; correctly redirects to
> > http://localhost:8080/cocoon/documents/index.html but then 
> brings an error page containing:
> > 
> > type fatal
> > 
> > message Index: -1, Size: 0
> > 
> > description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> > 
> > sender org.apache.cocoon.servlet.CocoonServlet
> > 
> > source Cocoon servlet
> > 
> > stack-trace
> > 
> > java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> > at java.util.ArrayList.RangeCheck(ArrayList.java:491)
> > at java.util.ArrayList.remove(ArrayList.java:375)
> > at  
> org.apache.cocoon.components.EnvironmentDescription.removeLastSite
> mapConfiguration(CocoonComponentManager.java:548)
> > at  
> org.apache.cocoon.components.CocoonComponentManager.leaveEnvironme
> nt(CocoonComponentManager.java:156)
> > at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
> reeProcessor.java:328)
> > at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
> reeProcessor.java:308)
> > at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
> > at org.apache.cocoon.servlet.CocoonServlet.service
> > [...]
> > 
> > Directly jumping to one of the samples (e.g. 
> http://localhost:8080/cocoon/samples/ or http://localhost:8080/ 
> cocoon/samples/portal-fw/sunspotdemofree-
> > portal) seems to work.
> > 
> > So my guess is I'm just missing the documentation html files ? 
> Looking in the $TOMCAT/webApps/cocoon/ documentation directory 
> actually does not contain an
> > index.html file, is this correct ?
> > 
> > What am I doing wrong ? Any hints, please ?
> > 
> > thanks,
> > 
> > Gernot.
> > 
> > 
> > 
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > 
> 
> -- 
> .
>  ,,$,  Marcus Crafter
> ;$'  ':Computer Systems Engineer
> $: :   ManageSoft GmbH
>  $   o_)$$$:   82-84 Mainzer Landstrasse
>  ;$,_/\ &&:'   60327 Frankfurt Germany
>' /( &&&
>\_'
>   .
> &&&:
> 
> -
> Please check that your 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: XMLForm: dynamic content listbox

2002-11-21 Thread Kirchhoff, Lars
Hello,

I'm trying the same and did manage to create a dynamic list 
of checkboxes from a database. But I still don't get it completely.
Where is the ref="/hobby" defined? I looked in the UserBean and the 
userIdentity.xml, but found nothing. Can somebody give me a hint. 
I would like to change this to one of my own variable names. 

regards Lars

> -Ursprüngliche Nachricht-
> Von: Josema Alonso [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 21. November 2002 02:50
> An: Cocoon-Users
> Betreff: Re: XMLForm: dynamic content listbox
> 
> 
> Hello.
> 
> I had a very similar problem a few days ago. The way to go is 
> the itemset
> tag as used in the wizard demo. Take a look at the 
> 'userIdentity.xml' file
> where the Hobbies get listed:
> 
> Hobbies
> 
> 
> 
> 
> 
> 
> All you have to do is to change the UIType to the one desired 
> and fill the
> items with values taken from the DB, for example from the action.
> 
> Hope it helps,
> Josema.
> 
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 3:56 PM
> Subject: XMLForm: dynamic content listbox
> 
> 
> > Hello,
> >
> > I'm using listbox in XMLForm (with tag  selectUIType="listbox">). The content of the listbox (the 
> items listed) is
> hard-coded in the xml document (view) like that:
> >
> > 
> >  
> >   Unix
> >   Unix>
> >  
> >  
> >   Windows
> >   Windows
> >  
> > 
> >
> > Is there a possibility to retrieve dynamically these items 
> from a database
> instead of using the hard-coded items in xml document??
> >
> > Thank you
> > Sylvain
> >
> > 
> -
> > Please check that your 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]>




Cocoon/Servlet/JSP and same session-object

2002-11-21 Thread Dirk Reiss
Hello,

our problem is to integrate some JSPs who are *controlled* by a servlet with 
cocoon. Integrate in our sense means that the servlet which in some way 
invokes the JSPs runs in the same context so that cocoon and the servlet/JSPs 
share the same session-object to communicate over it.

Just reading the JSP via jsp-reader works fine and we can exchange information 
over the session-object, but we assume that the servlet still runs within 
another context and the JSPs are still read by cocoons jsp-reader, but the 
only session-object we can access seems to be the servlets one.

How can we make that *control-servlet* run within the same context as cocoon 
so that informationexchange in the described way is possible? 
Whats the correct position to declare this? web.xml? sitemap?

Thanks in advance,
Dirk


-
Please check that your 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: cant create pdfs

2002-11-21 Thread Anton Hughes
Hi Thorsten

Thanks for the reply!
The code I used is the exact code from the tutorial which can be found at
http://xml.apache.org/cocoon/howto/howto-html-pdf-publishing.htmld

I cut and pasted the code several times and each time got the same results.

I've also cut and pasted the code for sitemap.xmap file.

Regards
Anton

-Original Message-
From: Thorsten Scherler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:03 PM
To: [EMAIL PROTECTED]
Subject: Re: cant create pdfs


gidday mate,
Could not read resource
 > file:/C:/apache/Apache Tomcat 
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
 > java.lang.RuntimeException: org.apache.fop.apps.FOPException: 
'master-name'
 > for 'fo:page-sequence'matches no 'simple-page-master' or
 > 'page-sequence-master'
 >
I reckon that the .fo file is screwed. I mean did you use the exact file 
of the tutorial? It seems that in your fo:page-sequence you don't have a 
  'page-sequence-master' for that reason u get a internal server error.

But it would be nice to see your code.

Good on ya mate. Greetings to downunder.

Anton Hughes wrote:
> Greetings
> 
> I'm just starting out with Cocoon and am having trouble getting it to
create
> pdfs.  I have gone through the tutorial on how to make HTML/pdf docs and
it
> works fine with making HTML docs from and xml file but not with PDFs - can
> someone please advise me as to what I should do?
> 
> The error msg I recieve is this:
> Cocoon 2 - Internal server error
> 
>

> 
> 
> type internal-server-error
> 
> message Could not read resource file:/C:/apache/Apache Tomcat
> 4.0/webapps/cocoon/mount/html-pdf/pageOne.xml
> 
> description org.apache.cocoon.ProcessingException: Could not read resource
> file:/C:/apache/Apache Tomcat
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
> java.lang.RuntimeException: org.apache.fop.apps.FOPException:
'master-name'
> for 'fo:page-sequence'matches no 'simple-page-master' or
> 'page-sequence-master'
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> exception
> 
> org.apache.cocoon.ProcessingException: Could not read resource
> file:/C:/apache/Apache Tomcat
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
> java.lang.RuntimeException: org.apache.fop.apps.FOPException:
'master-name'
> for 'fo:page-sequence'matches no 'simple-page-master' or
> 'page-sequence-master'
> 
> request-uri
> 
> /cocoon/mount/html-pdf/pageOne.pdf
> 
> stacktrace
> 
> org.apache.cocoon.ProcessingException: Could not read resource
> file:/C:/apache/Apache Tomcat
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
> java.lang.RuntimeException: org.apache.fop.apps.FOPException:
'master-name'
> for 'fo:page-sequence'matches no 'simple-page-master' or
> 'page-sequence-master'
>   at
>
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
>   at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
> entPipeline.java:210)
>   at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
> treamPipeline.java:350)
>   at
>
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.wildcardMatchN40002E(sitem
> ap_xmap.java:555)
>   at
>
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
> 342)
>   at
>
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
> 295)
>   at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
>   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
>   at
>
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400251(sitemap_xmap.java:34
> 13)
>   at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2646)
>   at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2448)
>   at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
>   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
>   at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at

Re: XSL Element testing whether empty, or not!

2002-11-21 Thread Joerg Heinicke
It's better to do it without the Result Tree Fragment as intermediate step:



Is the variable needed? You can of course directly test on the element:


  is true if any character is contained in 



  trims white space characters and tests after this normalization


The comparison with the empty string '' is not needed.

Regards,

Joerg

Kazmír, Jaroslav wrote:

TRY THIS:


   




NON EMPTY


EMPTY



Jaykay

-Original Message-
From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]] 
Sent: Donnerstag, 21. November 2002 14:57
To: Cocoon-Users (E-Mail)
Subject: XSL Element testing whether empty, or not!

Hello group,

newbie question:
How can you test whether a Element contain information or not? I mean
something like the DB command "is not Null" // "is null".

Example:
data.xml
case 1) Elektro 
case 2)  

I want to have the word Department in front of the value as soon as the
is not empty.
I figured out that the string-length(./department/text()) is 19 as soon
. If  is not empty is > 19.
So I have written the following xsl (knowing that is a work around but not a
solution).





Abteilung: 
select="./department/text()"/>






Is there a better way to do it?


Mit freundlichem Gruss,

Thorsten Scherler
Marketing / Telefonmarketing

Weidmüller GmbH & Co.
P.O. Box 2807
33058 Paderborn
Tel.:+ 49 - 5252-960-350
Fax:+ 49 - 5252-960-116
eMail: [EMAIL PROTECTED]
http://www.weidmueller.de





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

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

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

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





-
Please check that your 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: URI parts extraction

2002-11-21 Thread Joerg Heinicke
This is the solution I would prefer. To complete it a bit:

In the sitemap 2 solutions are possible:


  
  

  
  


This would pass only the part of the URL, which is matched. So for 
example in the root sitemap from your string 
http://hostname/cocoon/dir1/dir2/dir3/dir4/file1 will be passed 
dir1/dir2/dir3/dir4/file1.


  
  

  

  
  


This would pass /cocoon/dir1/dir2/dir3/dir4/file1 independent of root or 
sub sitemap. So I prefer this solution.

If you add global param to Jelle's solution you can access this string 
and process it with his recursive template.

So at the end the stylesheet could look like:


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





  

  

  



  
  

  

  
  

  


  

  

  




result:


  cocoon
  dir1
  dir2
  dir3
  dir4
  file1


Regards,

Joerg

Alten, Jelle Paul (uto) wrote:
Hi everybody and Yatin,

As my first contribution to this list I thought I'd help someone... I
included a simple stylesheet that does what you want. Hope it helps.

Jelle

PS I was there in Nazareth, and now I'm here too!  Woo hoo!

--- here is the xsl 


xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>






name="uri">http://hostname/cocoon/dir1/dir2/dir3/dir4/file1





select="substring-after($uri,'http://')"/>















select="substring-before($str,'/')"/>




select="substring-after($str,'/')"/>













--- end of xsl ---


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 20 november 2002 19:06
Aan: [EMAIL PROTECTED]
Onderwerp: Re: URI parts extraction


Yatin,

You could just pass the whole URI in as one parameter and 
write templates that recursively extract the parts. It's a 
little tedious, but it can be done. I don't have an example 




Yatin Shah <[EMAIL PROTECTED]> wrote:





Is there an existing component(a Matcher!) which will 


extract individual


names from a URI?
What I want is:
Given http://hostname/cocoon/dir1/dir2/dir3/dir4/file1
I want XML file as follows:


 cocoon 
 dir1 
 dir2 
 dir3 
 dir4
file1



[Although I do not need it, we can have 


,, 

tags to the xml file as well].
-Yatin



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

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




UTF-8 character encoding

2002-11-21 Thread Artur Bialecki

It seems that the only way to output request parameters
encoded with UTF-8 is to call request.setCharacterEncoding("utf-8");
on **every** request. Is there a better (simpler) way of achieving
end-to-end UTF-8 for the whole site?
Also, setting encoding will call the decode() method
on every access to request parameter which for me is overkill
since my container alredy does the decoding.

The problem manifests itself by replacing single Ü character
with Ü. 

JDK 1.3.1, C2.0.3, win2k, Saxon 6.5.2

Thanks,

Artur...


-
Please check that your 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: pipeline result through SOAP?

2002-11-21 Thread Josema Alonso
> I'd recommend getting the soap-server sample working in the Cocoon
> webapp (remember to use the -Dinclude.scratchpad.libs=yes directive)
> and then start modifying it to do what you need.
Ok, I'll try it.

> I need to think about writing a CocoonProvider or similar for the
> AxisRPCReader to allow one to specify a pipeline in the deployment
> descriptor for creating the SOAP service content hmmm...
Yummm...this sounds really interesting :-)

> You can always send in the error messages you're getting and we
> can look at them,
Don't mind about them. I'm having a hard time at work currently and
unfortunately don't have the time to test this properly...
Anyway, once I get a little time, I'll try to build the scratchpad samples
and see what happens. I'll post my comments then.

Thank you very much.



-
Please check that your 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 to oracle ?

2002-11-21 Thread Gabriele Domenichini
On Thu, 14 Nov 2002 17:17:37 +0530, "Dhiman Paul" <[EMAIL PROTECTED]>
said:
> Dear All,
> 
> Is it possible to communicate with oracle via cocoon ?
> Please say me the way to do that ?

I'm very proud to say that:
1) I do it at work
2) Is simple
3) I have created a wiki page on specific database connection on which
wonderful people has contributed
4) There is a section where everything useful about Oracle (we hope) is
explained 

http://outerthought.net/wiki/Wiki.jsp?page=Oracle   

-- 
  Gabriele Domenichini
  [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: Cocoon Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Gabriele Domenichini
On Thu, 21 Nov 2002 15:14:52 +, "Jeremy Quinn"
<[EMAIL PROTECTED]> said:
> 
> On Thursday, Nov 21, 2002, at 14:59 Europe/London, Carsten Ziegeler 
> wrote:
> 
> > Sorry to say this -
> 
> I am glad you did ;)
> 
> > but I just did a clean checkout and build
> > the webapp with JKD 1.4 and run this with JDK 1.4 and Tomcat 3.3
> > using w2k - and what should I say: without any problems.
Maybe could be a problem of Tomcat server version?

I use Apache Tomcat/4.1.12 What do you think about it?

Is there someone that use correctly the cocoon portal sample with this or
similar version of Tomcat??
-- 
  Gabriele Domenichini
  [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: java.lang.IndexOutOfBoundsException

2002-11-21 Thread Marcus Crafter
Hi Gernot,

I've located the problem but aren't 100% sure about what the proper fix
is as I think Carsten is still working on the code. I've already
contacted him about the problem so I'm sure it will be fixed soon.

In the meantime you can change the removeLastSitemapConfiguration() 
method in CocoonComponentManager to look like:

void removeLastSitemapConfiguration() {
  if (this.sitemapConfigurations.size() > 0)
this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1);
}   

and it will let you continue working. A proper fix will appear
shortly.

Hope that helps.

Cheers,

Marcus

On Thu, Nov 21, 2002 at 06:52:28PM +0100, Gernot Koller wrote:
> Hi!
> 
> Trying to use the current cvs version of cocoon with tomcat version 4.1.12 I 
>experience the following problem
> After building and installing cocoon
> (./build.bat -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp ; 
>./build.bat - Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
> Dinstall.war="C:/ent/jakarta-tomcat-4.1.12/webapps" installwar)
> and starting tomcat server enterint the URl "http://localhost:8080/cocoon/"; 
>correctly redirects to
> http://localhost:8080/cocoon/documents/index.html but then brings an error page 
>containing:
> 
> type fatal
> 
> message Index: -1, Size: 0
> 
> description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> stack-trace
> 
> java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
>   at java.util.ArrayList.RangeCheck(ArrayList.java:491)
>   at java.util.ArrayList.remove(ArrayList.java:375)
>   at  
>org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:548)
>   at  
>org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:156)
>   at 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
>   at 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
>   at org.apache.cocoon.servlet.CocoonServlet.service
>   [...]
> 
> Directly jumping to one of the samples (e.g. http://localhost:8080/cocoon/samples/ 
>or http://localhost:8080/ cocoon/samples/portal-fw/sunspotdemofree-
> portal) seems to work.
> 
> So my guess is I'm just missing the documentation html files ? Looking in the 
>$TOMCAT/webApps/cocoon/ documentation directory actually does not contain an
> index.html file, is this correct ?
> 
> What am I doing wrong ? Any hints, please ?
> 
> thanks,
> 
> Gernot.
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_'
  .
&&&:

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

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




java.lang.IndexOutOfBoundsException

2002-11-21 Thread Gernot Koller
Hi!

Trying to use the current cvs version of cocoon with tomcat version 4.1.12 I 
experience the following problem
After building and installing cocoon
(./build.bat -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp ; 
./build.bat - Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true -
Dinstall.war="C:/ent/jakarta-tomcat-4.1.12/webapps" installwar)
and starting tomcat server enterint the URl "http://localhost:8080/cocoon/"; correctly 
redirects to
http://localhost:8080/cocoon/documents/index.html but then brings an error page 
containing:

type fatal

message Index: -1, Size: 0

description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:491)
at java.util.ArrayList.remove(ArrayList.java:375)
at  
org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:548)
at  
org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:156)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
at org.apache.cocoon.servlet.CocoonServlet.service
[...]

Directly jumping to one of the samples (e.g. http://localhost:8080/cocoon/samples/ or 
http://localhost:8080/ cocoon/samples/portal-fw/sunspotdemofree-
portal) seems to work.

So my guess is I'm just missing the documentation html files ? Looking in the 
$TOMCAT/webApps/cocoon/ documentation directory actually does not contain an
index.html file, is this correct ?

What am I doing wrong ? Any hints, please ?

thanks,

Gernot.



-
Please check that your 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: [Wyonacms-users] XOpus

2002-11-21 Thread Thorsten Scherler
This is an open appeal to the XML Open Source Community. Please support 
this appeal to keep an Open Source Project alive! How can we keep the 
following project Open Source? Please post this message to people who 
may help!

"Xopus is a browser based in-place wysiwyg XML editor. Xopus allows 
users to edit their XML data in an intuitive word processor alike way."
http://xopus.org/index.jsp

The following notice is on the above mentioned page. (my comments) are 
in the brackets.


Hello groups, hello Laurens van den Oever, Sjoerd Visscher, Lon Boonen!

Here is the notice of Q42:

Hi all,

Today we made a decision concerning the Open Source future of Xopus.

Originally, the Open Source project was intended to be our marketing. We 
hoped for huge exposure and many new projects and funding.

(How long are you open source now? Since August/September? I think it 
will take a while to spread the word. I talked to many people that are 
thinking to use Xopus and support the project, but it takes some time to 
really get in to it.)

And of course to change the world for the better.

(Would be if you stay Open Source! Your Editor is one good piece of 
work! I really like it! If we spread the word into the cocoon community 
I think you will get more support and projects)

We indeed got a lot of positive feedback, a few contributions (thanks 
guys!), but no projects nor funding.

The only serious leads and paying customers so far haven't found us 
through the Open Source community. Most of them don't like the Open 
Source idea all together.

(That's to bad. But part of the idea is as well that the user will 
develop the software because the know best want they want. I think your 
client will understand that they will profite of the work of the Open 
Source Community. They have ideas, spirit and a powerful community.)

Building the ideal XML editor, our goal, turned out to be somewhat more 
ambitious than we estimated.
We have made a huge investment building this product and can't continue 
to deliver free software without revenues.

(If some organisation listen: There is a Xopus Version for sale that 
have this * Advanced features:
o Complex pipeline resolving
o Richtext editors
o Table editing
o Lookup editors
o Animations
o Fast-pace editing (allows fast-keyboard-typing while xml nodes are 
created automatically according to the schema)
o Date editors
o Integer editors
o Enumeration editors)

Therefore we have been forced to the conclusion that we will not release 
new Xopus versions to the Open Source community as long as we don't find 
serious paid projects or funding.

(The product is really awesome try it out @ 
http://xopus.org/index.jsp?menu=demo)

We hope we will be able to return to the Open Source development soon.

Thanks for your support and "we apologize for the inconvenience" 
(THHGTTG IV),


What can we do?

King Regards

Thorsten Scherler
(by the way I am not with Q42, I am using the Open Source Product with 
wyona-cms (http://www.wyona.org/) and I like it very much. All cocoon 
user can integrate that editor in they applications! Online editing of 
XML - Kick's ass!)


Alex McLintock wrote:
Oh dear. It looks like XOpus isn't going to be open source, after all.

http://xopus.org/index.jsp

H. I can't really argue with their reasoning. I am pushing Open 
Source to the business community - and not getting enough revenue to 
make it worthwhile either.

Comments?

Alex





Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 
http://www.OWAL.co.uk/oss_support/


___
WyonaCMS-users mailing list
[EMAIL PROTECTED]
http://mail.wyona.org/cgi-bin/mailman/listinfo/wyonacms-users



-
Please check that your 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: Javascript problems in XSP

2002-11-21 Thread Jacob L E Blain Christen
I may be mistaken but I thought the only valid code inside of xsp:logic
tags was java:  not javascript, not perl, just java.

-
Please check that your 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: Output to file/ replace file

2002-11-21 Thread Alex McLintock


1. How can I manipulate files using cocoon, I have some xml data I want to 
be able to change without storing it in a database.


To ask a slightly different question - I'd like to use XMLForms as a simple 
survey / questionaire software - and have it drop the results as a text / 
xml file on the file system.
Is there an easy XMLForms example which does that or do I need to get 
XMLForms to write to a DOM objec, and then serialise the DOM object to a file?

Alex




Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 
http://www.OWAL.co.uk/oss_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: Output to file/ replace file

2002-11-21 Thread Alex McLintock
Someone asked:

1. How can I manipulate files using cocoon, I have some xml data I want to 
be able to change without storing it in a database.


You might want to look at XOpus which is essentially an "easy" XML editor. 
You might want to use it with Wyona which is a Cocoon based CMS.
http://www.xopus.org, http://www.wyona.org


However neither of these are terribly easy to use.

Alex



Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 
http://www.OWAL.co.uk/oss_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: cocoon with IE and Netscape

2002-11-21 Thread conrad . crampton


detect the browser in your pipeline, then use an appropriate xsl for the   
browser

Conrad Crampton J
Software Solutions
Kent Police
FHQ
11 Edinburgh Square
Sutton Road
Maidstone
Kent
ME15 9BZ

(01622 652869
19 2869


 --
From:  cocoon-users[SMTP:[EMAIL PROTECTED]]
Sent:  21 November 2002 15:43
To:  [EMAIL PROTECTED]
Subject:cocoon with IE and Netscape



Hi,

I have a problem with my webpages(running with cocoon
2.0) produces different result in Netscape and
Internet Explorer.The position of the pixels in IE and
Netscape(as well as in Mozilla 1.1)  are quite
different.If someone knows the solution please help
me,,,

Kavitha Ramesh.

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



-
Please check that your 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 with IE and Netscape

2002-11-21 Thread Alten, Jelle Paul (uto)
Hi Kavitha,

This will not be a cocoon problem, just browser differences. The same HTML
(and CSS) will be presented differently by different browsers. If you use
(generate) as much standard (X)HTML as possible, you'll have the least
problems.

You can check this by saving the source HTML (View-Source in IE) and viewing
this offline file in IE and Netscape.

Of course you can use a selector to generate different files depending on
the browser. If that is what you are doing already by accident, it will be
in your sitemap.

Good luck,

Jelle

-Oorspronkelijk bericht-
Van: Kavitha Ramesh [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 21 november 2002 16:39
Aan: [EMAIL PROTECTED]
Onderwerp: cocoon with IE and Netscape


Hi,

I have a problem with my webpages(running with cocoon
2.0) produces different result in Netscape and
Internet Explorer.The position of the pixels in IE and
Netscape(as well as in Mozilla 1.1)  are quite
different.If someone knows the solution please help
me,,,

Kavitha Ramesh.

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

-
Please check that your 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 with IE and Netscape

2002-11-21 Thread Antonio Gallardo
Try to use some standard in the generated pages. I got the same pages
using "HTML 4.0.1 Transitional" More info at: http://www.w3c.org

Antonio Gallardo

Kavitha Ramesh dijo:
> Hi,
>
> I have a problem with my webpages(running with cocoon
> 2.0) produces different result in Netscape and
> Internet Explorer.The position of the pixels in IE and
> Netscape(as well as in Mozilla 1.1)  are quite
> different.If someone knows the solution please help
> me,,,
>
> Kavitha Ramesh.
>
> __
> 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]>




-
Please check that your 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 with IE and Netscape

2002-11-21 Thread Kavitha Ramesh
Hi,

I have a problem with my webpages(running with cocoon
2.0) produces different result in Netscape and
Internet Explorer.The position of the pixels in IE and
Netscape(as well as in Mozilla 1.1)  are quite
different.If someone knows the solution please help
me,,,

Kavitha Ramesh.

__
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: Cocoon Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Jeremy Quinn

On Thursday, Nov 21, 2002, at 14:59 Europe/London, Carsten Ziegeler 
wrote:

Sorry to say this -


I am glad you did ;)


but I just did a clean checkout and build
the webapp with JKD 1.4 and run this with JDK 1.4 and Tomcat 3.3
using w2k - and what should I say: without any problems.

So I guess it's rather something with your setup.



Carsten,

Many thanks, at least I know it is working somewhere!

It was strange, because I did not change my working setup between two 
builds, one that worked, one that not even Cocoon pages worked.

I'll try again

regards Jeremy


-
Please check that your 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 Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Carsten Ziegeler
Sorry to say this - but I just did a clean checkout and build
the webapp with JKD 1.4 and run this with JDK 1.4 and Tomcat 3.3
using w2k - and what should I say: without any problems.

So I guess it's rather something with your setup.

Carsten

> -Original Message-
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 2:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon Portal Sample - Failed to execute pipeline error
> 
> 
> 
> On Thursday, Nov 21, 2002, at 12:09 Europe/London, Matthew Langham 
> wrote:
> 
> > An "over the desk" shout at Carsten reveals that the Portal is working 
> > in
> > the current CVS version - so I am not sure what your problem is 
> > exactly.
> >
> 
> Well give him another shout ;)
> *Nothing* works in the current CVS ATM (21/11/02 11:11 GMT+1)  as 
> just reported on Cocoon-dev subject: "IndexOutOfBoundsException in 
> latest CVS"
> 
> Anyone know what has broken?
> 
> regards Jeremy
> 
> 
> -
> Please check that your 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: pipeline result through SOAP?

2002-11-21 Thread Marcus Crafter
Hi Josema,

On Thu, Nov 21, 2002 at 03:00:44PM +0100, Josema Alonso wrote:
> Ouch...Avalon again. When I try to do this kind of 'advanced' things with
> Cocoon I always find the Avalon wall. I think I should get into it the
> sooner the better if I want to develop powerful things.

Yes, understanding Avalon is an important part of understanding
Cocoon as it's the framework Cocoon is built upon. You'll need an
Avalon component to access the sourceresolver.

(alternatively you could extend the AbstractComposableService
class which is in o.a.c.webservices under scratchpad, but if the
class gets complex and you need access to other Avalon components,
writing a true Avalon component is probably best).

> Great, but couldn't make the reader work. All I get are SOAP errors from it
> when making any call. What I've doe is to develop a Axis service. This one
> is served directly from Axis. It makes a request to the Cocoon URL and gets
> the XML document, then returns this document after serializing it in a DOM
> Element. I have it working though I know this is just a quick workaround and
> not the best approach. Hope I could amke the reader work soon. I'd like
> experimenting with it.

Ok, what you've done above should be possible within Cocoon using
the Reader, as it's essentially the same operation, just on the one
system.

I'd recommend getting the soap-server sample working in the Cocoon 
webapp (remember to use the -Dinclude.scratchpad.libs=yes directive)
and then start modifying it to do what you need.

I need to think about writing a CocoonProvider or similar for the
AxisRPCReader to allow one to specify a pipeline in the deployment
descriptor for creating the SOAP service content hmmm...

You can always send in the error messages you're getting and we
can look at them,

Cheers,

Marcus


-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_'
  .
&&&:

-
Please check that your 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: XSL Element testing whether empty, or not!

2002-11-21 Thread "Kazmír, Jaroslav"
TRY THIS:


   




NON EMPTY


EMPTY



Jaykay

-Original Message-
From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]] 
Sent: Donnerstag, 21. November 2002 14:57
To: Cocoon-Users (E-Mail)
Subject: XSL Element testing whether empty, or not!

Hello group,

newbie question:
How can you test whether a Element contain information or not? I mean
something like the DB command "is not Null" // "is null".

Example:
data.xml
case 1) Elektro 
case 2)  

I want to have the word Department in front of the value as soon as the
is not empty.
I figured out that the string-length(./department/text()) is 19 as soon
. If  is not empty is > 19.
So I have written the following xsl (knowing that is a work around but not a
solution).





Abteilung: 






Is there a better way to do it?

> Mit freundlichem Gruss,
> 
> Thorsten Scherler
> Marketing / Telefonmarketing
> 
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: [EMAIL PROTECTED]
> http://www.weidmueller.de
> 
> 

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

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

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

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




RE: JavaScript problems in XSP

2002-11-21 Thread Ryan Agler
Hi Anna,
Client-side (in your web browser) JavaScript is a completely different
beast than server-side (on your web server) JavaScript.  In server-side
JavaScript, there are no windows, DHTML, or much any other properties or
methods you would use to manipulate a browser for dynamic content.  

To use Cocoon to achieve your task, the first step would to define
"given-file.html" in your sitemap, and make sure its serialized in
well-formed XHTML.  Then you could use the Cinclude transformer to
import given-file.html, kind of like this (myfile.xsp):


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

  

  


and in your sitemap.xmap:


  
  
  



  
  
  
  


HTH

+Ryan

-Original Message-
From: Anna Afonchenko [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 21, 2002 7:43 AM
To: [EMAIL PROTECTED]
Subject: Javascript problems in XSP

Hi All.
This is my first post, so don't be angry with me if I do something
wrong.
I am using XSP on Cocoon 2.0.3, and I want to do the following:
given a name of the html file that contains javascript, I want to get
the result of this javascript and
put it inside some element in XSP. But when I write the following code
in XSP using javascript:

    
        var js = window.open("given-file.html");
        var result = js.document.body.innerHTML;
    
    result

 
nothing happens (even doesn't give any error).
If I am using this code inside an html file's script tag, it works fine.
If I am trying some simple Javascript functions in XSP (e.g. Date()), it
works.
Maybe there is some problem with opening files in XSP?
 
Can somebody please tell me what am I doing wrong and how can I get the
result of javascript code executed in some given file?
 
Thank you very much in advance.
 
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: pipeline result through SOAP?

2002-11-21 Thread Josema Alonso
Hello.

>Ok, the AxisRPCReader essentially wraps an Axis SOAP server, and
>makes it available in the sitemap to handle incoming requests.
>...
Ok, I understand this.


>You should also be able to access pipelines from within an Axis
>webservice by making an internal request via the cocoon:/ protocol.
This sounds very good.

>Note, I haven't yet done this, but all that should be required is to
>write a component that implements Composable, lookup the source
>resolver, and resolve a uri containing the pipeline you want to
>resolve.
>...
Ouch...Avalon again. When I try to do this kind of 'advanced' things with
Cocoon I always find the Avalon wall. I think I should get into it the
sooner the better if I want to develop powerful things.

>You can send a SOAP request by using the XSP SOAP tag library in
>Cocoon,the Axis SOAP client library, or any other SOAP client.
>The input and output XML fragments are IIRC logged to the
>sitemap.log, so you should be able to see everything that is going on.
Great, but couldn't make the reader work. All I get are SOAP errors from it
when making any call. What I've doe is to develop a Axis service. This one
is served directly from Axis. It makes a request to the Cocoon URL and gets
the XML document, then returns this document after serializing it in a DOM
Element. I have it working though I know this is just a quick workaround and
not the best approach. Hope I could amke the reader work soon. I'd like
experimenting with it.

>Hope that helps mate! :)
It does. Thank you very much.


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

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




XSL Element testing whether empty, or not!

2002-11-21 Thread Scherler, Thorsten
Hello group,

newbie question:
How can you test whether a Element contain information or not? I mean something like 
the DB command "is not Null" // "is null".

Example:
data.xml
case 1) Elektro 
case 2)  

I want to have the word Department in front of the value as soon as the is 
not empty.
I figured out that the string-length(./department/text()) is 19 as soon . If  is not empty is > 19.
So I have written the following xsl (knowing that is a work around but not a solution).





Abteilung: 






Is there a better way to do it?

> Mit freundlichem Gruss,
> 
> Thorsten Scherler
> Marketing / Telefonmarketing
> 
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: [EMAIL PROTECTED]
> http://www.weidmueller.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: Cocoon Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Jeremy Quinn

On Thursday, Nov 21, 2002, at 12:09 Europe/London, Matthew Langham 
wrote:

An "over the desk" shout at Carsten reveals that the Portal is working 
in
the current CVS version - so I am not sure what your problem is 
exactly.


Well give him another shout ;)
*Nothing* works in the current CVS ATM (21/11/02 11:11 GMT+1)  as 
just reported on Cocoon-dev subject: "IndexOutOfBoundsException in 
latest CVS"

Anyone know what has broken?

regards Jeremy


-
Please check that your 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: duplicate definition of variable when using esql in xsp and own l ogicsheet

2002-11-21 Thread Antonio Gallardo
Hi!

I think you can make use of esql transformation. I guess you are using
xsp:esql in you XSP file, because you need to get new data from the
database with the base of the first data you got from your own logicsheet.

I am correct?

If this is the problem, then is generated because Cocoon cannot know you
are trying to make use of xsp:esql in TWO steps.

I recommend you to read the chapter #6 from the Carsten-Matthew book. You
can read this chapter it at: http://xml.apache.org/cocoon/link/books.html

Better I recommend you buy the book. I hope it can help ;-)

Regards,

Antonio Gallardo



> Hi,
>
> I am trying to write my own logicsheet which uses esql to fetch some
> data from a mysql database. This works fine as long as the xsp-page
> itself does not use esql. However, when I also want to use esql in the
> xsp, I get a lot of 'duplicate definition of variable' errors. How can I
> resolve this?
>
> Thanks,
>
> Andreas
>
> Below are the logicsheet, the xsp file and the errors I get:
>
> Part of the mm_logic.xsl file:
>
> 
>version="1.0"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:session="http://apache.org/xsp/session/2.0";
>   xmlns:mm="http://siemens.com/mm";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> ...
> 
>
> 
>  mm
>  
> ...
>  
>   
> 
> -->
>
> 
> 
>  select="@*|*|text()|processing-instruction()"/>
> 
> 
>
> 
>
> -
>
> Part of the list.xsp
>
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>
> xmlns:session="http://apache.org/xsp/session/2.0";
>   xmlns:mm="http://siemens.com/mm";
>
> xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> 
> ...
> 
>   mm
>   
> ...
>   
> 
> 
>
> ...
> 
> 
>
> ---
>
> The errors I get:
>
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> videolist_xsp:
> Line 299, column 18:  duplicate definition of variable _esql_connections
> in class org.apache.cocoon.www.xsp.videolist_xsp
> Line 300, column 34:  duplicate definition of variable _esql_connection
> in class org.apache.cocoon.www.xsp.videolist_xsp
> Line 301, column 18:  duplicate definition of variable _esql_queries in
> class org.apache.cocoon.www.xsp.videolist_xsp
> Line 302, column 22:  duplicate definition of variable _esql_query in
> class org.apache.cocoon.www.xsp.videolist_xsp
> Line 303, column 25:  duplicate definition of variable _esql_exception
> in class org.apache.cocoon.www.xsp.videolist_xsp
> Line 304, column 25:  duplicate definition of variable
> _esql_exception_writer in class org.apache.cocoon.www.xsp.videolist_xsp
> Line 320, column 27:  duplicate definition of method
> _esql_printObject(java.lang.Object, org.xml.sax.helpers.AttributesImpl)
> in class org.apache.cocoon.www.xsp.videolist_xsp
> Line 0, column 0:
> 7 errors
>
> P.S.: I looked at the esql.xsl file. If I understand it correctly, the
> global import statements and the global _esql_*-variables should only be
> generated when a xsp:page tag is found - and there is only one of those.
>
> //_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>// Andreas Ebert, Corporate Technology, Siemens AG
>   // E-Mail: [EMAIL PROTECTED] NEW!
>
>
> -
> Please check that your 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: XMLForm: dynamic content listbox

2002-11-21 Thread Josema Alonso
>Yes I'm interested for your complete example!
Ok, I'll send the example later this evening.

>I think that the access to Xindice or to a XML file are nearly the same?!?
Well, mostly...let's say you can get XML documents from Xindice. Think about
it as a XML documents repository that are stored in collections.

>Thank you very much
You're welcome.


-
Please check that your 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: XMLForm: dynamic content listbox

2002-11-21 Thread Sylvain.Thevoz
Yes I'm interested for your complete example!

I think that the access to Xindice or to a XML file are nearly the same?!?

Thank you very much
Sylvain

-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]]
Date: jeudi, 21. novembre 2002 10:34
À: [EMAIL PROTECTED]
Objet: RE: XMLForm: dynamic content listbox


>If I have well understood, I could replace the hard-coded values of
allHobbies by a query to a database. >isn't it?
Yes. Just fill the appropriate Java structure of your choice with the
database values after querying it.

>What would be the solution if I want to retrieve the allHobbies values from
an external xml file?
>Is there an example?
Well, I'm using Xindice as the backend DB. I'm using DOM nodes to load the
content from the DB and then map those nodes to the form (there's an example
in the wizard with DOM nodes, too). It took me some time to make it work but
I know I get it. I do not have the code right here, but could send you a
complete example later today if you're interested.

Best.


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




duplicate definition of variable when using esql in xsp and own logicsheet

2002-11-21 Thread Ebert Andreas
Hi,

I am trying to write my own logicsheet which uses esql to fetch some data
from a mysql database. This works fine as long as the xsp-page itself does
not use esql. However, when I also want to use esql in the xsp, I get a lot
of 'duplicate definition of variable' errors. How can I resolve this?

Thanks,

Andreas

Below are the logicsheet, the xsp file and the errors I get:

Part of the mm_logic.xsl file:


http://apache.org/xsp";
  xmlns:session="http://apache.org/xsp/session/2.0";
  xmlns:mm="http://siemens.com/mm";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
... 



 mm
 
...
 
  

-->









-

Part of the list.xsp


http://apache.org/xsp";

xmlns:session="http://apache.org/xsp/session/2.0";
xmlns:mm="http://siemens.com/mm";

xmlns:esql="http://apache.org/cocoon/SQL/v2";>

...

mm
  
... 




...



---

The errors I get:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
videolist_xsp:
Line 299, column 18:  duplicate definition of variable _esql_connections in
class org.apache.cocoon.www.xsp.videolist_xsp
Line 300, column 34:  duplicate definition of variable _esql_connection in
class org.apache.cocoon.www.xsp.videolist_xsp
Line 301, column 18:  duplicate definition of variable _esql_queries in
class org.apache.cocoon.www.xsp.videolist_xsp
Line 302, column 22:  duplicate definition of variable _esql_query in class
org.apache.cocoon.www.xsp.videolist_xsp
Line 303, column 25:  duplicate definition of variable _esql_exception in
class org.apache.cocoon.www.xsp.videolist_xsp
Line 304, column 25:  duplicate definition of variable
_esql_exception_writer in class org.apache.cocoon.www.xsp.videolist_xsp
Line 320, column 27:  duplicate definition of method
_esql_printObject(java.lang.Object, org.xml.sax.helpers.AttributesImpl) in
class org.apache.cocoon.www.xsp.videolist_xsp
Line 0, column 0: 
7 errors

P.S.: I looked at the esql.xsl file. If I understand it correctly, the
global import statements and the global _esql_*-variables should only be
generated when a xsp:page tag is found - and there is only one of those.

//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   // Andreas Ebert, Corporate Technology, Siemens AG
  // E-Mail: [EMAIL PROTECTED] NEW!
 

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

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




Javascript problems in XSP

2002-11-21 Thread Anna Afonchenko



Hi All.
This is my first post, so don't be angry with me 
if I do something wrong.

I am using XSP on Cocoon 2.0.3, and I want to do 
the following:
given a name of the html file that contains 
javascript, I want to get the result of this javascript and
put it inside some element in XSP. But when I 
write the following code in XSP using javascript:

    

        var js = 
window.open("given-file.html");
        var result 
= js.document.body.innerHTML;
    

    
result

 
nothing happens (even doesn't give any 
error).
If I am using this code inside an html file's 
script tag, it works fine.
If I am trying some simple Javascript functions 
in XSP (e.g. Date()), it works.
Maybe there is some problem with opening files 
in XSP?
 
Can somebody please tell me what am I doing 
wrong and how can I get the result of javascript code executed in some given 
file?
 
Thank you very much in advance.
 
Anna


RE: Cocoon Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Carsten Ziegeler
The only thing I changed from the CVS is the default xslt
transformer from xslt to xalan, because I think that there
are too many problems with xsltc right now.

Carsten

> -Original Message-
> From: Franck Lumpe [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon Portal Sample - Failed to execute pipeline error
>
>
> > An "over the desk" shout at Carsten reveals that the Portal is
> working in
> > the current CVS version - so I am not sure what your problem is exactly.
>
> > Can you repost the exact error and stack trace again.
>
> > Matthew
>
> Here comes the repost.
>
> TIA
>
> Regards,
> Franck
>
> ___
>
>
> Hello everyone,
>
> I use JDK 1.4.1 + Tomcat 4.1.12 + Cocoon 2.1 DEV Updated Head CVS
> on Windows
> 2000. Cocoon seems to be using the correct versions of Xerces, Xalan and
> XML-Api (from the Tomcat endorsed directory).
>
> Samples are running quite nicely :-) except for:
>
> 1) The XMLForm-sample error already reported by Wolfram.
>
> 2) The Portal Framework Sample: I  get an error 500 with
>
> The
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
> that org.apache.cocoon.ProcessingException says: Failed to
> execute pipeline.
>
> More precisely: org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.: java.lang.NullPointerException
>
> ... (Full Trace after end of message).
>
> Behaviour is that you get the error after you log in the Portal,
> and if you
> return to the URI after you are authentificated, then you always get the
> error (make sense). So at first it seems that its working but when you log
> as guest or cocoon, then you get the error.
>
> Question is:
>
> 1) Should it be working?
> 2) Or it is just that this area is Work in Progress (yeah I know its 2.1
> DEV).
>
> Help very appreciated.
>
> Franck Lumpe
> Iberplus Internet, S.L.
>
> ___
>
> Original exception : java.lang.NullPointerException
> at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178)
> at
> org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172)
> at
> org.apache.cocoon.components.source.SourceUtil.readDOM(SourceUtil.
> java:420)
> at
> org.apache.cocoon.webapps.portal.components.PortalManager.buildRol
> eProfile(P
> ortalManager.java:3669)
> at
> org.apache.cocoon.webapps.portal.components.PortalManager.buildPro
> file(Porta
> lManager.java:1258)
> at
> org.apache.cocoon.webapps.portal.components.PortalManager.createPr
> ofile(Port
> alManager.java:3479)
> at
> org.apache.cocoon.webapps.portal.components.PortalManager.showPort
> al(PortalM
> anager.java:763)
> at
> org.apache.cocoon.webapps.portal.generation.PortalGenerator.genera
> te(PortalG
> enerator.java:84)
> at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.p
> rocessXMLP
> ipeline(AbstractProcessingPipeline.java:512)
> at
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessi
> ngPipeline
> .processXMLPipeline(AbstractCachingProcessingPipeline.java:204)
> at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.p
> rocess(Abs
> tractProcessingPipeline.java:483)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.i
> nvoke(Seri
> alizeNode.java:149)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invo
> keNodes(AbstractParentProcessingNode.java:85)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
> Node.invok
> e(PreparableMatchNode.java:166)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invo
> keNodes(AbstractParentProcessingNode.java:85)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.inv
> oke(ActTyp
> eNode.java:158)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invo
> keNodes(AbstractParentProcessingNode.java:85)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
> Node.invok
> e(PreparableMatchNode.java:166)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invo
> keNodes(AbstractParentProcessingNode.java:109)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in
> voke(Pipel
> ineNode.java:153)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invo
> keNodes(AbstractParentProcessingNode.java:109)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i
> nvoke(Pipe
> linesNode.java:143)
> at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
> reeProcess
> or.java:326)
> at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
> reeProcess
> or.java:308)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok
> e(MountNod
> e.java:131)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invo
> keNodes(AbstractParentProcessi

RE: newbie

2002-11-21 Thread José Moreira
Hello, thank you for your attention. Im not a genious but i develop with
php,asp and mysql/postgre for more than 2 years now ... thant's almost
nothing compared to most people but it's something. i learned pretty fast.
now im interested in cocoon and xml for the obvious reasons. i read lot's of
documentations, including cocoon docs, cocooncenter.de tuts and IBM
developers stuff also. still didnt get it :( perhaps im really an idiot :D
there's a lot to explere here ... and the time is short :( ... even
scrubbing the sample app's i didnt get one of mine to work yet :(

im in your webpage

thanks

-Mensagem original-
De: Jeremy Aston [mailto:[EMAIL PROTECTED]]
Enviada: quarta-feira, 20 de Novembro de 2002 18:24
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto: Re: newbie


Hi José,

The simplest way to get a basic app up and running is
by putting it under mount.

As for simple examples...  Without wanting to sound
like I am fobbing you off (;-)) there is plenty of
stuff in the documentation and sample apps (e.g. the
Hello World stuff) that demonstrates basic principles.
 You can also still access my idiots guide stuff at
http://www.pigbite.co.uk/ctwig/index.htm, which does
have some basic examples.  This was in the main docs
but needs some rework so is not there at the mo.

Let me know how you get on and if you need any more
help.

Best regards

Jeremy

 --- José_Moreira <[EMAIL PROTECTED]> wrote: >
hello i read lots of cocoon docs but still didnt
> understand how coccoon
> works ...
>
> how to mount a cocoon webapp ? under cocoon/mount or
> cocoon web.xml ??
>
> how can i create a simple cocoon webapp that reads
> xml from /docs and parses
> it to html ?
>
> arrghh so many doubts and so little time :(
>
>

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

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





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

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




Re: Cocoon Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Franck Lumpe
> An "over the desk" shout at Carsten reveals that the Portal is working in
> the current CVS version - so I am not sure what your problem is exactly.

> Can you repost the exact error and stack trace again.

> Matthew

Here comes the repost.

TIA

Regards,
Franck

___


Hello everyone,

I use JDK 1.4.1 + Tomcat 4.1.12 + Cocoon 2.1 DEV Updated Head CVS on Windows
2000. Cocoon seems to be using the correct versions of Xerces, Xalan and
XML-Api (from the Tomcat endorsed directory).

Samples are running quite nicely :-) except for:

1) The XMLForm-sample error already reported by Wolfram.

2) The Portal Framework Sample: I  get an error 500 with

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
that org.apache.cocoon.ProcessingException says: Failed to execute pipeline.

More precisely: org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: java.lang.NullPointerException

... (Full Trace after end of message).

Behaviour is that you get the error after you log in the Portal, and if you
return to the URI after you are authentificated, then you always get the
error (make sense). So at first it seems that its working but when you log
as guest or cocoon, then you get the error.

Question is:

1) Should it be working?
2) Or it is just that this area is Work in Progress (yeah I know its 2.1
DEV).

Help very appreciated.

Franck Lumpe
Iberplus Internet, S.L.

___

Original exception : java.lang.NullPointerException
at org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:178)
at org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:172)
at
org.apache.cocoon.components.source.SourceUtil.readDOM(SourceUtil.java:420)
at
org.apache.cocoon.webapps.portal.components.PortalManager.buildRoleProfile(P
ortalManager.java:3669)
at
org.apache.cocoon.webapps.portal.components.PortalManager.buildProfile(Porta
lManager.java:1258)
at
org.apache.cocoon.webapps.portal.components.PortalManager.createProfile(Port
alManager.java:3479)
at
org.apache.cocoon.webapps.portal.components.PortalManager.showPortal(PortalM
anager.java:763)
at
org.apache.cocoon.webapps.portal.generation.PortalGenerator.generate(PortalG
enerator.java:84)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:512)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:204)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:483)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:149)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:158)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:326)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:308)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:131)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:326)
at
org.apache.cocoon.components.treepr

Re: pipeline result through SOAP?

2002-11-21 Thread Marcus Crafter
Hi Josema,

On Tue, Nov 19, 2002 at 11:59:00AM +0100, Josema Alonso wrote:
> I've just took a look.
> It is using the AxisRPCReader. I thought a reader was something like a
> complete pipeline. I mean, it gets the request, and makes the needed steps
> to generate, transform and serialze.

Yes, a Reader is a sitemap component that performs generation and
serialization in one stage. There were discussions on the list
as to why a Reader was chosen, essentially, ease of use and to
take more advantage of the Axis server component.

> I'm using a transformer that already generates the wanted XML response. How
> could I embed the result in that reader?

Ok, the AxisRPCReader essentially wraps an Axis SOAP server, and
makes it available in the sitemap to handle incoming requests.

This means that webservices are typically written Axis-style, with
a deployment descriptor (have a look in
src/scratchpad/src/org/apache/cocoon/webservices/*). In fact, you
should be able to deploy any Axis webservice inside the reader, as
its basically the same code.

You should also be able to access pipelines from within an Axis
webservice by making an internal request via the cocoon:/ protocol.

Note, I haven't yet done this, but all that should be required is to
write a component that implements Composable, lookup the source
resolver, and resolve a uri containing the pipeline you want to 
resolve.

This should let you use pipelines to write SOAP services. The
method of having to lookup the source resolver, and resolve the
uri manually could probably be better streamlined somehow, perhaps
similar to how the AvalonProvider is written. I'm more than open to
any suggestions.

> Btw, any step by step example on how to use that reader? I can see the XSL
> and XSP but can't figure out how to feed it with a SOAP request and get a
> SOAP response from it.

You can send a SOAP request by using the XSP SOAP tag library in 
Cocoon, the Axis SOAP client library, or any other SOAP client.
The input and output XML fragments are IIRC logged to the
sitemap.log, so you should be able to see everything that is going on.

The XSP page that shows the server status (in
scratchpad/webapp/samples/soap-server) uses the XSP SOAP tag
library to make a request to the local Cocoon instance to get the
server configuration.

Hope that helps mate! :)

Cheers,

Marcus
-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_'
  .
&&&:

-
Please check that your 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 Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Matthew Langham
>>
I was referring to the current 2.1 CVS version too!

I could not find any bug in Bugzilla reporting this problem.

Is the Portal Sample is supposed to work already, or is it still work in
progress?
<<
An "over the desk" shout at Carsten reveals that the Portal is working in
the current CVS version - so I am not sure what your problem is exactly.

Can you repost the exact error and stack trace again.

Thanks

Matthew


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


-Original Message-
From: Franck Lumpe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 12:58 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Cocoon Portal Sample - Failed to execute pipeline error


I was referring to the current 2.1 CVS version too!

I could not find any bug in Bugzilla reporting this problem.

Is the Portal Sample is supposed to work already, or is it still work in
progress?

Anyone has a clue?

Thanks in advance,

Franck


- Original Message -
From: "Gabriele Domenichini" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:47 AM
Subject: Re: Cocoon Portal Sample - Failed to execute pipeline error


> Sorry this is not a solution/suggestion but I want to point out that the
> same happen with the cvs version
> Franck Lumpe wrote:
>
> >Hello everyone,
> >
> >I use JDK 1.4.1 + Tomcat 4.1.12 + Cocoon 2.1 DEV Updated Head CVS on
Windows
> >2000. Cocoon seems to be using the correct versions of Xerces, Xalan and
> >XML-Api (from the Tomcat endorsed directory).
> >
> >Samples are running quite nicely :-) except for:
> >
> >1) The XMLForm-sample error already reported by Wolfram.
> >
> >2) The Portal Framework Sample: I  get an error 500 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]>


-
Please check that your 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 Portal Sample - Failed to execute pipeline error

2002-11-21 Thread Franck Lumpe
I was referring to the current 2.1 CVS version too!

I could not find any bug in Bugzilla reporting this problem.

Is the Portal Sample is supposed to work already, or is it still work in
progress?

Anyone has a clue?

Thanks in advance,

Franck


- Original Message -
From: "Gabriele Domenichini" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:47 AM
Subject: Re: Cocoon Portal Sample - Failed to execute pipeline error


> Sorry this is not a solution/suggestion but I want to point out that the
> same happen with the cvs version
> Franck Lumpe wrote:
>
> >Hello everyone,
> >
> >I use JDK 1.4.1 + Tomcat 4.1.12 + Cocoon 2.1 DEV Updated Head CVS on
Windows
> >2000. Cocoon seems to be using the correct versions of Xerces, Xalan and
> >XML-Api (from the Tomcat endorsed directory).
> >
> >Samples are running quite nicely :-) except for:
> >
> >1) The XMLForm-sample error already reported by Wolfram.
> >
> >2) The Portal Framework Sample: I  get an error 500 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]>




FW: [donation] user communication system

2002-11-21 Thread Giuseppe Di Pierri
Hi everybody,

we are working with Cocoon as Users for a year, but this is the first time
we develop something for it.

We would like to donate this couple of classes that serves as 'standard'
User Communication System (don't let you deceive by the name, it is a simple
stuff).

The aim is to simply communicate by means of homogeneous messages to the
web-application user from actions or XSPs or generated XMLs.

We can describe it as three components:

Message Model: collection of information (like type and parameters) that
characterizes the message. Generally this is created in an action or xsp.

Message View: composition of the message using the model, in the 'language'
of the final user. Generally created in a first generated xml or xsp.

Message Stylesheet: customization of the user interface for the list of
accumulated messages (typically message2html.xsl).

For a better understanding of its mechanism we suggest to play with the
sample 'trading' and click on readme.

It is also compliant with the actual form-validation action status.
At last it has been developped and tested on cocoon 2.0.3.

We hope that you find it helpful.
Since we are not so proud for its code quality, we hope that you can help us
working on it for improving and extending it as well.

ciao

patrick ([EMAIL PROTECTED])
and his right hand [EMAIL PROTECTED] (who's writing)

PS: this has been developped and tested on cocoon 2.0.3



trading.zip
Description: Zip compressed data


classes.zip
Description: Zip compressed data
-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


Re: Cocoon GetTogehter in Ghent

2002-11-21 Thread Michael Melhem
On Wed, Nov 20, 2002 at 01:50:10PM +0100, Steven Noels wrote:
> Matthew Langham wrote:
> 
> >Hi,
> >
> >I have my pictures from the Cocoon GetTogether up here:
> >
> >http://sunshine.s-und-n.de/events/ghent/index.html
> >
> >A great event and many thanks go out to Steven Noels and the "rest of the
> >team" for putting on such a great job. See you next year!
> 
> I'll be slowly preparing a post-mortem site with everything linked and 
> aggregated - this will happen in the next days/weeks (some actual work 
> to do now ;-)
> 
> For now, please head towards 
> http://radio.weblogs.com/0103539/2002/11/20.html#a61 to find links to 
> the image gallery and http://radio.weblogs.com/0103539/2002/11/19.html 
> for my rolling blog of that day.
> 
> Thanks to all who attended, it was fun all the way :-)

If I may, I would just like to add my voice to this chorus of gratitude by 
thanking Steven, Marc and Bruno (the Outerthought crew) for putting on 
such a fantastic and brilliantly organised event! 

This event has gone a long way in helping bring the cocoon cummunity
even closer together and proves once again that email contact is no
substitute for face to face contact.

Thanks a lot Guys :)

Regards,
Michael Melhem

Ps Wow ... Ghent is a very beautiful town!
> 
> We'll be baack! ;-)
> 
> 
> -- 
> Steven Noelshttp://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog at  http://radio.weblogs.com/0103539/
> stevenn at outerthought.orgstevenn at apache.org
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




RE: URI parts extraction

2002-11-21 Thread Alten, Jelle Paul (uto)
Hi everybody and Yatin,

As my first contribution to this list I thought I'd help someone... I
included a simple stylesheet that does what you want. Hope it helps.

Jelle

PS I was there in Nazareth, and now I'm here too!  Woo hoo!

--- here is the xsl 

http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>





http://hostname/cocoon/dir1/dir2/dir3/dir4/file1





































--- end of xsl ---

> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Verzonden: woensdag 20 november 2002 19:06
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: URI parts extraction
> 
> 
> Yatin,
> 
> You could just pass the whole URI in as one parameter and 
> write templates that recursively extract the parts. It's a 
> little tedious, but it can be done. I don't have an example 

> >>
> >>Yatin Shah <[EMAIL PROTECTED]> wrote:
> >>
> >>  
> >>
> >>>Is there an existing component(a Matcher!) which will 
> extract individual
> >>>names from a URI?
> >>>What I want is:
> >>>Given http://hostname/cocoon/dir1/dir2/dir3/dir4/file1
> >>>I want XML file as follows:
> >>>
> >>>
> >>> cocoon 
> >>> dir1 
> >>> dir2 
> >>> dir3 
> >>> dir4
> >>>  file1
> >>>
> >>>
> >>>
> >>>[Although I do not need it, we can have 
> ,, 
> >>>tags to the xml file as well].
> >>>-Yatin
> >>>
> >>>-- 
> >>>Yatin Shah, President   mailto:[EMAIL PROTECTED]
> >>>Kripa Inc.  http://www.kripa.com
> >>>Dayton, New Jersey USA  phone:  732.329.8303

-
Please check that your 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 advice for Mac OS X install?

2002-11-21 Thread Deepak Mehta
Daniel,

both versions of MacOS X work perfectly. Used any Tomcat/Cocoon 
combination that is supported. I personally use Tomcat 4.0.6/Cocoon 
2.0.3 as a webservice on an EJB container.

As long as you stick to the JavaVM 1.3.1 which is standard on MacOS X 
Server and Client 10.1 or 10.2. I have not yet tried the JavaVM 1.4.1 
DP5 which is available... I'd rather wait for the final release!

Just make sure that your $JAVA_HOME is set to /Library/Java/Home

Regards
Dp

On Thursday, Nov 21, 2002, at 11:42 Europe/Brussels, Daniel Smith wrote:

Hi all. My first post here. Thanks much for the existence of this 
project and list. I checked the archives and there was some 
documentation on OS X, but I wondered if anyone could give me any 
update who is currently running on any versions of this? Would any 
particular version be better to use? 10.1 or 10.2, or the basic Server 
or Jaguar Server? I have them all, so I thought it best to check 
first. Thanks a lot.

Yours,

Daniel

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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

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


--
Sooner or later you must pay for your sins.

Those who have already paid may disregard this message


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

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




Newbie advice for Mac OS X install?

2002-11-21 Thread Daniel Smith
Hi all. My first post here. Thanks much for the existence of this project 
and list. I checked the archives and there was some documentation on OS X, 
but I wondered if anyone could give me any update who is currently running 
on any versions of this? Would any particular version be better to use? 10.1 
or 10.2, or the basic Server or Jaguar Server? I have them all, so I thought 
it best to check first. Thanks a lot.

Yours,

Daniel

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
Please check that your 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: Antwort: Retrieving init parameters via HttpContext in Cocoon2

2002-11-21 Thread Peter Smink



Yes, thanks
it works (if you put it before the servlet 
tag).
Peter

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, November 21, 2002 8:30 
  AM
  Subject: Antwort: Retrieving init 
  parameters via HttpContext in Cocoon2
  Hello,   For us the following works, in your web.xml you 
  have to specify your  parameters 
  like:         
   
                      
  whatever       
                
  whateverValue       
                whatever 
  description     
         
     Then we use 
  context.getInitParameter("whatever") to retrieve a  parameter.  HTH,  miHam


Use of SessionAttributeSelector

2002-11-21 Thread Christian Joelly
Hello!

can anybody plz give me an example on how to use the
SessionAttributeSelector to check if an attribute exists in the actual
session? I always see the message:

DEBUG   (2002-11-21) 10:37.55:492   [sitemap.selector.session-attribute]
(/knapp/images/icon-folder-open.gif) Thread-41/SessionAttributeSelector:
Session attribute 'user' not set -- failing.

in the sitemap.log when i use following sitemap config:



  

  


in general: how can i construct tests or what are allowed tests?

thx, Chris

*lostinthefinenewcocoonbookssearchingformoredetailedinformationbutstillhavenotfoundit*
;-)

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed





msg20847/pgp0.pgp
Description: PGP signature


RE: XMLForm: dynamic content listbox

2002-11-21 Thread Josema Alonso
>If I have well understood, I could replace the hard-coded values of
allHobbies by a query to a database. >isn't it?
Yes. Just fill the appropriate Java structure of your choice with the
database values after querying it.

>What would be the solution if I want to retrieve the allHobbies values from
an external xml file?
>Is there an example?
Well, I'm using Xindice as the backend DB. I'm using DOM nodes to load the
content from the DB and then map those nodes to the form (there's an example
in the wizard with DOM nodes, too). It took me some time to make it work but
I know I get it. I do not have the code right here, but could send you a
complete example later today if you're interested.

Best.


-
Please check that your 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: XMLForm: dynamic content listbox

2002-11-21 Thread Sylvain.Thevoz
Thanks Alonso.

I have read userIdentity.xml and UserBean.java files from Cocoon Wizard sample.
In UserBean.java, I have found a method called "initHobbies()". This method simply 
init all hobbies.

If I have well understood, I could replace the hard-coded values of allHobbies by a 
query to a database. isn't it?

What would be the solution if I want to retrieve the allHobbies values from an 
external xml file?
Is there an example?

Thank you
Sylvain


-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]]
Date: mercredi, 20. novembre 2002 19:50
À: Cocoon-Users
Objet: Re: XMLForm: dynamic content listbox


Hello.

I had a very similar problem a few days ago. The way to go is the itemset
tag as used in the wizard demo. Take a look at the 'userIdentity.xml' file
where the Hobbies get listed:

Hobbies






All you have to do is to change the UIType to the one desired and fill the
items with values taken from the DB, for example from the action.

Hope it helps,
Josema.


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 3:56 PM
Subject: XMLForm: dynamic content listbox


> Hello,
>
> I'm using listbox in XMLForm (with tag ). The content of the listbox (the items listed) is
hard-coded in the xml document (view) like that:
>
> 
>  
>   Unix
>   Unix>
>  
>  
>   Windows
>   Windows
>  
> 
>
> Is there a possibility to retrieve dynamically these items from a database
instead of using the hard-coded items in xml document??
>
> Thank you
> Sylvain
>
> -
> Please check that your 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: Output to file/ replace file

2002-11-21 Thread Ludovic de Beaurepaire
Hi Rob,

> 1. How can I manipulate files using cocoon, I have some xml data I want to
be able to change without storing it in a database.

You can store your xml generated data in a stylesheet :


http://www.w3.org/1999/XSL/Transform";
 xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
 extension-element-prefixes="redirect">

 
 
 
  
 
 
 


I think there are better solutions, but i didn't find it when i have this
need.

Ludovic


- Original Message -
From: "Rob Hoopman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:16 AM
Subject: Output to file/ replace file


> Hi,
> I realise this is a question that probably has come up before on the list
but I can't seem to find it in the archives or on google.
>
> I have two questions:
> 1. How can I manipulate files using cocoon, I have some xml data I want to
be able to change without storing it in a database.
>
> 2. The same question but for binary data, I can upload binary files just
fine, but haven't found an obvious way to pick it up from the
'upload-directory' and store it in it's final location.
>
> Pointers to information or past threads apreciated.
>
> Rob
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>


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

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




Re: Cocoon GetTogehter in Ghent

2002-11-21 Thread Christian Haul
A big hand to Steven and all that helped organize this wonderful event!
Thank you!

It was great meeting you all. Hope to see you all soon again in real 
life. (Gosh, did you know real life does exist?! ;-)

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