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 ata URL as an XML document?

Rich,
 
I understood you perfectly.  Maybe there should be a content-type for a W3C XML Schema document?
 
The W3C web server serves it as xml, and through sleight of hand (xml-stylesheet), as html too.  The normal config for a web server
that wanted to serve two or more formats for a resource would be to negotiate for the format and serve it as application/xml *and* text/html.
 
At least according my understanding of Representational State Transfer http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm#sec_5_2
 
Peter
 
 


From: Richard Salz [mailto:rsalz@us.ibm.com]
Sent: September 10, 2012 09:59
To: Rushforth, Peter
Cc: xml-dev@lists.xml.org
Subject: RE: [xml-dev] Why does my browser treat the XML Schema document at a URL as an XML document?

Peter,

> It's just that there's no media type apart from application/xml to go with it.  

Exactly what I said when I answered Roger. There is no content-type for a W3C XML Schema document.  So a properly configured web server can do nothing but say "it's XML."

Sorry if I was too terse or not clear.

        /r$

--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/
> https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/


[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