Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 95928 invoked from network); 26 Jul 2000 16:49:29 -0000 Received: from frankfurt.denic.de (HELO notes.denic.de) (194.246.96.101) by locus.apache.org with SMTP; 26 Jul 2000 16:49:29 -0000 Received: from denic.de ([192.168.0.187]) by notes.denic.de (Lotus Domino Version 5.0.2c (Intl)) with ESMTP id 2000072618490531:1101 ; Wed, 26 Jul 2000 18:49:05 +0200 Sender: ulim Message-ID: <397F1724.12E89DE3@denic.de> Date: Wed, 26 Jul 2000 18:51:48 +0200 From: Ulrich Mayring Organization: DENIC eG X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-32 i686) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: permit quoting References: X-MIMETrack: Itemize by SMTP Server on notes/Denic(Version 5.0.2c (Intl)|08 Februar 2000) at 26.07.2000 18:49:05, Serialize by Router on notes/Denic(Version 5.0.2c (Intl)|08 Februar 2000) at 26.07.2000 18:49:17, Serialize complete at 26.07.2000 18:49:17 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Mark Washeim wrote: > > Depends. If the javascript is dependant on the paths, then it's arguable > that the paths should be kept with the js, not the xsl. If, as we do, you > share those js files among xsl generated and non-xsl generated html files, > then the maintenance requires that you keep what goes with the js, with the > js, not the xsl.... Yeah, this case is a real pain. For example, what if you have different languages and thus different-looking buttons? So sometimes the path in the JavaScript must be .../german/button.gif and sometimes .../english/button.gif. How do you solve this problem? Do you have multiple copies of the Javascript? I just use XSLT to generate the correct path to the button dynamically. This is, of course, not an option if you also have static files. But in my case it works, so I actually have just one Javascript, which is dynamically transformed to suit the needs of all the different pages. Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung