XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[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?

> 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS