Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1530337
  • 博文数量: 3500
  • 博客积分: 6000
  • 博客等级: 准将
  • 技术积分: 43870
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-03 20:31
文章分类

全部博文(3500)

文章存档

2008年(3500)

我的朋友

分类:

2008-05-04 19:59:51

一起学习
Do I have to change any of my server software to work with XML? The only changes needed are to make sure your server serves up .xml, .css, .dtd, .xsl, and whatever other file types you will use as the correct MIME content (media) types. The details of the settings are specified in RFC 3023. Most new versions of Web server software come preset. All that is needed is to edit the mime-types file (or its equivalent: as a server operator you already know where to do this) and add or edit the relevant lines for the right media types. In some servers (eg Apache), individual content providers or directory owners may also be able to change the MIME types for specific file types from within their own directories by using directives in a .htaccess file. The media types required are: text/xml for XML documents which are `readable by casual users' ; application/xml for XML documents which are `unreadable by casual users' ; text/xml-external-parsed-entity for external parsed entities such as document fragments (eg separate chapters which make up a book) subject to the readability distinction of text/xml; application/xml-external-parsed-entity for external parsed entities subject to the readability distinction of application/xml; application/xml-dtd for DTD files and modules, including character entity sets. The RFC has further suggestions for the use of the xml media type suffix for identifying ancillary files such as XSLT (application/xslt xml). If you run scripts generating XHTML which you wish to be treated as XML rather than HTML, they may need to be modified to produce the relevant Document Type Declaration as well as the right media type if your application requires them to be validated. 下载本文示例代码


Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..Do I have to change any of my server software to..
阅读(99) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~