xml languages

2005-01-20 Thread BURGHARD Éric
hi everybody, I'm a little disapointed by all theses xml languages we can found around which nearly all do the same things. 1) Last time i wanted to construct a project with maven and i found jelly. it had a rich tag library, handle jexl expressions, and can handle xpath through tag's libraries.

Re: xml languages

2005-01-20 Thread BURGHARD Éric
> This has also been discussed in detail: > http://marc.theaimsgroup.com/?t=10493079564&r=4&w=2 > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104998241710064&w=2 > http://marc.theaimsgroup.com/?t=10501653644&r=1&w=2 > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=1051784364292

Re: xml languages

2005-01-21 Thread BURGHARD Éric
> I'm working on refactoring JXTG so that it will be easier to support and > develop. I'm aware about that you have access the request object etc Great ! Don't know if i can help (time), but if you have a road map or something like that, i would be happy to contribute. > differently depending on

servicemanager and jxtg (was: WishFull thinking JX and SessionContext Authentication)

2005-01-22 Thread BURGHARD Éric
hi, What about giving access to the servicemanager inside jxtg. We could add, that way, various macros to access components directly (authentication, sourceresolver, session, ...). regards

Re: servicemanager and jxtg (was: WishFull thinking JX and SessionContext Authentication)

2005-01-22 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > During the "JXTG 2.0 (just say no!)" (you find links to it in > http://wiki.apache.org/cocoon/Templates), many people where negative to > the idea of developing JXTG in a "taglib" direction. We decided that > JXTG should focus on templating and that more programatic stuf

Re: servicemanager and jxtg (was: WishFull thinking JX and SessionContext Authentication)

2005-01-23 Thread BURGHARD Éric
Leszek Gawron wrote: > BURGHARD Éric wrote: >> hi, >> >> What about giving access to the servicemanager inside jxtg. We could add, >> that way, various macros to access components directly (authentication, >> sourceresolver, session, ...). >> >> reg

Re: servicemanager and jxtg (was: WishFull thinking JX and SessionContext Authentication)

2005-01-23 Thread BURGHARD Éric
Daniel Fagerstrom wrote: >> It's strange, because I think that sylvain, with his cforms jx macros >> shows how usefull could be a taglib for templating purpose. > > We are certainly going to keep macros. The question was rather if we > should have some mechanisms so that it would be easy to add o

Re: Variable Asignment in JXTG (was: xml languages)

2005-01-23 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > > ... > > But it wasn't clear to me what the use case does. > >> I also had several >> cases where I wanted the numbering to be consistent across several >> forEach calls and also had to implement hacks. > Couldn't say better :-). That's a good abstract of what this

Re: servicemanager and jxtg (was: WishFull thinking JX and SessionContext Authentication)

2005-01-24 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > You should care: > http://marc.theaimsgroup.com/?t=11021071981&r=2&w=2, at least if you > want to avoid extensive flaming ;) > Thanks for the warning. But i don't see any differences :-( Do you ? Sylvain's macro had namespace too (mazzocchi 2nd condition). targetNam

Re: servicemanager and jxtg (was: WishFull thinking JX and SessionContext Authentication)

2005-01-24 Thread BURGHARD Éric
Glen Ezkovich wrote: > I think the important thing to remember is that JXTG should be used for > injecting data. Regardless of whether it is called directly through the > sitemap or through flow it should allow access in a consistent way to > session, request and other objects that are necessary t

sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-24 Thread BURGHARD Éric
Stefano Mazzocchi a écrit > > The problem is to separate concerns. We aim to have a template language > that we can give to graphic designers and therefore they will be given > the page and the variables that contain the dynamic data they need to > present. No other information is required for th

Re: sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-25 Thread BURGHARD Éric
Stefano Mazzocchi wrote: > BURGHARD Éric wrote: > >> WAIMS (where am i missing something ? :-) > > XSP was designed to achieve exactly what you are describing. Sure it has > some limitations and the use of xslt to generate java code is not > exactly appealing, but

Re: sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-25 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > Instruction Access > == > > What objects should instructions and macros be able to access? Curently > for the needs of the JXTG instructions, the instructions has access to a > ExpressionContext that contains the FOM "view" that is available in > express

Re: sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-25 Thread BURGHARD Éric
Daniel Fagerstrom wrote: >>Ok. So what about turning on the ability to pass dom inside sitemap >>parameters ? >> >>1) pipeline more clear >> >> >> >> >> >> > I don't get why you are so obsessed with being able to do everything > from the sitemap. Once, when the community started to develop Coc

Re: sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-25 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > I have never disputed that things might be clumsy now, I just think we > should focus on getting the flowscript way better, instead of adding > things that makes the sitemap more of a programming language, by So how could you propose to add some kind of flow action (con

Re: sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-26 Thread BURGHARD Éric
Reinhard Poetz wrote: > Two days ago, I wrote about my usecase for chained input modules. Daniel > answered, that in his opinion this looks like voodoo and suggested to have > a global action that is executed for every request. Wouldn't this be the > solution for passing objects to the view layer

Re: sitemap, jx and flow design (was: servicemanager and jxtg)

2005-01-26 Thread BURGHARD Éric
Stefano Mazzocchi wrote: > > My girlfriend tells me that sometimes it seems like I argue for the sake > of arguing.., that I would take the other side no matter what... and > that in a single conversation I might argue about why something is black > and then argue about the same thing is white on

CForms: validation on binding (before submit)

2005-03-16 Thread BURGHARD Éric
Hi, Is it possible to trigger the validate process just after a binding without submitting ? Let me explain. We have a huge model with many validation rules. It's used by authentified users to edit/change their own data. Because it's huge we need to save the submitted data even if they are not va

xslt and jxtg performance

2005-05-31 Thread BURGHARD Éric
just for information, i've achieved some template migration from jxtg (2.2-dev) to xslt 2.0 (saxon8) and record a 7 to 10 factor speed increase on the same pages (cache desactivated). the templates (jx+jpath) were transformed (for the biggest part) by a simple xslt 2.0 stylesheet. Common construc

Re: xslt and jxtg performance

2005-05-31 Thread BURGHARD Éric
> > An important point: which JXTG are you using? The original one, or the > new implementation in trunk? It's a quite old now 2.2-dev, so i think this is not the refactored one. I will try to update to current trunk, and retest. We use macros and sometime evalBody (i've already heard about macr

Re: xslt and jxtg performance

2005-05-31 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > If you want to help making JXTG faster you need to submit more > information. We need examples that reproduce this behaviour with the > JXTG template and the corresponding XSLT. We also need to know exactly > what version of 2.2 you used. How did you measure preformance?

CForms model and viewData

2005-06-08 Thread BURGHARD Éric
Hi, It is said in the docs that we can use viewData in event handler to access the data pass through showForm. I saw some messages that said it was broken. Apparently it doesn't work here. If it's a removed feature what's the current way of doing this ? regards

Re: CForms model and viewData

2005-06-08 Thread BURGHARD Éric
> > Uh? It's not removed. What do you mean by "doesn't work here"? Any error > message? > Excuse me for the fuzzyness of the previous message. I'm using Forms.js v3 and cocoon-2.2-dev (not the latest trunk). The error message is "viewData is not defined". Apparently the cocoon.flow.context is

XSLSerializer, XSLGenerator, XSLReader

2005-06-20 Thread BURGHARD Éric
Hi, By looking at the XMLSerializer source code, i just realized that the serialization was driven in fact by an xsl transformation (with no stylesheet). So i wondered, why not giving this serialization a real stylesheet ? That way i could overcome all the limitations of the actual XMLSerializer.

Re: XSLSerializer, XSLGenerator, XSLReader

2005-06-20 Thread BURGHARD Éric
> > - handle the processing instruction by serializing > straight XML for those browsers that do support it, and process on the > server for others. > great idea ! >>By extension, why not having an XSLGenerator and an XSLReader ? >> >> > > Hmm... you're starting to build pipelines-in-one-com

Re: Suggestion for XHTMLSerializer

2005-08-05 Thread BURGHARD Éric
Thorsten Scherler wrote: > On Tue, 2005-08-02 at 11:25 +0200, Antonio Fiol Bonnín wrote: >> Hello, >> >> I am finding a problem with empty elements when serving content with >> the text/html content type on Firefox. > >> For example, collapsed empty div elements cause havoc in firefox. A >> poss

Re: Suggestion for XHTMLSerializer

2005-08-06 Thread BURGHARD Éric
> What XMLSerializer are you talking about? The one in the serializers > block or the default one? > org.systheo.cocoon.serialization.XMLSerializer >> I wrote a much more powerfull solution: the XSLSerializer, which let you >> control the serialization through an xsl stylesheet (an so use the >>

RE: Suggestion for XHTMLSerializer

2005-08-06 Thread BURGHARD Éric
Kees Broenink wrote: > Éric, > > I tried your solution described below but it does not solve the > problem... > > > > will return: > >

Re: Suggestion for XHTMLSerializer

2005-08-06 Thread BURGHARD Éric
BURGHARD Éric wrote: >> What XMLSerializer are you talking about? The one in the serializers >> block or the default one? >> > umh, i went to quickly :-), this is org.apache.cocoon.serialization.XMLSerializer

Re: Suggestion for XHTMLSerializer

2005-08-06 Thread BURGHARD Éric
> 1. I was talking about the concept, not implementation details. And from > that POV a stylesheet should not influence the pipeline. IMO It's plain > wrong to set the output format in the stylesheet. > > 2. But yes, I was missing the most important point in your approach > thinking that any styles

Re: Suggestion for XHTMLSerializer

2005-08-06 Thread BURGHARD Éric
> > I agree with Joerg here; by providing the author with the ability to use > any .xsl for serialization, you're allowing the serializer to control > not only how the model is serialized, but to modify the model itself > (which is the role of transformers). This essentially removes the > distinc

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
>> I don't understand here. How could i modify a model with an xsl >> transformation (and by extension an xsl serialization) ? XSL is for >> generating views from a sax representation of a model (not to be confused >> with the model itself. It's generated at the beginning of the pipeline by >> the

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
> > Of course serializers do transformations, you already wrote it: from SAX > to bytes. But there is one important difference: The behaviour of a > serializer (and at the end the output) is absolutely predictable. If you > feed the same SAX events into a specific serializer you will always get >

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
> > You know what I meant: A serializer just changes the representation of > the data but does not change the data itself - while this is of course > not true for the transformers. When you setup your pipeline it is a > 1:1-relation of SAX input to byte output and does not depend on anything > els

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
> I was not wondering, I saw your request exaclty as a "virtual > serializers" usecase. This is something we want to address for cocoon 2.2. > Ok ;-). So 'Is this a virtual component ?' was not a question (i'm joking). Thanks for (re)joining this discussion. > I believe, I understand your point:

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
> 2 points: > > 1-Nobody is telling you cannot use your own serializers. > 2- I agree the current standard serializer has bugs. I tried to fix > them. I met problems into xalan internals and well, it is a very > long story. Few weeks ago, I spent most part of 15 nights trying to fix > that (w

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
> Why not collapse the entire pipeline into a single component as well, that > would eliminate a massive amount of bugs and testing time of the Sitemap > ;o) > It's a brillant idea, but it's yours :-D > Componentization with semantically well-defined contracts in between, is a > far better than l

Re: Suggestion for XHTMLSerializer

2005-08-07 Thread BURGHARD Éric
Niclas Hedhman wrote: > On Monday 08 August 2005 01:22, BURGHARD Éric wrote: > >> standard serializers are bugged. > > If we have bugs in the serializers, then let's address it. > If we need more "types" of serializers, then we address that. > Read my ans

Re: Suggestion for XHTMLSerializer

2005-08-09 Thread BURGHARD Éric
> From Vadim and Eric: Many (most?) serializers are not reversible and > therefore there should be no prohibition on yet another seemingly useful > serializer based upon XSLT and its output element. > In fact, if i try to summarize this thread, we are just talking about implementation language.

TraxSerializer implementation

2005-08-10 Thread BURGHARD Éric
Hi, I don't want to just start another thread on this already prolific subject (was: Suggestion for XHTMLSerializer). Many interesting POV were explained, and i think that the final idea is that the TraxSerializer simply allow you to write your serializer in XSL (java seems to be the only possibil

Re: Where are the articles on writing Cocoon components?

2005-08-15 Thread BURGHARD Éric
Berin Loritsch wrote: > It seems that a huge hole in documentation exists on the site. As I was > training one of my crew on how to write a reader (adapting a servlet we > had) I found I couldn't refer to one nice page. Not even the JavaDocs > really help all that much. I didn't even know about

Trac: integrated SCM and projet management tool

2005-08-26 Thread BURGHARD Éric
Hi, Don't know if you heard about Trac (http://trac.edgewall.com/trac) but it's IMHO the best tool for bug tracking/project management. Specially if you use subversion repositories. Trac is a mix of a Wiki + WebSVN + Bugzilla. It's written in python. It's bright and lightweight: - entirely base

Re: Trac: integrated SCM and projet management tool

2005-08-26 Thread BURGHARD Éric
BURGHARD Éric wrote: > Hi, > > Don't know if you heard about Trac (http://trac.edgewall.com/trac) but > it's IMHO the best tool for bug tracking/project management. Specially if > you use subversion repositories. > oops. sorry for this url. this

Re: Creating a Bugzilla RSS feed using Cocoon

2005-09-14 Thread BURGHARD Éric
Hi, I tryed jira when i was looking for a bug-tracking system for my project, and finally prefered bugzilla for its simplicity (well my project is not as big as cocoon), even if i found it quite ugly compared to jira. Then i found Trac[1], i think it could be valuable for cocoon if you look for a

AJAX + FormsGenerator

2005-09-15 Thread BURGHARD Éric
Hi, Since i'm using xsl2 for all my forms, i'm looking for a way to enable ajax in FormsGenerator. After quickly looking through sources, i found that this feature seems to be planned in the FormsGenerator (FIXME comments). At first glance, i thought that this would be just a matter of copy and p

loc namespace and attributes in inserted nodes (CForms)

2005-09-15 Thread BURGHARD Éric
Hi, I found that the loc namespace and several attributes are inserted during the binding phase (inser-node). Theses informations are apparently usefull for cocoon stack traces, but IMHO they should disapear during form.save(). I'm not sure. Is this a bug or feature ? Regards

Re: loc namespace and attributes in inserted nodes (CForms)

2005-09-15 Thread BURGHARD Éric
Sylvain Wallez wrote: > BURGHARD Éric wrote: > >>Hi, >> >>I found that the loc namespace and several attributes are inserted during >>the binding phase (inser-node). Theses informations are apparently usefull >>for cocoon stack traces, but IMHO they should di

Re: AJAX + FormsGenerator

2005-09-15 Thread BURGHARD Éric
Sylvain Wallez wrote: >>Since i'm using xsl2 for all my forms, i'm looking for a way to enable >>ajax in FormsGenerator. >> > > Interesting. Can you explain how you use XSLT 2 and the FormGenerator? > Of course. For now it's not exactly compatible with the template language. The main difference

Re: Protocol switch in portals (was Re: furious anger: portal broken)

2005-09-21 Thread BURGHARD Éric
Bertrand Delacretaz wrote: > Le 20 sept. 05, à 10:57, Carsten Ziegeler a écrit : >> ...The LinkService accepts a boolean argument indicating if you want a >> secure link. If this is set to true then the service switches to https. >> As I said yesterday, we could create relative links if the procot

Re: Absolutizing with request.getServerName() (was: Protocol switch...)

2005-09-21 Thread BURGHARD Éric
Bertrand Delacretaz wrote: > Le 21 sept. 05, à 14:04, BURGHARD Éric a écrit : >> If i understand correctly, the request.getServerName() is not >> useable for >> absolutisation since it names the server in his local environnement.. > > Did you follow Vadim'

Re: MultipartParser.java:132: Malformed stream

2005-11-16 Thread BURGHARD Éric
Grzegorz Tañczyk wrote: > Hello Andreas, > > If You are using Tomcat then try to set up timeouts(connection, > read, upload and others if there are any) in server.xml. > I've experienced the same kind of bugs which only seems to occur with a httpd + tomcat configuration. I've switch from m

maven2 groovy plugin archetype

2005-11-21 Thread BURGHARD Éric
Hi, Thanks to you (i'm just a follower :-), i switch my building scripts from jelly+ant to a better maven 2 build cycle model. maven was on my todo list since a long time, and i must admit that it has overcome my expectations. To help the jelly migration i wrote an archetype for writing quickly g

Re: maven2 groovy plugin archetype

2005-11-22 Thread BURGHARD Éric
Jorg Heymans wrote: > > BURGHARD Éric wrote: >> >> Perhaps it could be usefull for you, so you can find the sources on a svn >> repository (the server is not always online: no-ip rulez :-) >> > > I'll have a look at this, thanks! > I've just

maven migration, ant and groovy

2005-11-24 Thread BURGHARD Éric
Hi, I've just commited a set of tools [1] for maven (plugin, extensions and archetype) that should ease your migration from ant to maven. A lot of people here should know groovy, but let me explains (i discover this language one week ago). It's all about writing plugins for maven with the groovy

Re: Cocoon 2.2 - Build and deployment with Maven2

2005-12-05 Thread BURGHARD Éric
Daniel Fagerstrom wrote: > > What do you think about moving block dependecy handling from block.xml > to pom.xml? It means reduced flexibilty as block dependencies becomes > direct instead of indirect as in the current schema. OTH it reduce > complexity and fullfills our current use cases. If we

Re: Cocoon 2.1.x - Build and deployment with Maven2

2005-12-05 Thread BURGHARD Éric
Bertrand Delacretaz wrote: > I think we must keep the existing bricks-cms as is as an example of > ant-based builds for 2.1.x, and create a separate Mavenized version - > it will be clearer than mixing up both things, and the > application-specific code is very small anyway, so duplication won't b

Re: Cocoon 2.1.x - Build and deployment with Maven2

2005-12-05 Thread BURGHARD Éric
> > It's not *one* jar, an important feature of the bricks-cms build is > picking up required blocks, and compiling only those. Later, the build > applies the required *.x* patch files to the Cocoon configs, as is > currently required in 2.1.x. An alternate build must handle all of > this, in addi

Re: Cocoon 2.1.x - Build and deployment with Maven2

2005-12-05 Thread BURGHARD Éric
>> >> IMHO it's not worth writing much stuff for mavenizing 2.1.x, this is >> coming in 2.2, very close to being ready IIUC. >> It has already worked when ant and maven coexisted. Now it's in a kind of stale state (priority is on the core, and blocks are no more constructed). My app work with 2.2

Problem with loc namespace

2005-12-06 Thread BURGHARD Éric
Hi, I'm using eXist XQueryGenerator in a simple pipeline. It works correctly when i call it directly from my browser with correct parameters. Now this pipeline is called from o.a.c.w.a.c.PipelineAuthenticator.authenticate(PipelineAuthenticator.java:145) during a flow flogin and i've got an except

Problem with the loc namespace: a user thought about cocoon

2005-12-08 Thread BURGHARD Éric
BURGHARD Éric wrote: > Hi, > > I'm using eXist XQueryGenerator in a simple pipeline. It works correctly > when i call it directly from my browser with correct parameters. > > Now this pipeline is called from > o.a.c.w.a.c.PipelineAuthenticator.authenticate(Pipe

how to get the xml serializer

2004-11-02 Thread BURGHARD Éric
Hi ! I'm writing a new source module. I set-up some new pipelines with this module in the generator and everything is working correctly, ... well not exactly When i try to cinclude the xml from these pipelines in another pipeline i get an exception (unable to find the xml serializer component fr

Re: how to get the xml serializer

2004-11-02 Thread BURGHARD Éric
Luigi Bai wrote: > You need to make sure there is a serializer with the name "xml" declared > in your sitemap.xmap file (or a parent sitemap) before you use your source > module. > thanks for your answer, the xml serializer is effectively declared in my main sitemap ;-(. It's not the default one

tools for pom editing

2006-01-16 Thread BURGHARD Éric
Hi, I just discover a really usefull plugin [1] for m2 that allow you to - update dependencies to the latest versions available - lookup conflicts (same packages but differents versions) and handle exclusions - edit pom from the console I also try to graph the depencies [2] of my project (which i

[CONTRIB] css engine

2004-07-03 Thread BURGHARD Éric
Hi again, I just finished a css engine which we use in our project which can help you to virtualize all your css in a pipeline, and handle browser specificities in a clean way (no more css syntax hacking). Perhaps it could be valuable for others. Here is the description: - it's xml syntax - it ha

dom parameters in TraxTransformer ?

2004-07-03 Thread BURGHARD Éric
Hi everybody, I just wonder if it's planned to be able to pass dom parameters in a TraxTransformation ? We use qui often here, cinclude | xinclude enclosed in a tag to drive our xsl transformations with non flat datas. (eg association lists). We could use document() inside xslt, but the changing