Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

Re: [mod-xslt users] browser detection? Ryan C . Spaulding
  • From: Ryan C.Spaulding <rspaulding@xxxxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] browser detection?
  • Date: Fri, 24 Sep 2004 16:45:51 -0700
  • References: <232FB0A1-0E6E-11D9-93EE-000A95DBC476@mail.arc.nasa.gov> <4EE9A339-0E7E-11D9-93EE-000A95DBC476@mail.arc.nasa.gov>


  • Hi,

    Is there anyway to do an if $HEADER[User-Agent] =~ /mozilla/ then do this otherwise do that?

    If you could give one example on how you can use this in a stylesheet that would be great.

    Thank you,

    Ryan
    On Sep 24, 2004, at 4:06 PM, Ryan C.Spaulding wrote:

    Found it !!!

    <xsl:stylesheet version="1.0" extension-element-prefixes="yaslt" xmlns:yaslt="http://www.mod-xslt2.com/ns/1.0"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

    <yaslt:value-of select="$HEADER[User-Agent]" />


    On Sep 24, 2004, at 2:10 PM, Ryan C.Spaulding wrote:

    Hi,

    Is there any way to do browser detection with mod_xslt ? Does it have access to environment variables?

    Thank you,

    Ryan



      Powered by Sympa