简体   繁体   English

.MSPX 文件扩展名是什么?

[英]What is the .MSPX file extension?

I've noticed a lot of Microsoft sites have the *.MSPX extension.我注意到很多 Microsoft 站点都有 *.MSPX 扩展名。 While I'm very familiar with ASP.NET, I've not seen this extension before.虽然我对 ASP.NET 非常熟悉,但我以前从未见过这个扩展。

Does anyone know what this identifies?有谁知道这是什么标识?

A few internet searches led me to http://www.microsoft.com/backstage/bkst_column_46.mspx , but it was a dead link. 一些互联网搜索引导我访问http://www.microsoft.com/backstage/bkst_column_46.mspx ,但这是一个死链接。 Fortunately, it was archived on the Wayback Machine and you can read it here: 幸运的是,它在Wayback Machine上存档,你可以在这里阅读:

http://web.archive.org/web/20040803120105/http://www.microsoft.com/backstage/bkst_column_46.mspx http://web.archive.org/web/20040803120105/http://www.microsoft.com/backstage/bkst_column_46.mspx

The .MSPX extension is part of the "Microsoft Network Project," which according to the article above, is designed to give Microsoft's sites a consistent look-and-feel worldwide, as well as keep the design of the site seperate from the content. .MSPX扩展是“Microsoft网络项目”的一部分,根据上面的文章,它旨在为Microsoft的网站提供全球一致的外观,并保持网站的设计与内容分离。 Here's the gist of the article: 这是文章的要点:

The presentation framework includes a custom Web handler built in ASP.NET. 表示框架包括一个用ASP.NET构建的自定义Web处理程序。 Pages that use the presentation framework have the .mspx filename extension, which is registered in Microsoft Internet Information Services (IIS) on the Web servers. 使用表示框架的页面具有.mspx文件扩展名,该扩展名在Web服务器上的Microsoft Internet信息服务(IIS)中注册。 When one of the Microsoft.com Web servers receives a request for an .mspx page, this custom Web handler intercepts that call and passes it to the framework for processing. 当其中一个Microsoft.com Web服务器收到.mspx页面的请求时,此自定义Web处理程序拦截该调用并将其传递给框架进行处理。

The framework first checks to see whether the result is cached. 框架首先检查结果是否被缓存。 If it is, the page is rendered immediately. 如果是,则立即呈现页面。 If the page is not cached, the handler looks up the URL for that page in the table of contents provided by the site owner (see below) to determine where the XML content for the page is stored. 如果页面未缓存,则处理程序在站点所有者(见下文)提供的目录中查找该页面的URL,以确定页面的XML内容的存储位置。 The framework then checks to see if the XML is cached, and either returns the cached content or retrieves the XML from the data store identified in the table of contents file. 然后,框架检查XML是否被高速缓存,并返回高速缓存的内容或从内容列表文件中标识的数据存储中检索XML。

Within the file that holds the content for the page, XML tags identify the content template to be used. 在保存页面内容的文件中,XML标记标识要使用的内容模板。 The framework retrieves the appropriate template and uses a series of XSLTs to assemble the page, including the masthead, the footer, and the primary navigational column, finally rendering the content within the content pane. 框架检索适当的模板并使用一系列XSLT来组合页面,包括标头,页脚和主导航列,最后在内容窗格中呈现内容。

I think it's an XML based template system that outputs HTML. 我认为这是一个基于XML的模板系统,可以输出HTML。 I think it's internal to MS only. 我认为它只是MS的内部。

Well, a little googling found this: 好吧,有点谷歌搜索发现:

The presentation framework includes a custom Web handler built in ASP.NET. 表示框架包括一个用ASP.NET构建的自定义Web处理程序。 Pages that use the presentation framework have the .mspx filename extension, which is registered in Microsoft Internet Information Services (IIS) on the Web servers. 使用表示框架的页面具有.mspx文件扩展名,该扩展名在Web服务器上的Microsoft Internet信息服务(IIS)中注册。 When one of the Microsoft.com Web servers receives a request for an .mspx page, this custom Web handler intercepts that call and passes it to the framework for processing." 当其中一个Microsoft.com Web服务器收到.mspx页面的请求时,此自定义Web处理程序拦截该调用并将其传递给框架进行处理。“

I'd like to find out more info though. 我想了解更多信息。

有关它的文章仍然可用,由互联网档案提供: http ://web.archive.org/web/20040508051618/http: //www.microsoft.com/backstage/bkst_column_46.mspx

I love you guys, i was asking myself also many times, why MS uses .mspx and what it is at all?! 我爱你们,我也问了很多次,为什么MS使用.mspx以及它到底是什么?! :) :)

That time i couldn´t find any informations quickly and assumed it would just be something on top of asp.net or maybe not even that, because you should be able to assign the same asp.net cgi dll to .mspx also easy too ;) 那个时候我无法快速找到任何信息并假设它只是在asp.net之上或者甚至不是那个,因为你应该能够将同样的asp.net cgi dll分配给.mspx也很容易; )

But, surely, it can be anything.. also an "special" CGI itself (completely beside ASP.NET), which processes that request with much better / much more cache-use, easier editing and so on.. 但是,当然,它可以是任何东西......也是一个“特殊的”CGI本身(完全在ASP.NET之外),它可以使用更好/更多缓存使用,更容易编辑等处理该请求。

The end of the story was, that i came accross the view, that maybe it´s not important to know, what .mspx exactly is :) 这个故事的结尾是,我来到了整个视野,也许知道什么并不重要,.mspx究竟是什么:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM