我创建了一个docx文件,并将其解压缩
- _rels(文件夹)
- docProps(文件夹)
- 单词(文件夹)
- [Content_Types].xml
[content_Types].xml的内容是:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Default Extension="xml" ContentType="application/xml"/>
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>
<Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/>
<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>
<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
</Types>
在哪里可以找到[Content_Types].xml的xsd模式文件?
("http://schemas.openxmlformats.org/package/2006/content-types"-不是常规网页,也不包含与xsd有关的内容…)
[Content_Types].xml在作为OOXML一部分的Open Packaging Conventions容器文件技术中为包部件定义MIME媒体类型。
请参阅任何版本的标准ECMA-376站点第2部分,了解OPC XSD,包括您所寻求的opc-contentTypes.xsd
。它是这样开始的:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns="http://schemas.openxmlformats.org/package/2006/content-types"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://schemas.openxmlformats.org/package/2006/content-types"
elementFormDefault="qualified" attributeFormDefault="unqualified"
blockDefault="#all">
<xs:element name="Types" type="CT_Types"/>
第4部分提供了OOXML其他部分的参考和XSD,如WordprocessingML、SpreadsheetML、PresentationML、DrawingML、Shared ML和Custom XML Schema。