On Fri, Sep 24, 2004 at 04:45:51PM -0700, Ryan C.Spaulding wrote:
> Is there anyway to do an if $HEADER[User-Agent] =~ /mozilla/ then do
> this otherwise do that?
In your .xml document, you can use multiple
<?modxslt-stylesheet ...
to choose the stylesheet to use. The first one matching is used.
From a logical point of view, this leads to someghing like:
if(condition) then use(stylesheet);
else if(condition) then use(stylesheet);
else if(condition) then ...
From your .xsl file, I believe you can use something like:
In this case, however, you are bound to using only xslt constructs,
so no modxslt regular expressions :(...
Cheers,
Carlo
--
GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
-------------
In a whiskey it's age, in a cigarette it's taste and in a sports car
it's impossible.