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

At 2012-09-10 11:22 +0000, Costello, Roger L. wrote:
>Hi Folks,
>When I drag and drop an XML document (i.e., a file with the suffix 
>.xml) into my browser, my browser recognizes it as an XML document 
>and processes it accordingly. If the XML document has a stylesheet 
>PI, then the browser styles the XML document using the stylesheet.
>When I drag and drop an XML Schema document (i.e., a file with the 
>suffix .xsd) into my browser, my browser informs me that it doesn't 
>recognize the file type.
>When I dereference this URL:
>  (which appears to be a URL to an XML Schema document) my browser 
> processes it like an XML document.
>Why does my browser treat the XML Schema document at that URL as an 
>XML document?

I'm assuming you are talking about Microsoft Windows.  You have to 
teach Windows that an XSD file is an XML document.  Until then, when 
you drop a ".xsd" onto IE, you get the dialogue box asking what to do.

In Windows Manager, go to Tools/Folder Options.

Under the File Types tab, press the "New" button.

Add the file extension XSD and press the "Advanced" button.

Under "Associated File Type", select the pre-existing "XML Document" 
entry in the long list.

Select "OK" then "Close".

At this point, you should be able to drag an ".xsd" onto IE and have 
it use the built-in stylesheet exposing the content.

I hope this helps.

. . . . . . . . . . . Ken

Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/x/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

[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