[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Browser-based XSLT page initialization...

Subject: Browser-based XSLT page initialization...
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Thu, 08 Mar 2007 05:59:17 -0700
 Browser-based XSLT page initialization...
As mentioned in the PI vs. Javascript transformation thread from a while back, here's the code that matches my point of using Browser-based XSLT/PI's to minimize your overall code size, performance, and the frustrations of attempting to build cross-platform Javascript which uses client-side browser sniffing which code to determine whice code it actually understands.

http://extf.googlecode.com/svn/trunk/WebApp/public_web/ (specifically: http://extf.googlecode.com/svn/trunk/WebApp/public_web/index.xml and http://extf.googlecode.com/svn/trunk/WebApp/public_web/build-output.xsl )

The idea is simple: Use a declarative-style approach to your web apps in which you declare "here's this, please give me this in return" to then let the peculiarities of each browser do whatever it needs to do to accomplish what needs to be done, without first having to parse through a bunch of browser sniffing code to get to the stuff it understands.

The result tends to be smaller code files, smaller DOM objects, faster load times, and the ability to isolate browser specific issues, making your code that much easier to debug.

PLEASE NOTE: All this does is initialize the page with the css and javascript files that are specific to the browser, and renders any hardcoded XHTML, which could just as easily be copy/pasted into the page:content element from an existing XHTML code base.  In other words, this can and should be used to do nothing more than compliment the code base you already have.  Nothing more, nothing less.


--
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.