How about using something like the following pipeline matcher along with the resource exists action
<!-- assume that {1} is the customisation identifier, and the remainder is the path --> <map:match pattern="*/**.html"> <map:act type="resource-exists" src="docs/{2}_{1}.html"> <map:generate src="docs/{../2}_{1}.html"/> <map:serialize type="xml"/> </map:act> <map:generate src="docs/{2}.html"/> <map:serialize type="html"/> </map:match> I use this a lot, and it works quite well. It also works well in for selecting stylesheets when combined with the cocoon protocol in map:transform/@src /Adrian > -----Original Message----- > From: Mato Mira, Fernando [mailto:[EMAIL PROTECTED] > Sent: Wednesday 28 May 2003 10:24 > To: '[EMAIL PROTECTED]' > Subject: RE: Customization > > > > From: Matthew Langham [mailto:[EMAIL PROTECTED] > > > > > We are investigating using Cocoon for our next generation > > product. The > > > internationalization stuff, > > > OK we can handle with the I18n Transformer. But what about the > > > customization? I'd like to start a discussion > > > for ideas on how to extend Cocoon to be able to do this in order > > > to come up > > > with a specification. > > > > > > > What do you need that the portal framework doesn't provide? > > The new version > > that is currently being developed is very flexible when it > > comes to this > > type of stuff. Look at the old version of the portal to get an idea. > > That seems like an awful amount of work to customize dozens of pages > for dozens of customers. > > Right now when we want to customize a certain page for a > certain product, > we just copy the file, name it appropriately, and voila! the > designer can > have fun. > > I'd like something like: > > <match pattern="*/somepage"> > <map:generate type="serverpages" src="xsp/somepage.xsp"/> > <map:transform type="xslt" src="style/somepage[_{1}].xslt"> > <map:serialize type="html"/> > </match> > Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system.