Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Reinhard Poetz
Stefano Mazzocchi wrote: So, my proposal is to keep the above semantics, but differentiate between 'real' and 'virtual' pipeline components, with the existance of the src= attribute. If missing, the tree processor will consider it a virtual one and construct it from there. I like this. Could we

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Sylvain Wallez
Daniel Fagerstrom wrote: Sylvain Wallez wrote: Sorry, not much time to dig into the implementation for now, but I will :-) Good :) In order to have a better opinion on the naming issue (virtual-blah / special src=... / no src) I started digging in the implementation. VPCs aren't an easy

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Daniel Fagerstrom
Sylvain Wallez wrote: Daniel Fagerstrom wrote: Sylvain Wallez wrote: Sorry, not much time to dig into the implementation for now, but I will :-) Good :) In order to have a better opinion on the naming issue (virtual-blah / special src=... / no src) I started digging in the implementation. VPCs

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Vadim Gritsenko
Sylvain Wallez wrote: What we see here is that VPCs aren't regular components from the way their configuration is parsed. This configuration isn't parsed by the component itself, but by the surrounding environment which is the TreeProcessor. This can be changed so that VPC create own instance

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Peter Hunsberger
On Apr 12, 2005 5:50 AM, Sylvain Wallez [EMAIL PROTECTED] wrote: Daniel Fagerstrom wrote: Sylvain Wallez wrote: big snip/ So in the end, my opinion is that sitemap fragments for VPCs should be declared in their own section of the sitemap, just as views, resources and flows. Components

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Daniel Fagerstrom
Peter Hunsberger wrote: On Apr 12, 2005 5:50 AM, Sylvain Wallez [EMAIL PROTECTED] wrote: Daniel Fagerstrom wrote: Sylvain Wallez wrote: big snip/ So in the end, my opinion is that sitemap fragments for VPCs should be declared in their own section of the sitemap, just as views,

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Vadim Gritsenko
Daniel Fagerstrom wrote: So I don't see this so much as an implementation question as a conceptual question. Are we considering the VPCs as sitemap components or something else, to me they look like sitemap components. Conceptually, I think VPCs are components first and foremost. So they are

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Peter Hunsberger
On Apr 12, 2005 9:05 AM, Daniel Fagerstrom [EMAIL PROTECTED] wrote: Peter Hunsberger wrote: On Apr 12, 2005 5:50 AM, Sylvain Wallez [EMAIL PROTECTED] wrote: Daniel Fagerstrom wrote: Sylvain Wallez wrote: big snip/ So in the end, my opinion is that sitemap fragments

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Nicola Ken Barozzi
Daniel Fagerstrom wrote: ... So I don't see this so much as an implementation question as a conceptual question. Are we considering the VPCs as sitemap components or something else, to me they look like sitemap components. To me, a VPC is a better _resource_: IMHO it should be on the same level.

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Daniel Fagerstrom
Peter Hunsberger wrote: On Apr 12, 2005 9:05 AM, Daniel Fagerstrom [EMAIL PROTECTED] wrote: snip/ I don't see that there is any harm in separating VPC's into a new section, but I do see a lot of possible good in the long run. Might be. But as long as I haven't seen any concrete use cases I

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-12 Thread Sylvain Wallez
Vadim Gritsenko wrote: Daniel Fagerstrom wrote: So I don't see this so much as an implementation question as a conceptual question. Are we considering the VPCs as sitemap components or something else, to me they look like sitemap components. Conceptually, I think VPCs are components first and

How to vote ? (was Re: [Ann/RFC] Virtual Sitemap Components)

2005-04-12 Thread Sylvain Wallez
Daniel Fagerstrom wrote: Peter Hunsberger wrote: On Apr 12, 2005 9:05 AM, Daniel Fagerstrom [EMAIL PROTECTED] wrote: snip/ I don't see that there is any harm in separating VPC's into a new section, but I do see a lot of possible good in the long run. Might be. But as long as I haven't seen

Re: How to vote ? (was Re: [Ann/RFC] Virtual Sitemap Components)

2005-04-12 Thread Bertrand Delacretaz
Le 13 avr. 05, à 00:09, Sylvain Wallez a écrit : ...2 - rank each solution from 1 to 4, and choose the one with the highest sum. Seems good except that it allows people to rank several choices equally.. I also like this way, but if two solutions come out very close we might want to rediscuss

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Sylvain Wallez
Daniel Fagerstrom wrote: I have continued Vadim's and Sylvain's work and added a first, hopefully working version of virtual sitemap components (VPCs) to the trunk. Good job! Use === To use VPCs one define them in the components section in the sitemap, e.g.: map:components map:readers

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Bertrand Delacretaz
Le 11 avr. 05, à 14:41, Sylvain Wallez a écrit : It seems weird to me to see sitemap statements in the map:components section. But they're also used as any other component. Hmm... What about either: - leave them in map:components but with special element names, e.g. map:virtual-generator

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Vadim Gritsenko
Sylvain Wallez wrote: Daniel Fagerstrom wrote: map:transformers default=xslt map:transformer name=virtual2 src=org.apache.cocoon.transformation.VirtualPipelineTransformer map:source param=src2/ map:transform src=vpc-include.xsl map:parameter name=file

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Carsten Ziegeler
Vadim Gritsenko wrote: It can be map:components map:generators map:virtual name=a That's enough information to build it. I agree with Vadim and I think this is the syntax suggest in the early discussions about VSC as well. Carsten -- Carsten Ziegeler - Open Source

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Daniel Fagerstrom
Sylvain Wallez wrote: Daniel Fagerstrom wrote: I have continued Vadim's and Sylvain's work and added a first, hopefully working version of virtual sitemap components (VPCs) to the trunk. Good job! Thanks :) Use === To use VPCs one define them in the components section in the sitemap, e.g.:

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Daniel Fagerstrom
Vadim Gritsenko wrote: Sylvain Wallez wrote: Daniel Fagerstrom wrote: snip/ What about either: - leave them in map:components but with special element names, e.g. map:virtual-generator that maps to the VirtualPipelineGenerator class It can be map:components map:generators

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Sylvain Wallez
Vadim Gritsenko wrote: Sylvain Wallez wrote: Daniel Fagerstrom wrote: map:transformers default=xslt map:transformer name=virtual2 src=org.apache.cocoon.transformation.VirtualPipelineTransformer map:source param=src2/ map:transform src=vpc-include.xsl

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Stefano Mazzocchi
Vadim Gritsenko wrote: Sylvain Wallez wrote: Daniel Fagerstrom wrote: map:transformers default=xslt map:transformer name=virtual2 src=org.apache.cocoon.transformation.VirtualPipelineTransformer map:source param=src2/ map:transform src=vpc-include.xsl

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Stefano Mazzocchi
Sylvain Wallez wrote: Vadim Gritsenko wrote: Sylvain Wallez wrote: Daniel Fagerstrom wrote: map:transformers default=xslt map:transformer name=virtual2 src=org.apache.cocoon.transformation.VirtualPipelineTransformer map:source param=src2/ map:transform

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Vadim Gritsenko
Stefano Mazzocchi wrote: Vadim Gritsenko wrote: It can be map:components map:generators map:virtual name=a That's enough information to build it. I still like the way we agreed in the past and Daniel implemented, the fact that a generator is a java class or is a subpipeline should

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Stefano Mazzocchi
Daniel Fagerstrom wrote: I have continued Vadim's and Sylvain's work and added a first, hopefully working version of virtual sitemap components (VPCs) to the trunk. Awesome!!! You (and Vadim) rock! I'm a happy camper. Use === To use VPCs one define them in the components section in the sitemap,

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Sylvain Wallez
Stefano Mazzocchi wrote: Sylvain Wallez wrote: snip/ Good point. So let's go for map:virtual-blah in map:components. No, what does that buy you? generator means it generates, who cares how it's implemented? People that write sitemaps do care. What they want is to write a virtual component and

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Sylvain Wallez
Stefano Mazzocchi wrote: Sylvain Wallez wrote: Uh? Are you saying that any map:generator without a class attribute will be interpreted as a VPC? Well, a little more complex than this, a generator is virtual if: 1) doesn't have a src attribute 2) his first child is generator 3) contains zero

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Leszek Gawron
Stefano Mazzocchi wrote: Sylvain Wallez wrote: Stefano Mazzocchi wrote: snip/ virtual readers? h, never thought of that one. What does that buy you? I mean, it's not harmful to have it, but do you see any real use of that? Consider an application using graphical buttons. You may want be

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Vadim Gritsenko
Daniel Fagerstrom wrote: Vadim Gritsenko wrote: Sylvain Wallez wrote: Daniel Fagerstrom wrote: VPCs are not cacheable yet. Its probably not that hard to add caching, but it requires that we extend the ProcessingPipeline interface with some methods that are needed for VPCs. It also requires

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Vadim Gritsenko
Sylvain Wallez wrote: Vadim Gritsenko wrote: It can be map:components map:generators map:virtual name=a ... Good point. So let's go for map:virtual-blah in map:components. Note: I never suggested virtual-blah :-) I prefer map:generator, while map:virtual will be an ok option too. We

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Antonio Gallardo
On Lun, 11 de Abril de 2005, 14:06, Leszek Gawron dijo: Stefano Mazzocchi wrote: Sylvain Wallez wrote: Stefano Mazzocchi wrote: snip/ virtual readers? h, never thought of that one. What does that buy you? I mean, it's not harmful to have it, but do you see any real use of that?

Re: [Ann/RFC] Virtual Sitemap Components

2005-04-11 Thread Antonio Gallardo
On Lun, 11 de Abril de 2005, 13:23, Daniel Fagerstrom dijo: Stefano Mazzocchi wrote: Daniel Fagerstrom wrote: I have continued Vadim's and Sylvain's work and added a first, hopefully working version of virtual sitemap components (VPCs) to the trunk. Awesome!!! You (and Vadim) rock! I'm

[Ann/RFC] Virtual Sitemap Components

2005-04-10 Thread Daniel Fagerstrom
I have continued Vadim's and Sylvain's work and added a first, hopefully working version of virtual sitemap components (VPCs) to the trunk. Use === To use VPCs one define them in the components section in the sitemap, e.g.: map:components map:readers map:reader name=virtual1