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

re: Re: XML Client detection

  • From: rev-bob@g...
  • To: "xml" <xml-dev@i...>
  • Date: 02 Nov 99 20:45:07 -0500

client sniffer
> Since your output choices are currently limited to HTML and XHTML, I'd
> be sorely tempted to just default to XHTML, and give folk an option to
> go to HTML output if that breaks.
> 
> The reason is that most reasonably well crafted XHTML will be accepted by
> both HTML and XML aware browsers, with the primary known exception being
> very old browsers ("version 2") that you may not support anyway.

The trouble with that is, I kind of make a crusade out of accessibility.  Just about 
anybody can access my HTML, because I've taken care to include several legacy 
support tricks (such as a SCRIPT element inside a NOSCRIPT element, which is 
specifically designed to work around the fact that NN2 doesn't know what NOSCRIPT 
means) which are spec-illegal yet necessary for old-client support.

With the XHTML pages, I'm trying to get away from that.  Since old browsers don't 
understand XML, I can drop a lot of the antiquated hacks and make the XHTML code a 
bit cleaner.  Hence, the need for a client sniffer - send the older browsers to the HTML 
code which makes allowances for them, and shamelessly take advantage of the XML-
compliant browsers' features.
 
> You only really need XML support in the client if you're trying to use
> the XML/CSS (or eventually XML/XSLT) style rendering.  Since I couldn't
> use IE5 support for that (no list or link support, or preformatted text),
> and Mozilla's not prime-time yet, I'd not bother with that approach for
> some time to come.

Look at it this way.  If I get the sniffer working, I can do things like morph FONT FACE 
tags into CSS styles for the XHTML version, thus ultimately bringing the XHTML 
version several steps closer to the ideal of divorcing content from presentation.  That's 
my goal; I'm not looking for XML support because I need it, but because excluding 
browsers without it will let me get closer to "pure code" in those pages.



 Rev. Robert L. Hood  | http://rev-bob.gotc.com/
  Get Off The Cross!  | http://www.gotc.com/

Download NeoPlanet at http://www.neoplanet.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.