XSLT views

I'm no expert, but I'd say to do the processing on the server side rather than depending on the client. Perhaps you could merge with an XSL template according to the user agent - one for PC browser, one for mobile phone, and maybe one for just text.

I thought about this early on, too, but it felt redundant of the views. You'd be creating a separate XSL template for each user agent anyways, why not just create separate view file and be done. Perhaps develop a naming scheme such as:
Then call the view with a variable (setup earlier as shown in the example at http://ellislab.com/codeigniter/user-gui...agent.html):
I'm not certain, but I'd guess this is faster as it wouldn't require processing of the XML/XSL.

Messages In This Thread
XSLT views - by El Forum - 11-06-2008, 08:06 AM
XSLT views - by El Forum - 08-12-2010, 11:38 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.