Olivier:
> I am looking for pieces of advice about writing XSLT in the most > efficient and (hopefully :-) reusable way. > I found several advices in the book of Michael Kay about XSLT, and am > asking to Cocoon > users if they can point me to informations about clean design for XSLT. In addition to what everyone else has already mentioned, I found this recent article about decoupling stylesheet templates from source structure (e.g. hardcoded XPATH/XSLT) interesting: http://www.xml.com/pub/a/2002/03/27/templatexslt.html You should realize performance gains if you design your templates to take advantage of C2's pipeline which processes SAX events. That is, try to limit your use of elements like <xsl:for-each> which construct a DOM before processing can continue. Does your version of C2 include the performance tips page (listed under Documentation)? If not, you can read the text from the CVS repository here. http://cvs.apache.org/viewcvs.cgi/xml- cocoon2/src/documentation/xdocs/performancetips.xml Diana --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>