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

RE: Real XML Site

  • From: Didier PH Martin <martind@n...>
  • To: "Hodder, Ed" <Ed.Hodder@B...>,'Ben Sarsgard' <BSarsgard@V...>,"XML-Dev (E-mail)" <xml-dev@l...>
  • Date: Wed, 13 Dec 2000 14:18:12 -0500

ben hodder
Hello Ed,

Ed said:
Yeah, that's interesting. It's definitely not valid XHTML. But transformed
XML doesn't have to be valid anything, does it?

The pages are very different based on the browsers we're using, so at least
the concept of divorced content is being used. There's almost no way short
of asking to find out what's going on behing the scenes, is there?

Ed

> From: Ben Sarsgard [mailto:BSarsgard@V...]

> What's going on there?  It just looks like HTML to me.
> There's illegal
> characters in the javascript, and the img tags aren't closed.
>  Am I missing
> something, or did they just take an html document, and save
> it as .xml?
>

Didier replies:
It is possible that the xml document is transformed on the server side. Even
if you refer to an XML document, this latter could be delivered as HTML.
What could be happening is:

a) the server detects the user agent making the request
b) the server associates an XSLT stylesheet to transform this xml document
into an appropriate format understood by the user agent.
c) the server sends the transformed document.

This is also why you see the URL ending with a ".xml". The HTTP request is
really for an XML document, but the server having detected that the user
agent does not support XSLT may have performed the transformation on the
server side and delivered an HTML document in response to the ".xml" URL
request.

Several xml servers are precisely doing that.

Cheers
Didier PH Martin
----------------------------------------------
Email: martind@n...
Conferences: xml devcon 2000 (http://www.xmldevcon2000.com)
		 Wireless Summit NY (http:www.pulver.com)
	       xml devcon 2001 London (http://www.xmldevcon2000.com)
Book: XML Professional (http://www.wrox.com)
column: xml.com (http://www.xml.com)


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.