cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 310026124542-0...@t-online.de (Mark Washeim)
Subject Re: permit quoting
Date Wed, 26 Jul 2000 17:01:43 GMT
on 26/7/00 6:51 pm, Ulrich Mayring at ulim@denic.de wrote:

> 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

In our case, we keep everything request driven, such that, for instance,
en/GB, en/US is always passed through, from request, to xsp:expr, to
xsl:param . . . then, it's always available at the outset and doesn't need
to be inferred later . . .

-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell

 



Mime
View raw message