I used this to develop my siteweb in a oop way, but it begin to be difficult. (must be an expert in stylesheet call, import, ...) But it could be useful to try N stylesheet without modifing your sitemap :
add this in your sitemap : <!-- * * / i n s / * . x s p --> <!-- pour n methodes en n passe sur une instance I de type xsp --> <map:match pattern="**/auto/*-*.xsp_met-*.xsl"> <map:generate type="serverpages" src="cocoon:/yromem-trans/site/{1}/edit/{2}/{3}.xsp"/> <map:transform src="cocoon:/{1}/met/{4}.xsl"/> <map:serialize type="xml"/> </map:match> <map:match pattern="**/auto/*.xsp_met-*_met-*.xsl"> <map:generate src="cocoon:/{1}/edit/{2}.xsp_met-{3}"/> <map:transform src="cocoon:/{1}/met/{4}.xsl"/> <map:serialize type="xml"/> </map:match> <map:match pattern="**/auto/*.xsp_met-*.xsl_out-*.*"> <map:generate src="cocoon:/{1}/edit/{2}.xsp_met-{3}.xsl"/> <map:serialize type="html"/> </map:match> it could be generalised. you can do the same to *.xml (just change .xsp to .xml and the generator type the last match-tag would use out-*.* to modify the serialiser to the standard output : out-*.* could be : out-svg2png.png out-xml.xml but <map:serialize type="{4}"/> don't work. Khalid. ps : it is like in oop : person.getName().getFirstLetter.toHtmlTag().serialize('html') /auto/personne.xsp_met-getName_met-getFirstLetter_met-toHtmlTag_out-html.html --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>