RE: JNDI Problem

2005-09-08 Thread Stundzig, Steffen
Hi oleg,

sorry, but I didn't find the solution. Because I do only need the JNDI
to configure some variables, I've change this into the
Cocoon->Configurable way. It's only a workaround for my special problem.

But this doesn't work for your JNDI Resource. 

Do you have tried to access the XChangeDS over a 'global JNDI' name, and
not the recommended relative name, like java:/XChangeDS on JBoss e.g.?


MfG
Steffen...
 

> -Original Message-
> From: Oleg Konovalov [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 08, 2005 4:10 PM
> To: users@cocoon.apache.org; Stundzig, Steffen
> Subject: Re: JNDI Problem
> 
> Steffen,
> 
> I have a pretty similar problem (when trying to send e-mail
> notification), getting:
> MessagingException: javax.naming.NameNotFoundException: 
> XChangeDS not bound
> 
> That happens only on one server, same code (and practically
> identical configuration) runs fine on 3 others.
> We also use Cocoon 2.0.4 and JBoss [3.0.7]
> 
> Were you able to find the cause and solution ?
> 
> Thank you in advance,
> Oleg.
> 
> 
> --- "Stundzig, Steffen" <[EMAIL PROTECTED]> wrote:
> 
> > 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]
> > 
> > 
> 
> 

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



Re: negate match

2005-09-08 Thread Lars Huttar

David wrote:


Tony Collen wrote:


Tony Collen wrote:

Hmm, it actually might not be all that easy.  The RegexpURIMatcher 
uses the org.apache.regexp package.


Details about the syntax are at:

http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html

and it seems like you can do negation, but only with character 
classes (Unless I'm missing something painfully obvious)


I guess the brute force ugly way would be to subclass 
AbstractRegexpMatcher to return true if the RE *doesn't* match, or 
allow the matcher to take a parameter to tell it to use inverse 
logic for determining a match.





I take that back. This works:


  
  







HTH,

Tony




The problem with the above is it will only match 3 letter long urls (I 
am pretty sure). Eg. 'ab' would not be matched by the second regex.


It will not even match all 3-letter URLs other than 'bob'. For example, 
it will not match 'ben' because its first letter is 'b'.



However, you can get the right behavior by doing this:

   
  
  
   

   
  
   

Since the first pattern that matches a URL is the one that fires, the 
second pattern will match everything except whatever is matched by 
previous patterns... So the second pattern will match everything except 
'bob'.

Does that fit your requirements?

Lars



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



Re: negate match

2005-09-08 Thread David

Tony Collen wrote:

Tony Collen wrote:

Hmm, it actually might not be all that easy.  The RegexpURIMatcher 
uses the org.apache.regexp package.


Details about the syntax are at:

http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html

and it seems like you can do negation, but only with character classes 
(Unless I'm missing something painfully obvious)


I guess the brute force ugly way would be to subclass 
AbstractRegexpMatcher to return true if the RE *doesn't* match, or 
allow the matcher to take a parameter to tell it to use inverse logic 
for determining a match.




I take that back. This works:


  
  







HTH,

Tony



The problem with the above is it will only match 3 letter long urls (I 
am pretty sure). Eg. 'ab' would not be matched by the second regex.


The regular expression I need to use is also much more complex then 'bob'

Knowing what regular expression library is a good thing to know. Thanks. 
That should help me figure it out.


David


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



Re: negate match

2005-09-08 Thread Tony Collen

Tony Collen wrote:

Hmm, it actually might not be all that easy.  The RegexpURIMatcher uses 
the org.apache.regexp package.


Details about the syntax are at:

http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html

and it seems like you can do negation, but only with character classes 
(Unless I'm missing something painfully obvious)


I guess the brute force ugly way would be to subclass 
AbstractRegexpMatcher to return true if the RE *doesn't* match, or allow 
the matcher to take a parameter to tell it to use inverse logic for 
determining a match.



I take that back. This works:


  
  







HTH,

Tony

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



Re: negate match

2005-09-08 Thread Tony Collen

David wrote:
I have been but it isn't working. Do you konw what the correct negation 
operator is?


I know this works in PHP: ^((?!bob).)*$
and I read that this should work in Java: ((?!bob).)*
but it does not work in xmap's regexp matcher.

An example would be great.
Eg.
"!bob"


Hmm, it actually might not be all that easy.  The RegexpURIMatcher uses 
the org.apache.regexp package.


Details about the syntax are at:

http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html

and it seems like you can do negation, but only with character classes 
(Unless I'm missing something painfully obvious)


I guess the brute force ugly way would be to subclass 
AbstractRegexpMatcher to return true if the RE *doesn't* match, or allow 
the matcher to take a parameter to tell it to use inverse logic for 
determining a match.


Tony

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



Re: negate match

2005-09-08 Thread David
I have been but it isn't working. Do you konw what the correct negation 
operator is?


I know this works in PHP: ^((?!bob).)*$
and I read that this should work in Java: ((?!bob).)*
but it does not work in xmap's regexp matcher.

An example would be great.
Eg.
"!bob"

Thanks,
David

Tony Collen wrote:

David wrote:


Is there a way to negate a match in cocoon?

For example how do I do something to all urls that do NOT contain the 
word 'bob'?


Also what is the recommended way of doing an 'or' in an xmap file?
It doesn't seem possible which causes people to copy and paste code 
all around -- which is obviously really bad to be doing.



Try the regexp matcher, with the correct regexp with the negation operator.

Tony



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



Re: negate match

2005-09-08 Thread Tony Collen

David wrote:

Is there a way to negate a match in cocoon?

For example how do I do something to all urls that do NOT contain the 
word 'bob'?


Also what is the recommended way of doing an 'or' in an xmap file?
It doesn't seem possible which causes people to copy and paste code all 
around -- which is obviously really bad to be doing.


Try the regexp matcher, with the correct regexp with the negation operator.

Tony

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



negate match

2005-09-08 Thread David

Is there a way to negate a match in cocoon?

For example how do I do something to all urls that do NOT contain the 
word 'bob'?


Also what is the recommended way of doing an 'or' in an xmap file?
It doesn't seem possible which causes people to copy and paste code all 
around -- which is obviously really bad to be doing.


Thanks,
David


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



Contract for TraversableSource

2005-09-08 Thread Gavin Carothers
I'm implementing a source that implements TraversableSource and also uses any 
TraversableSource as it's "root". My question is the proper way to handle 
getParent() when the Source does not exist. I've tried to find something that 
documents the result of that case but can't find any. I admit I'm kind of 
hoping that getParent should work even if the child node doesn't exist. 
Thanks.

Cheers,
Gavin


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



Re: [GT2005] Cocoon GT Talks!

2005-09-08 Thread Lars Huttar

Arje Cahn wrote:


Hi everyone,

This is the list of proposed talks for the upcoming CocoonGT, ordered by 
date received. 14 in total, and there's only place for 8! I'd like to put the 
program online by friday afternoon, to make sure people have enough 
time to sign up for the event.

Could everyone who feels the need to do so please state his opinion!?
I don't know what would be the smartest way of doing this... 
But any feedback would be very well appreciated!

Also see my notes below..

Thanks and hope to see you all in october, 
Arjé


 PROPOSALS --

01 - Torsten Schlabach: 
	"All about URIs or: Find your sources 
	(protocols from file:// to jcr:// and beyond)"


	Any Cocoon pipeline starts with a generator that is getting stuff from 
	somehere that will be augmented and eventually rendered further down the 
	road. The underlying Avalon framework in Cocoon allows the use of a 
	number of pseudo-protocols to define from where a Geneator (or also a 
	transformer) should read its byte input stream.
	In the first place, proper use of these protocols can make sitemaps much 
	more readable and provides abstraction from specific installation 
	deteails such as file system paths. But there are also protocols that 
	allow Cocoon to directly access content from basically anwhere and not 
	just the filesystem.


02 - Carsten Ziegeler
"Past, Present and Future of the Cocoon Portal"

This talk gives an overview of the Cocoon portal solution. The portal is
based on Apache Cocoon to benefit from the advantages of Cocoon when it
comes to integrating different data sources and providing the
information to different devices in different formats. This session
introduces the basic concepts behind the portal and how to build a
portal application. Learn how the portal changed through time and what
the future might bring.

03 - Torsten Curdt
	"Rapid application development with cocoon - javaflow and the 
	compiling class loader"


	The session would be probably be more for a slightly advanced 
	audience. I could talk about how to use the auto-reloading and

javaflow with its current limitations.

04 - Andrew Savory
"Simplifying Cocoon"

	New frameworks such as Ruby on Rails are teaching the old dogs some  
	new tricks. With the maxims of "write less code", "don't repeat  
	yourself" and "convention over configuration", programming has become  
	fun again. What can the Cocoon framework learn from this?


	Consider the lilies: most Java/XML developers fight with  
	configuration and project building tools, and while they do XML  
	situps, our Rails colleagues utter nice Zen-like 'umms' as their  
	framework gently guesses at their thoughts.


	This session will point out the ways in which we can learn from our  
	competitors and make life easier for our users. It will also  
	introduce Racoon: all the fun of Rails, on Cocoon.


05 - Daniel Fagerström
"Cocoon Blocks"

	The Cocoon community is working hard on the next generation of Cocoon. 
	The most important improvement is that most of the functionality will be 
	packaged in so called blocks. The blocks architecture is built on the 
	application framework OSGi, which also is used as the basis for the 
	plugin architecture in Eclipse 3. A block can contain libraries and 
	resources. At a higher level, blocks can contain reusable components. It 
	will be possible to choose what component framework to use for each 
	block, so that one block can contain e.g. Spring managed components and 
	another Pico managed ones, that can cooperate seamlessly. What is maybe 
	most exciting is that a block can contain a whole extensible web 
	application. This will lead to a new level of application reuse. An 
	application can be built by extending an application block and by just 
	overriding the resources that needs to be modified. This is analogous to 
	extension in object oriented languages. The blocks based Cocoon will put 
	an end of todays huge download, you just download a small Cocoon core 
	and use a deployment tool to download, configure and install the blocks 
	that your application happens to need. In the talk the new architecture 
	will be described and examples will be given on how applications can be 
	devloped with the new tools.


06 - Sylvain Wallez
"Something about AJAX"

	([AC] Sylvain hasn't completed his proposal, yet. But here are some 
	promising quotes:)


	"I may help by talking about some of my favorite subjects. One that comes 
	to mind is Ajax in Cocoon." 
	"Actually, this may force me to actually implement some things I have in 
	mind, the main one being replacing the current client-side JS I wrote to 
	handle Ajax request by Prototype and Scriptaculous, the JS library 
	used in Ruby on Rails. Even more fun!"


07 - Bertrand Delacretaz
"Cocoon Bricks: best practices by example"

	The "Cocoon Bricks" exampl

sitemap browser

2005-09-08 Thread Lars Huttar

Dear Cocoon folks,
I've done some work on a sitemap browser... it's a Cocoon application 
(basically a couple of XSLT stylesheets and a sitemap) that lets you 
explore Cocoon sitemaps.


Abstract: A simple Cocoon sitemap can be clean and elegant. But as 
pipelines aggregate calls to other pipelines, and the number of 
pipelines increases, a sitemap can become difficult to follow. Sitemap 
Browser (SB) addresses this problem by visualizing a sitemap as an HTML 
document, displaying each pipeline next to the pipeline(s) it calls, and 
by hyperlinking related pipelines to each other for easy navigation. SB 
works to some degree on unmodified sitemaps but works better if you add 
sb:* markup to help handle the harder cases. SB can also be a convenient 
aid in unit testing, as a framework for linking to a sample invocation 
of each pipeline.


The sitemap browser can be downloaded from the wiki 
(http://wiki.apache.org/cocoon/SitemapBrowser). Please let me know if 
this seems useful, or sparks any ideas.


Lars



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



cache expire

2005-09-08 Thread Reinhard Haller
Hi,

I've tried to use the expire parameter to enhance the performance.
The result is, that certain pages are never updated.

My simplified sitemap (2.1.7)

  
   
   

 


 


   

   

 
 


 




   
  

template2xml.xslt generates a xml-stream containing:

  

What should happen 10 minutes after accessing xy.html?

Thanks
Reinhard

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



Re: Taking a serialized document and performing further actions on it

2005-09-08 Thread Bertrand Delacretaz

Le 8 sept. 05, à 16:26, Stewart, Gary a écrit :


...
  


Use 

-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Taking a serialized document and performing further actions on it

2005-09-08 Thread Stewart, Gary
Is there a way in Cocoon to take another pipeline and use it as a generator in 
the current pipeline. So there is a pipeline like:


  
  
  ...
  



  
  
  


Effectively allowing you to perform additional actions on the first pipeline 
(depending on a switch statement for example). I could write the first pipeline 
in a different way it is just the way I'm trying to do at the moment should 
produce a cleaner sitemap.

Thanks,

Gary

**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**

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



Re: JNDI Problem

2005-09-08 Thread Oleg Konovalov
Steffen,

I have a pretty similar problem (when trying to send e-mail
notification), getting:
MessagingException: javax.naming.NameNotFoundException: 
XChangeDS not bound

That happens only on one server, same code (and practically
identical configuration) runs fine on 3 others.
We also use Cocoon 2.0.4 and JBoss [3.0.7]

Were you able to find the cause and solution ?

Thank you in advance,
Oleg.


--- "Stundzig, Steffen" <[EMAIL PROTECTED]> wrote:

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


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



Paginator with dynamic page sheet?

2005-09-08 Thread Sandor Spruit


Folks,

I want to vary a Paginator's parameter depending on the amount of info 
available. So I wrote "src='cocoon:/pagesheet' to fetch the pagesheet 
from a xml-producing pipeline. When I define it like this, it works:






But this fails with a not-so-elegant NPE :(






Why? Opening "pagesheet" directly works, so it doesn't seem to be the 
pagesheet file itself. Paginator apparantly resolves 'cocoon:/' okay,

since the Reader-based attempt works.

Any suggestions? I don't see anything suspicious in Paginator.java...

Sandor

---
Information and Computing Sciences, Utrecht University, the Netherlands
'Content and knowledge engineering' http://www.informationscience.nl/
Personal coordinates: http://www.cs.uu.nl/people/sandor/
"... unthinkable surprises, about to happen, but what they are -
 it's not up to you, oh, it never really was."  (Bjork on Vespertine)

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



[SOLVED] Re: File checking in the sitemap

2005-09-08 Thread Derek Hohls
Yes -  when I read the docs for the ResourceExistsSelector  it
seemed to be exactly what I wanted (still must try and write a 
small sample, though).

Yet again, Cocoon "knows what I want" before I even get there!

Thanks for the helpful pointers.

>>> [EMAIL PROTECTED] 2005/09/08 12:24:15 PM >>>
On 08.09.2005 11:44, Bart Molenkamp wrote:

> I don't think that this selector will always work. Maybe for files, but
> other sources (such as cocoon://) always return true on Source.exists().

Derek only wants to check for file existence, so that's no problem. He 
only wants to react with different sources like internal pipelines. 
ResourceExistsSelector or ResourceExistsActions are valid for this use case.

Jörg

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



-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


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



Re: File checking in the sitemap

2005-09-08 Thread Joerg Heinicke

On 08.09.2005 11:44, Bart Molenkamp wrote:


I don't think that this selector will always work. Maybe for files, but
other sources (such as cocoon://) always return true on Source.exists().


Derek only wants to check for file existence, so that's no problem. He 
only wants to react with different sources like internal pipelines. 
ResourceExistsSelector or ResourceExistsActions are valid for this use case.


Jörg

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



Re: RE: Antwort: Re: JasperReports / JFreeReports

2005-09-08 Thread holger . willenborg

Thanks,

it seems that the fragment is written
into a (temporary) file. The filename is created using some hashing:

 String id = Long.toHexString((hashCode()^HashUtil.hash(requestURI))
+ fragmentID);

After that, tha Extractor seems to output
something like:


where ID is the file name.

If I figured out how this actually works
I hope to find time to contribute a small wiki for this.

Probably there's something in the samples.
Thanks anyway.

Regards
Holger

[EMAIL PROTECTED]
schrieb am 08.09.2005 11:35:51:

> >From: [EMAIL PROTECTED]
> >Date: Wed, 7 Sep 2005 14:53:34 +0200
> >
> > >
> > > A quick thought - would it be possible to use the Fragment
Extractor
> > > Transformer to write out the (generated) XML for JasperReports
into a
> >file,
> > > then point JR at that?
> > >
> > > Andrew.
> > >
> >Can you give an example how this Transformer would create a file?
The User
> >Docs and the wiki do not contain any valuable information.
> 
> Don't know really, as I've not used it myself (which is why it was
just a 
> quick thought).  As I understand it, though, that transformer
extracts part 
> of the XML stream into a separate file and replaces it with some ID
that you 
> can use in conjunction with another pipeline to process that file.
 Of 
> course, I may be mistaken...
> Although it was obviously written to remove an SVG section and substitute
an 
> IMG whose source is a pipeline that converts it to a bitmap, it seems
to me 
> that it ought to be possible to e.g. have it extract your XML definition
for 
> JasperReports, and replace it with an IFRAME that loads the output
from your 
> reader (or, if not, it may be possible to adapt it to do so).  You're
right 
> that the docs are poor, 
> http://cocoon.apache.org/2.1/userdocs/transformers/extractor-transformer.html
> doesn't even mention if there's any configuration or parameters that
can be 
> used with it.  I guess you'll have to dig through the source
instead :-(
> 
> 
> Andrew.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


RE: File checking in the sitemap

2005-09-08 Thread Bart Molenkamp
Hi,

I don't think that this selector will always work. Maybe for files, but
other sources (such as cocoon://) always return true on Source.exists().
The way I do it (it handles all types of resources, including file://)
is to simply try, and catch the failure:

 
  

  

  
 
  

  


HTH,
Bart.

> -Oorspronkelijk bericht-
> Van: Askild Aaberg Olsen [mailto:[EMAIL PROTECTED]
> Verzonden: donderdag 8 september 2005 11:27
> Aan: users@cocoon.apache.org
> Onderwerp: Re: File checking in the sitemap
> 
> Derek Hohls wrote:
> 
> >I have a simple(?) use case: I would like to be able to
> >check, in the sitemap, whether or not a file exists (in a
> >directory), and then read that file from disc, or, if it
> >does not exist, carry out another option (prob. call
> >another internal pipeline, which will create a new
> >stream of data).
> >
> >
> Is the ResourceExistsSelector what you are looking for?
> 
> http://cocoon.apache.org/2.1/userdocs/selectors/resourceexists-
> selector.html
> 
> Askild
> 
> -
> 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: Antwort: Re: JasperReports / JFreeReports

2005-09-08 Thread Andrew Stevens

From: [EMAIL PROTECTED]
Date: Wed, 7 Sep 2005 14:53:34 +0200

>
> A quick thought - would it be possible to use the Fragment Extractor
> Transformer to write out the (generated) XML for JasperReports into a
file,
> then point JR at that?
>
> Andrew.
>
Can you give an example how this Transformer would create a file? The User
Docs and the wiki do not contain any valuable information.


Don't know really, as I've not used it myself (which is why it was just a 
quick thought).  As I understand it, though, that transformer extracts part 
of the XML stream into a separate file and replaces it with some ID that you 
can use in conjunction with another pipeline to process that file.  Of 
course, I may be mistaken...
Although it was obviously written to remove an SVG section and substitute an 
IMG whose source is a pipeline that converts it to a bitmap, it seems to me 
that it ought to be possible to e.g. have it extract your XML definition for 
JasperReports, and replace it with an IFRAME that loads the output from your 
reader (or, if not, it may be possible to adapt it to do so).  You're right 
that the docs are poor, 
http://cocoon.apache.org/2.1/userdocs/transformers/extractor-transformer.html 
doesn't even mention if there's any configuration or parameters that can be 
used with it.  I guess you'll have to dig through the source instead :-(



Andrew.



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



Re: File checking in the sitemap

2005-09-08 Thread Askild Aaberg Olsen

Derek Hohls wrote:


I have a simple(?) use case: I would like to be able to
check, in the sitemap, whether or not a file exists (in a
directory), and then read that file from disc, or, if it
does not exist, carry out another option (prob. call 
another internal pipeline, which will create a new 
stream of data).
 


Is the ResourceExistsSelector what you are looking for?

http://cocoon.apache.org/2.1/userdocs/selectors/resourceexists-selector.html

Askild

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



File checking in the sitemap

2005-09-08 Thread Derek Hohls
I have a simple(?) use case: I would like to be able to
check, in the sitemap, whether or not a file exists (in a
directory), and then read that file from disc, or, if it
does not exist, carry out another option (prob. call 
another internal pipeline, which will create a new 
stream of data).

I am sure this is not that hard, but was wondering if 
anyone had already tried something like this and could 
give me a few pointers on "how to". If at all possible, I do
not want to have to create a new generator or transformer
to do this... a solution making use of existing functionality
would be optimal!

Thanks in advance
Derek




-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


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



Combining SQLTransformer and Paginator?

2005-09-08 Thread Benjamin Boksa

Hi,

I am building a small pipeline to show the result of a database query.

It should display n rows at a time, even if the result of the query  
has more than n rows. As the result can be very large (10 or more  
rows) it makes sense to use SQL's LIMIT m, n in my opinon. This  
always returns a result with n rows.


The problem is that this doesn't work with the paginator as far as I  
can see, as the paginator counts only the elements on the page, which  
is always n when using SQL's LIMIT.


The solution I am thinking about is to use a SQL query which counts  
the rows of the result (SELECT COUNT(id) FROM foo) and then generates  
some "dummy"-row elements using XSLT to match up the number of the  
total number elements and then use the paginator.


What Du you think about this approach? If there is a better way to do  
it, please let me know.


Thanks in advance,

Benne


PGP.sig
Description: Signierter Teil der Nachricht