{"id":5239,"date":"2022-05-01T15:23:29","date_gmt":"2022-05-01T07:23:29","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5239"},"modified":"2022-05-01T15:23:29","modified_gmt":"2022-05-01T07:23:29","slug":"office-open-xml%e6%96%87%e4%bb%b6%e8%a7%84%e8%8c%83%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5239.html","title":{"rendered":"Office Open XML\u6587\u4ef6\u89c4\u8303\u5b66\u4e60"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u8fd1\u671f\u5728\u505a\u4e00\u4e9b\u6587\u6863\u8ffd\u8e2a\u65b9\u6848\u7684\u5b66\u4e60\u548c\u6d4b\u8bd5\uff0c\u9664\u4e86\u7eaf\u6587\u672c\u7684txt\/csv\u6587\u672c\u683c\u5f0f\u4e4b\u5916\uff0c\u7528\u7684\u6700\u591a\u7684\u5c31\u662fOffice\u6587\u6863\u4e86\uff0c\u5728\u65b0\u7684Office\u5957\u4ef6\u91cc\u9762\u65e9\u5c31\u9ed8\u8ba4\u4f7f\u7528\u4e86 docx\/xlsx\/pptx \u540e\u7f00\uff0c\u800c\u975e\u4e4b\u524d\u7684 doc\/xls\/ppt \u540e\u7f00\uff0c\u65b0\u540e\u7f00\u5bf9\u5e94\u7684\u6587\u4ef6\u7528\u7684\u5c31\u662fOffice Open XML\u6587\u4ef6\u683c\u5f0f\u3002\u4e3a\u4e86\u66f4\u597d\u7684\u7406\u89e3\u6587\u6863\u8ffd\u8e2a\u65b9\u6848\u7684\u4f18\u52bf\u548c\u5c40\u9650\uff0c\u6240\u4ee5\u5b66\u4e60\u4e86\u89e3\u4e00\u4e0b\u76f8\u5173\u6587\u4ef6\u683c\u5f0f\u89c4\u8303\u3002\u5e76\u8fd9\u91cc\u7b80\u5355\u8bb0\u5f55\u4e00\u4e0b\u5728\u5b66\u4e60\u4e86\u89e3Office Open XML\u6587\u4ef6\u683c\u5f0f\u8fc7\u7a0b\u4e2d\u7684\u5185\u5bb9\uff0c\u65b9\u4fbf\u540e\u9762\u6709\u9700\u8981\u7684\u65f6\u5019\u518d\u53c2\u8003\u548c\u56de\u987e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li>Office Open XML \u662f\u4ec0\u4e48\uff1f<\/li><\/ol>\n\n\n\n<p class=\"has-text-color\" style=\"color:#8a0c0c\">Office Open XML\uff08\u7f29\u5199\uff1aOpen XML\u3001OpenXML\u6216OOXML\uff09\uff0c\u4e3a\u7531Microsoft\u5f00\u53d1\u7684<strong>\u4e00\u79cd\u4ee5XML\u4e3a\u57fa\u7840\u5e76\u4ee5ZIP\u683c\u5f0f\u538b\u7f29\u7684\u7535\u5b50\u6587\u4ef6\u89c4\u8303<\/strong>\uff0c\u652f\u6301\u6587\u4ef6\u3001\u8868\u683c\u3001\u5e7b\u706f\u7247\u7b49\u6587\u4ef6\u683c\u5f0f\u3002<\/p>\n\n\n\n<p>OOXML\u57282006\u5e7412\u6708\u6210\u4e3a\u4e86ECMA\u89c4\u8303\u7684\u4e00\u90e8\u5206\uff0c\u7f16\u53f7\u4e3aECMA-376\uff1b\u5e76\u4e8e2008\u5e744\u6708\u901a\u8fc7\u56fd\u9645\u6807\u51c6\u5316\u7ec4\u7ec7\u7684\u8868\u51b3\uff0c\u5728\u4e24\u4e2a\u6708\u540e\u516c\u5e03\u4e3aISO\uff0fIEC 29500\u56fd\u9645\u6807\u51c6\u3002\u5fae\u8f6f\u63a8\u51fa\u8fd9\u4e2a\u683c\u5f0f\uff0c\u5f88\u591a\u4eba\u8ba4\u4e3a\u662f\u51fa\u4e8e\u5546\u4e1a\u8003\u91cf\u3002\u8bb8\u591a\u4e13\u5bb6\u6307\u51fa\uff0c\u8be5\u6807\u51c6\u5e76\u4e0d\u662f\u4e2a\u5b8c\u6574\u7684\u6807\u51c6\uff0c\u91c7\u7528\u4e86\u8bb8\u591a\u5fae\u8f6f\u7684\u72ec\u6709\u89c4\u683c\uff0c\u4f7f\u7528\u4e0a\u56f0\u96be\u91cd\u91cd\u3002<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>\u4eceMicrosoft Office 2007\u5f00\u59cb\uff0cOffice Open XML\u6587\u4ef6\u683c\u5f0f\u5df2\u7ecf\u6210\u4e3aMicrosoft Office\u9ed8\u8ba4\u7684\u6587\u4ef6\u683c\u5f0f\u3002<\/strong>Microsoft Office 2010\u652f\u6301\u5bf9ECMA-376\u6807\u51c6\u6587\u6863\u7684\u8bfb\u64cd\u4f5c\uff0cISO\/IEC 29500 Transitional\u7684\u8bfb\/\u5199\uff0cISO\/IEC 29500 Strict\u7684\u8bfb\u53d6\u3002Microsoft Office 2013\u540c\u65f6\u652f\u6301ISO\/IEC 29500 Strict\u7684\u8bfb\u5199\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>Starting with the 2007 Microsoft Office system, Microsoft Office uses the XML-based file formats, such as .docx, .xlsx, and .pptx. These formats and file name extensions apply to Microsoft Word, Microsoft Excel, and Microsoft PowerPoint.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>docx\/xlsx\/pptx \u6587\u4ef6\u7684\u7ed3\u6784<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Content_Types].xml #\u8fd9\u4e2a\u6587\u4ef6\u5305\u542b\u6240\u6709\u5185\u5bb9\u7c7b\u578b\u7684\u5217\u8868\u3002\u6bcf\u4e2a\u90e8\u4ef6\u53ca\u5176\u7c7b\u578b\u5fc5\u987b\u5217\u5728&#91;Content_Types].xml\u4e2d\n_rels #\u7528\u4e8e\u914d\u7f6e\u5b9a\u4e49\u5404part\u95f4\u7684\u5173\u7cfb\uff0c\u5728part\u5185\u90e8\u4e5f\u4f1a\u6709\u5404_rels\u5b50\u76ee\u5f55\u53ca\u5173\u7cfb\u6587\u4ef6\n\t.rels\ndocProps #\u5b58\u653e\u5c5e\u6027\u76f8\u5173\u5185\u5bb9\n\tapp.xml #\u6269\u5c55\u5c5e\u6027\n\tcore.xml #\u6838\u5fc3\u5c5e\u6027\n\tcustom.xml #\u81ea\u5b9a\u4e49\u5c5e\u6027\uff08\u9ed8\u8ba4\u53ef\u80fd\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6\uff0c\u9700\u8981\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5c5e\u6027\u4e4b\u540e\u624d\u4f1a\u6709\u8be5\u6587\u4ef6\uff09\n\nword #docx\u7279\u6709\u76ee\u5f55\n\t_rels\n\t\tdocument.xml.rels\n\tdocument.xml\n\ttheme\/\n\t...\n\u6216\nxl #xlsx\u7279\u6709\u76ee\u5f55\n\t_rels\n\t\tworkbook.xml.rels\n\tworkbook.xml\n\tworksheets\/\n\ttheme\/\n\t...\n\u6216\nppt #pptx\u7279\u6709\u76ee\u5f55\n\t_rels\n\t\tpresentation.xml.rels\n\tpresentation.xml\n\tslides\/\n\ttheme\/\n\t...<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"720\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2022\/05\/docx.jpeg\" alt=\"\" class=\"wp-image-5240\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/docx.jpeg 460w, https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/docx-192x300.jpeg 192w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><figcaption>docx\u6587\u4ef6\u5185\u90e8\u7ed3\u6784<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"406\" height=\"1024\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2022\/05\/xlsx-406x1024.jpeg\" alt=\"\" class=\"wp-image-5241\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/xlsx-406x1024.jpeg 406w, https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/xlsx-119x300.jpeg 119w, https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/xlsx.jpeg 460w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><figcaption>xlsx\u6587\u4ef6\u5185\u90e8\u7ed3\u6784<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"1024\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2022\/05\/pptx-455x1024.jpeg\" alt=\"\" class=\"wp-image-5242\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/pptx-455x1024.jpeg 455w, https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/pptx-133x300.jpeg 133w, https:\/\/ixyzero.com\/wp-content\/uploads\/2022\/05\/pptx.jpeg 480w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><figcaption>pptx\u6587\u4ef6\u5185\u90e8\u7ed3\u6784<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>\u4ee5 docx \u6587\u4ef6\u4e3a\u4f8b\u4ecb\u7ecd\u5185\u90e8\u6587\u4ef6\u7684\u529f\u80fd\u548c\u4f5c\u7528<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Content Types<\/li><\/ul>\n\n\n\n<p>\u6839\u76ee\u5f55\u4e0b\u7684 [Content_Types].xml \u6587\u4ef6<\/p>\n\n\n\n<p>Every package must have a [Content_Types].xml, found at the root of the package. <strong>This file contains a list of all of the content types of the parts in the package. Every part and its type must be listed in [Content_Types].xml<\/strong>.<\/p>\n\n\n\n<p><strong>It&#8217;s important to keep this in mind when adding new parts to the package.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Relationships<\/li><\/ul>\n\n\n\n<p>\u6839\u76ee\u5f55\u4e0b\u7684 _rels \u76ee\u5f55\uff08\u53ca\u5404part\u5185\u90e8\u76ee\u5f55\u4e2d\u7684 _rels \u5b50\u76ee\u5f55\uff09<\/p>\n\n\n\n<p><strong>Every package contains a relationships part that defines the relationships between the other parts and to resources outside of the package.<\/strong> This separates the relationships from content and makes it easy to change relationships without changing the sources that reference targets.<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#8a0c0c\" class=\"has-inline-color\"><strong>In addition to the relationships part for the package, each part that is the source of one or more relationships will have its own relationships part. Each such relationship part is found within a _rels sub-folder of the part and is named by appending &#8216;.rels&#8217; to the name of the part.<\/strong> <em>Typically the main content part (document.xml) has its own relationships part(document.xml.rels).<\/em> It will contain relationships to the other parts of the content, such as styles.xml, themes,xml, and footer.xml, as well as the URIs for external links.<\/mark><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Parts Shared by Other OOXML Documents<\/li><\/ul>\n\n\n\n<p>\u6839\u76ee\u5f55\u4e0b\u7684 docProps \u76ee\u5f55\uff08\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6parts\uff09<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th scope=\"col\">Part<\/th><th scope=\"col\">Description<\/th><\/tr><tr><td>Embedded package<\/td><td>Contains a complete package, either internal or external to the referencing package. For example, a WordprocessingML document might contain a spreadsheet or presentation document.<\/td><\/tr><tr><td>\u6839\u76ee\u5f55\u4e0b\u7684docProps\/\u76ee\u5f55<\/td><td>\u6587\u6863\u7684\u6269\u5c55\/\u6838\u5fc3\/\u81ea\u5b9a\u4e49\u5c5e\u6027\u3002<\/td><\/tr><tr><td>Font<\/td><td>\u5b57\u4f53<\/td><\/tr><tr><td>Image<\/td><td>\u56fe\u7247\u3002Documents often contain images. An image can be stored in a package as a zip item. The item must be identified by an image part relationship and the appropriate content type.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Parts Specific to WordprocessingML Documents<\/li><\/ul>\n\n\n\n<p>\u6839\u76ee\u5f55\u4e0b\u7684 word \u76ee\u5f55\uff08xlsx\u662f xl \u76ee\u5f55\uff0cpptx\u662f ppt \u76ee\u5f55\uff09<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>Office Open XML<br><a href=\"https:\/\/zh.wikipedia.org\/wiki\/Office_Open_XML\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/zh.wikipedia.org\/wiki\/Office_Open_XML<\/a><\/p>\n\n\n\n<p>\u4ec0\u4e48\u662fOOXML\uff1f<br><a href=\"http:\/\/officeopenxml.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/officeopenxml.com\/<\/a><\/p>\n\n\n\n<p>Open XML Formats and file name extensions<br><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/open-xml-formats-and-file-name-extensions-5200d93c-3449-4380-8e11-31ef14555b18\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/support.microsoft.com\/en-us\/office\/open-xml-formats-and-file-name-extensions-5200d93c-3449-4380-8e11-31ef14555b18<\/a><\/p>\n\n\n\n<p>Anatomy of a WordProcessingML File<br><a href=\"http:\/\/officeopenxml.com\/anatomyofOOXML.php\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/officeopenxml.com\/anatomyofOOXML.php<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/officeopenxml.com\/anatomyofOOXML-xlsx.php\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/officeopenxml.com\/anatomyofOOXML-xlsx.php<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/officeopenxml.com\/anatomyofOOXML-pptx.php\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/officeopenxml.com\/anatomyofOOXML-pptx.php<\/a><\/p>\n\n\n\n<p>ECMA-376 -> Office Open XML file formats (5th edition, December 2021)<br><a href=\"https:\/\/www.ecma-international.org\/publications-and-standards\/standards\/ecma-376\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.ecma-international.org\/publications-and-standards\/standards\/ecma-376\/<\/a><\/p>\n\n\n\n<p>\u5fae\u8f6f\u5728Office Open XML\u5939\u4e86\u591a\u5c11\u79c1\u8d27?<br><a href=\"https:\/\/www.zhihu.com\/question\/39196478\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.zhihu.com\/question\/39196478<\/a><\/p>\n\n\n\n<p>Office-OpenXML\u683c\u5f0f\u7b14\u8bb0<br><a href=\"http:\/\/39.108.88.209\/?id=12\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/39.108.88.209\/?id=12<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u8fd1\u671f\u5728\u505a\u4e00\u4e9b\u6587\u6863\u8ffd\u8e2a\u65b9\u6848\u7684\u5b66\u4e60\u548c\u6d4b\u8bd5\uff0c\u9664\u4e86\u7eaf\u6587\u672c\u7684txt\/csv\u6587\u672c\u683c\u5f0f\u4e4b\u5916\uff0c\u7528\u7684\u6700\u591a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[1803,1807,1805,1804],"class_list":["post-5239","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","tag-docx","tag-ooxml","tag-pptx","tag-xlsx"],"views":6924,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5239"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5239\/revisions"}],"predecessor-version":[{"id":5243,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5239\/revisions\/5243"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}