[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Why does my browser treat the XML Schema document at aURL as an XML document?
- From: Andrew Welch <andrew.j.welch@gmail.com>
- To: "Rushforth, Peter" <Peter.Rushforth@nrcan-rncan.gc.ca>
- Date: Mon, 10 Sep 2012 16:01:58 +0100
> The W3C web server serves it as xml, and through sleight of hand
> (xml-stylesheet), as html too.
No sleight of hand... the server serves it as xml, so the browser
parses it using it's xml parser instead of its sgml parser... by
default it will then transform the xml using an internal xslt 1.0 to
create the pretty printed view you get when view xml in the browser,
or as in this case there is the stylesheet PI so the browser also
fetches the xslt and then applies that to the xml, presenting the
result.
As far as the server is concerned it just served 2 xml files.
That's how I understand the process, if that's not right someone will
correct me :)
--
Andrew Welch
http://andrewjwelch.com
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]