Re: XSLT transformation

2005-08-03 Thread Lars Huttar

Antony Grinyer wrote:


Thanks Jorn - I tried commenting out almost everything in the stylesheet and I 
still get the error...back to the drawing board.

Thanks,
Ant
 

Another suggestion is to run the stylesheet outside of Cocoon using 
Xalan (since that is what Cocoon uses by default) and see if Xalan gives 
any specific errors. (One way to do this is to download the trial 
version of Oxygen (oxygenxml.com) and do a "Validate" on the stylesheet.)


Or, after getting this error in Cocoon, look in the logs error.log and 
core.log; they are usually more helpful than sitemap.log, in my experience.
Look for an error that says unable to create transformer, accompanied by 
an error message about a problem in the stylesheet.


Third suggestion: show us the stylesheet.

Lars



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



Re: Graphing standards

2005-08-03 Thread Antonio Gallardo

Ron Wheeler wrote:

Very slick. The designer's talents really come through in the whole 
presentation.

It just needs a sound track to be a nice introduction to Cocoon.


Good news: There is sound and video of the presentations ! :-DDD

Check the GT events here (click on the "material from events" link) The 
presentation is from GT2003. ;-)


http://cocoon.apache.org/mirror.cgi



Thanks for sending that. What did you use to do the drawings?


I never made a draw. I cannot help here, sorry :-(

Best Regards,

Antonio Gallardo


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



Re: XSLT transformation

2005-08-03 Thread Marc Salvetti
Yes, this is the expected behavior, the pipe will always stop at the 
first serializer, or before if there is an error, no matter what's after 
it. I just left the second transform because i always use this technique 
to debug my pipes : moving a serialize type="xml"  line to differents 
places in the pipe to figure the guilty transform.


So in your case, .if the following give no error

 
 
 

It just means your bdbxml class is ok.
So you can look for the pb in containerslist.xsl


Marc

Antony Grinyer a écrit :


Thanks for the idea Mark - I tried this and it just displays the XML? Seems it's stopping at the   and not moving onto ?

Thanks,
Ant

 


-Original Message-
From: Marc Salvetti [mailto:[EMAIL PROTECTED] 
Sent: 03 August 2005 06:26 pm

To: users@cocoon.apache.org
Subject: Re: XSLT transformation

You can just try the following pipe


 
 
 
 
 


if you get the same error, the pb is in the java class, if 
not, it's in the stylesheet :)


Marc

Antony Grinyer a écrit :

   


Hi,

A have a simple sitemap entry as below:








The generator is a simple XML file which is passed to a java class 
transformer ( referenced as type="bdbxml") which returns XML results.
This all works fine if I use   to simply 
output the XML, however if I try to transform the XML output 
 

with the 
   


XSLT transformer above I get an error:



 


Error executing pipeline.


 




 

org.apache.cocoon.ProcessingException: Error executing pipeline.: 
java.lang.RuntimeException


 

I know the XSLT containerslist.xsl is correct as I've tried 
 

it against 
   

some sample output XML in XMLSpy, but it appears that when I 
 

add this 
   


XSLT transformer I get a Processing Exception?

In the sitemap.log it is reported as:

Unable to get parser: java.lang.RuntimeException:
java.lang.NullPointerException

Any ideas please? (for a Cocoon newbie) Thx in advance, Ant



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






 


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




   





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




 



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



Re: Graphing standards

2005-08-03 Thread Ron Wheeler
Very slick. The designer's talents really come through in the whole 
presentation.

It just needs a sound track to be a nice introduction to Cocoon.

Thanks for sending that. What did you use to do the drawings?

Ron

Antonio Gallardo wrote:


Ron Wheeler wrote:


Is there a generally accepted notation for documenting pipelines.

What symbols are used for aggregate, source, transform serialize, etc?



See pages 14-22: 
http://apache.gr-linux.com/cocoon/events/gt2003/presentations/11-visual-journey.pdf 



Best Regards,

Antonio Gallardo



Ron

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





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





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



Re: Graphing standards

2005-08-03 Thread Antonio Gallardo

Ron Wheeler wrote:


Is there a generally accepted notation for documenting pipelines.

What symbols are used for aggregate, source, transform serialize, etc?


See pages 14-22: 
http://apache.gr-linux.com/cocoon/events/gt2003/presentations/11-visual-journey.pdf


Best Regards,

Antonio Gallardo



Ron

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




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



[CFORM] How can I remove a previous validation error from a widget?

2005-08-03 Thread Dan Ochs
Hi everyone, I'm trying to do some javascript validation with my form
that validates that at least one out of two fields are filled in.  I
put the validation element and javascript under the form element and
the validation works fine the first time I execute it.  In the
validation code I set the validation error on the SECOND of the two
widgets.

If I try to submit the form without filling in any data the first
time, the validation works fine.  Then if I fix the problem by filling
in some data in the FIRST field and resubmit, the validation still
fails.  If I fix the problem by filling in some data in the SECOND
field and resubmit, the validtion works correctly.  So, I think what I
need to do is clear the validation error from the SECOND field, but
I'm not sure how to do this.

I set the error on the field by doing:
if (isvalid==false){
   form.lookupWidget("fieldId").setValidationError(new
Packages.org.apache.cocoon.forms.validation.ValidationError("error_key",true)));
}

I have tried removing the validation error by doing this, and the
validation error is removed, but the form does not submit and I get
the page back again, but without any errors. (So I have to click
submit twice after the error is fixed)
else{
   form.lookupWidget("fieldId").setValidationError(null);
}


Anyone have any suggestions of how to implement this or a way I should
reorganize my form to get this to work properly?

thanks!
dan

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



Re: CForms - adding style to labels

2005-08-03 Thread footh
Yes, that put me on the right track.  I was thrown off
this track because I changed the
forms-pages-styling.xsl and the changes did show up. 
However, that is "included" in the main page, not
"imported".  In fact, it turns out I had to alter the
forms-advanced-fields-styling.xsl because that is
where forms-fields-styling.xsl is imported.

--- Leszek Gawron <[EMAIL PROTECTED]> wrote:

> footh wrote:
> > Hello,
> > 
> > I'm trying to add a class attribute to the 
> tag
> > that gets generated from the
> > "forms-samples-styling.xsl" stylesheet.  However,
> I
> > can't seem to figure out how to do it.  In all the
> > associated xsl files, I can only find the text
> > " "forms-field-styling.xsl"
> > in this template:
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> > However, this appears to never get called.  I've
> > removed the  tag and done other things to
> this
> > template but the same html is generated each time.
>  I
> > simply want to add a class to style this 
> tag.
> This is because you have to touch the main
> stylesheet 
> forms-samples-styling. Otherwise cocoon will not
> detect changes in 
> imported stylesheets and will still transform your
> forms using cached 
> instance.
> 
> -- 
> Leszek Gawron 
> [EMAIL PROTECTED]
> Project Manager   
> MobileBox sp. z o.o.
> +48 (61) 855 06 67 
> http://www.mobilebox.pl
> mobile: +48 (501) 720 812   fax:
> +48 (61) 853 29 65
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: sitemap error

2005-08-03 Thread Joerg Heinicke

On 03.08.2005 19:37, Pokuru, Rao wrote:

After i changed sitemap.xmap, i rebooted the tomcat and tried to access URL.

At this point it should generated new sitemap_xmap.java and corresponding class files in the WORK folder, but it doesn't. 


Sometimes, i am getting "NO MORE DTM IDs available error" when i tried to 
access the URL.

Sometimes it takes more than 15 hours to do compile sitemap or even few days. 
Is it common? Is there any way to monitor the progress of sitemap 
compilation--how long does it take to compile??


It should definitely not take that long! For us it took 5 minutes to 
transform a bigger sitemap to Java and compile it.



My sitemap has about 100 pipelines and runs on tomcat5.0.14 and uses cocoon 2.0 
engine.


How huge is it?? Is there any chance to port your application to 2.1 or 
most recent 2.0? There you will have the interpreted sitemap which 
should solve your problem. But it will still consume many resources. 
Think about splitting your sitemap into subsitemaps and mount them from 
a much littler root sitemap. This is true for both the compiled and the 
interpreted sitemap.


Joerg

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



Re: RequestURI in aggregation page

2005-08-03 Thread jdwilliams
Mark Lundquist wrote:

I'm curious though why you don't want to do the aggregation in the
sitemap...? 

=

A fair question.

The scenario is this: Authors create documentation in XML, and no one is
to touch the XML documentation except the author or an editor.

The documentation is created either statically, using Ant, or
dynamically, by simply dropping the XML source files into a directory
under Cocoon.

These source files contain references that pull menus and other "stuff"
into the HTML, PDF, or whatever is created. Again, these XSLs are not to
be touched by anyone other than the authorized personnel.

So, I can only call these XML and XSL files, not modify them. With me so
far? ;)

OK. So, now we have these files that contain content, and they also
contain menus to other content files.

Now we want to drop these XML files containing content into a directory,
and aggregate them with newsfeeds, something like a portal, but without
the necessity of authentication.

While I could do the aggregation in the sitemap, I would have to create
a new matcher every time a new source file was created, thus always
having to update the sitemap.

By using a single "aggregate.xml" file to call the ever-changing content
files, I can use the wildcard matcher. Thus, however many content files
are added or deleted, the sitemap does not have to change.

Make sense?

So, the ideal thing would be a sitemap matcher like the following:

  




  

...where the "index.xsl" is an override that calls the pre-existing XSL
and my code that transforms the RSS newsfeeds and whatever other
overrides I need to make.

Now, the "aggregate.xml" would call the content file requested by the user:

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





And the missing piece(s) of the puzzle are:

1. Given a request from the client for "http://mydomain/foo";, how to
capture "foo" in a variable in the sitemap, and
2. Pass that variable in the place of {REQUESTED URL} in the
"aggregate.xml" above.

Further suggestions would be welcomed, and I would even buy you a beer
in San Diego in December.

Joe


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



Re: RequestURI in aggregation page

2005-08-03 Thread Mark Lundquist


Hi Joe,

On Aug 3, 2005, at 11:59 AM, [EMAIL PROTECTED] wrote:


Unfortunately, while what you suggest does work, it does not answer the
question I asked, which is:

How to pass the resource path of the request into an XML file, 
similarly

to passing a session variable.


Well, you'd generate the XML from a template.  Using either the 
JXTemplateGenerator or the Velocity generator, you can use the 
${request} variable to get at the request URI directly, or you can pass 
it in as a sitemap parameter and use the ${parameters} object to access 
it within the template.


Or you could run the XML file (the one containing the cincludes) 
through an XSLT transformer, using a stylesheet that substitutes from a 
stylesheet parameter, before it hits the CIncludeTransformer.


I'm curious though why you don't want to do the aggregation in the 
sitemap...?


—ml—


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



Re: CForms - adding style to labels

2005-08-03 Thread Leszek Gawron

footh wrote:

Hello,

I'm trying to add a class attribute to the  tag
that gets generated from the
"forms-samples-styling.xsl" stylesheet.  However, I
can't seem to figure out how to do it.  In all the
associated xsl files, I can only find the text
"


  

  

However, this appears to never get called.  I've
removed the  tag and done other things to this
template but the same html is generated each time.  I
simply want to add a class to style this  tag.
This is because you have to touch the main stylesheet 
forms-samples-styling. Otherwise cocoon will not detect changes in 
imported stylesheets and will still transform your forms using cached 
instance.


--
Leszek Gawron  [EMAIL PROTECTED]
Project ManagerMobileBox sp. z o.o.
+48 (61) 855 06 67  http://www.mobilebox.pl
mobile: +48 (501) 720 812   fax: +48 (61) 853 29 65


smime.p7s
Description: S/MIME Cryptographic Signature


Re: RequestURI in aggregation page

2005-08-03 Thread Leszek Gawron

[EMAIL PROTECTED] wrote:
Thanks for your prompt reply. 


Unfortunately, while what you suggest does work, it does not answer the
question I asked, which is:

How to pass the resource path of the request into an XML file, similarly
to passing a session variable.

ok. I thought you just wanted this use case to work.

In order to pass a parameter to your "file" you can either:

1) use a generator (like jx or xsp or a custom one) and pass that 
parameter from the sitemap:


  


in jx you can read the parameter the using 
${cocoon.parameters.getParameter( "uri" )}
(you may want to check the syntax - it may differ in 2.1 and in cocoon 
trunk due to some refactorings)


2) apply a stylesheet to your base file and parametrize it the same way 
I did at 1)


--
Leszek Gawron  [EMAIL PROTECTED]
Project ManagerMobileBox sp. z o.o.
+48 (61) 855 06 67  http://www.mobilebox.pl
mobile: +48 (501) 720 812   fax: +48 (61) 853 29 65


smime.p7s
Description: S/MIME Cryptographic Signature


CForms - adding style to labels

2005-08-03 Thread footh
Hello,

I'm trying to add a class attribute to the  tag
that gets generated from the
"forms-samples-styling.xsl" stylesheet.  However, I
can't seem to figure out how to do it.  In all the
associated xsl files, I can only find the text
"


  

  

However, this appears to never get called.  I've
removed the  tag and done other things to this
template but the same html is generated each time.  I
simply want to add a class to style this  tag.

Can anyone offer any suggestions?





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: XSLT transformation

2005-08-03 Thread Mark Lundquist


On Aug 3, 2005, at 12:04 PM, Antony Grinyer wrote:

Thanks for the idea Mark - I tried this and it just displays the XML? 
Seems it's stopping at the   and not moving 
onto ?


It looks like Marc had a copy/paste error in the pipeline sample he 
sent?


Invoking a serializer _always_ terminates the pipeline processing.



Thanks,
Ant


-Original Message-
From: Marc Salvetti [mailto:[EMAIL PROTECTED]
Sent: 03 August 2005 06:26 pm
To: users@cocoon.apache.org
Subject: Re: XSLT transformation

You can just try the following pipe


  
  
  
  
  




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



RE: XSLT transformation

2005-08-03 Thread Antony Grinyer
Thanks Jorn - I tried commenting out almost everything in the stylesheet and I 
still get the error...back to the drawing board.

Thanks,
Ant

> -Original Message-
> From: Jörn Heid [mailto:[EMAIL PROTECTED] 
> Sent: 03 August 2005 05:56 pm
> To: users@cocoon.apache.org
> Subject: Re: XSLT transformation
> 
> Just remember that XML Spy does not use the same XSLT 
> transformer as Cocoon.
> I think there is an error in your stylesheet. Try to comment 
> out some parts of it to find the lines which causes the error.
> 
> JOERN
> 
> Antony Grinyer schrieb:
> 
> >Hi,
> >
> >A have a simple sitemap entry as below:
> >
> >
> >  
> >  
> >  
> >  
> >
> >
> >The generator is a simple XML file which is passed to a java class 
> >transformer ( referenced as type="bdbxml") which returns XML results.
> >This all works fine if I use   to simply 
> >output the XML, however if I try to transform the XML output 
> with the 
> >XSLT transformer above I get an error:
> >
> >  
> >
> >>>Error executing pipeline.
> >>>  
> >>>
> >
> >  
> >
> >>>org.apache.cocoon.ProcessingException: Error executing pipeline.: 
> >>>java.lang.RuntimeException
> >>>  
> >>>
> >
> >I know the XSLT containerslist.xsl is correct as I've tried 
> it against 
> >some sample output XML in XMLSpy, but it appears that when I 
> add this 
> >XSLT transformer I get a Processing Exception?
> >
> >In the sitemap.log it is reported as:
> >
> >Unable to get parser: java.lang.RuntimeException:
> >java.lang.NullPointerException
> >
> >Any ideas please? (for a Cocoon newbie) Thx in advance, Ant
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >  
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 



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



RE: XSLT transformation

2005-08-03 Thread Antony Grinyer
Thanks for the idea Mark - I tried this and it just displays the XML? Seems 
it's stopping at the   and not moving onto 
?

Thanks,
Ant

> -Original Message-
> From: Marc Salvetti [mailto:[EMAIL PROTECTED] 
> Sent: 03 August 2005 06:26 pm
> To: users@cocoon.apache.org
> Subject: Re: XSLT transformation
> 
> You can just try the following pipe
> 
> 
>   
>   
>   
>   
>   
> 
> 
> if you get the same error, the pb is in the java class, if 
> not, it's in the stylesheet :)
> 
> Marc
> 
> Antony Grinyer a écrit :
> 
> >Hi,
> >
> >A have a simple sitemap entry as below:
> >
> >
> >  
> >  
> >  
> >  
> >
> >
> >The generator is a simple XML file which is passed to a java class 
> >transformer ( referenced as type="bdbxml") which returns XML results.
> >This all works fine if I use   to simply 
> >output the XML, however if I try to transform the XML output 
> with the 
> >XSLT transformer above I get an error:
> >
> >  
> >
> >>>Error executing pipeline.
> >>>  
> >>>
> >
> >  
> >
> >>>org.apache.cocoon.ProcessingException: Error executing pipeline.: 
> >>>java.lang.RuntimeException
> >>>  
> >>>
> >
> >I know the XSLT containerslist.xsl is correct as I've tried 
> it against 
> >some sample output XML in XMLSpy, but it appears that when I 
> add this 
> >XSLT transformer I get a Processing Exception?
> >
> >In the sitemap.log it is reported as:
> >
> >Unable to get parser: java.lang.RuntimeException:
> >java.lang.NullPointerException
> >
> >Any ideas please? (for a Cocoon newbie) Thx in advance, Ant
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 



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



Re: RequestURI in aggregation page

2005-08-03 Thread jdwilliams
Thanks for your prompt reply. 

Unfortunately, while what you suggest does work, it does not answer the
question I asked, which is:

How to pass the resource path of the request into an XML file, similarly
to passing a session variable.

Thanks.

Joe

==

Leszek Gawron wrote:

J.D. Williams wrote:

> I should know how to do this, but if someone could point me in the
right direction, I would appreciate it very much.
>
> I want to aggregate several pipelines using cinclude. I would like to
change one of those pipelines based on user request. For example:
>
> 
>   
>   
>   
> 
>
> For this matcher, aggregate.xml consists of:
>
> http://apache.org/cocoon/include/1.0";>
>   
>   
>   
> 
>
> So, how can I pass the RequestURI to aggregate.xml so that "foo" is
replaced by the requested URI? Or is there some other way of doing it?

something like:


  



  
  
  


I do not remember if you should use {1} or {../1}. Just try it.

-- 
Leszek Gawron  [EMAIL PROTECTED]
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67  http://www.mobilebox.pl
mobile: +48 (501) 720 812   fax: +48 (61) 853 29 65

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




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



sitemap error

2005-08-03 Thread Pokuru, Rao
After i changed sitemap.xmap, i rebooted the tomcat and tried to access URL.

At this point it should generated new sitemap_xmap.java and corresponding class 
files in the WORK folder, but it doesn't. 

Sometimes, i am getting "NO MORE DTM IDs available error" when i tried to 
access the URL.

Sometimes it takes more than 15 hours to do compile sitemap or even few days. 
Is it common? Is there any way to monitor the progress of sitemap 
compilation--how long does it take to compile??

My sitemap has about 100 pipelines and runs on tomcat5.0.14 and uses cocoon 2.0 
engine.

Please advice.

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



Re: XSLT transformation

2005-08-03 Thread Marc Salvetti

You can just try the following pipe


 
 
 
 
 


if you get the same error, the pb is in the java class, if not, it's in 
the stylesheet :)


Marc

Antony Grinyer a écrit :


Hi,

A have a simple sitemap entry as below:


 
 
 
 


The generator is a simple XML file which is passed to a java class
transformer ( referenced as type="bdbxml") which returns XML results.
This all works fine if I use   to simply
output the XML, however if I try to transform the XML output with the
XSLT transformer above I get an error:

 


Error executing pipeline.
 



 

org.apache.cocoon.ProcessingException: Error executing pipeline.: 
java.lang.RuntimeException
 



I know the XSLT containerslist.xsl is correct as I've tried it against
some sample output XML in XMLSpy, but it appears that when I add this
XSLT transformer I get a Processing Exception? 


In the sitemap.log it is reported as:

Unable to get parser: java.lang.RuntimeException:
java.lang.NullPointerException

Any ideas please? (for a Cocoon newbie)
Thx in advance,
Ant



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




 



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



Re: XSLT transformation

2005-08-03 Thread Jörn Heid

Just remember that XML Spy does not use the same XSLT transformer as Cocoon.
I think there is an error in your stylesheet. Try to comment out some 
parts of it to find the lines which causes the error.


JOERN

Antony Grinyer schrieb:


Hi,

A have a simple sitemap entry as below:


 
 
 
 


The generator is a simple XML file which is passed to a java class
transformer ( referenced as type="bdbxml") which returns XML results.
This all works fine if I use   to simply
output the XML, however if I try to transform the XML output with the
XSLT transformer above I get an error:

 


Error executing pipeline.
 



 

org.apache.cocoon.ProcessingException: Error executing pipeline.: 
java.lang.RuntimeException
 



I know the XSLT containerslist.xsl is correct as I've tried it against
some sample output XML in XMLSpy, but it appears that when I add this
XSLT transformer I get a Processing Exception? 


In the sitemap.log it is reported as:

Unable to get parser: java.lang.RuntimeException:
java.lang.NullPointerException

Any ideas please? (for a Cocoon newbie)
Thx in advance,
Ant



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



 




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



XSLT transformation

2005-08-03 Thread Antony Grinyer
Hi,

A have a simple sitemap entry as below:


  
  
  
  


The generator is a simple XML file which is passed to a java class
transformer ( referenced as type="bdbxml") which returns XML results.
This all works fine if I use   to simply
output the XML, however if I try to transform the XML output with the
XSLT transformer above I get an error:

>> Error executing pipeline.

>> org.apache.cocoon.ProcessingException: Error executing pipeline.: 
>> java.lang.RuntimeException

I know the XSLT containerslist.xsl is correct as I've tried it against
some sample output XML in XMLSpy, but it appears that when I add this
XSLT transformer I get a Processing Exception? 

In the sitemap.log it is reported as:

Unable to get parser: java.lang.RuntimeException:
java.lang.NullPointerException

Any ideas please? (for a Cocoon newbie)
Thx in advance,
Ant



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



Graphing standards

2005-08-03 Thread Ron Wheeler

Is there a generally accepted notation for documenting pipelines.

What symbols are used for aggregate, source, transform serialize, etc?

Ron

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



Strange problem upgrading Tomcat/Cocoon

2005-08-03 Thread Steve Burling
I'm starting the process of upgrading our Tomcat/Cocoon install, currently 
Tomcat 5.0.16 and Cocoon 2.1.3, wanting to move to Tomcat 5.5.9 and Cocoon 
2.1.7.  I've run into a problem that I can't explain, and hope that someone 
else has seen (and solved!) the problem.


Our web/Tomcat/Cocoon server is a Sun ES3500, running Solaris 8 (uname says 
SunOS hostname 5.8 Generic_117350-25 sun4u sparc).  A vanilla install of 
Tomcat, with an un-modified server.xml, starts up just fine.  If I copy the 
cocoon.war file that results from un-tarring the Cocoon 2.1.7 distribution 
and typing "build.sh war" into Tomcat's webapps directory, the Tomcat 
startup hangs right after logging "Scheduler 
Cocoon_$_Wed_Aug_03_11:26:06_EDT_2005 started."


I've done this install on two other test machines, one a Dell box running 
Red Hat Enterprise AS 4.1, and one another Sun box running the same version 
of Solaris as the problem box.  Both installs work fine, and Tomcat starts 
up fine with Cocoon installed.  So I'm completely mystified.


I've attempted to find any reference to this problem in the list archives 
and via Google, and did find one post that claims that Cocoon and Tomcat 
5.5 simply aren't compatible, but my tests show that it works fine 
everywhere I've tried it *except* on our production server.  Any help would 
be greatly appreciated.


--
Steve Burling
University of Michigan, ICPSRVoice: +1 734 615.3779
330 Packard Street   FAX:   +1 734 647.8700
Ann Arbor, MI 48104-2910

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



JNDI Problem

2005-08-03 Thread Stundzig, Steffen
Hi folks,

I've a problem with a jndi lookup in my Action class. I've read the
guides and searched the mail archives, but I don't get it to work.

The config:
- web.xml
  
myvar
something
java.lang.String
  

- in my action impl  
  new InitialContext().lookup("java:comp/env/myvar");

but the lookup throws a NameNotFoundException: env not bound. The
Debugger affirmed it. If I do exactly the same with another servlet,
with the lookup code directly in the 'doGet'-method it works as
expected.

What can I do? Did I missed something?

I've tested it with cocoon 2.0.4 on JBoss 4.0.2/tomcat 5.0.28.


MfG
Steffen...
 

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



users@cocoon.apache.org

2005-08-03 Thread Gerald Aichholzer

Hi,

I have just discovered the problem pictured in
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=112297570819684&w=2


Adding to this is an issue with IE and the  tag. I did not
search the mail archive nor bugzilla, so maybe it is already addressed
for the next release.

The xhtml serializer will change