Hi Robby, Cocoon is about keeping your application model in XML and then transforming this document model using Java components. It looks like you want to use it the other way around. That is to say, you would get further with Cocoon if you intend to transform Product XML elements to XHTML. Reading your requirement it seems to me that you don't need your Java Product object as you just need to use the File Generator to read your Product XML and then you use this to transform to XHTML. If you need to add to the Product XML you might need to employ some other Transformer or Pipeline but try and forget about your Product Java object as it seems to be superfluous.
Hope this helps, Warrell 2009/1/29 Robby Pelssers <robby.pelss...@ciber.nl> > Hi all, > > > > I have a project where I want to read xml from the filesystem and > unmarshall to Java. > > > > Suppose I have a request > > http://localhost:8888/myproject/product/xyz-123 > > where xyz-123 is the product-id. > > > > Based on this information cocoon I know where to read the product-xml from > the filesystem. I would like to map the xml now to my Product Object. > However, the product-xml contains a reference to for instance a file > containing company information. > > > > So I would like this information to be loaded as well. Anyone done > something similar already? Is using Castor an easy option to accomplish > this or are there easier ways. > > > > Thx in advance. > > Robby Pelssers > > > > > > > > > > > > > > >