<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx</link><description>In my presentation at TechEd SEA yesterday, I explained the importance of writing code against the relationship structure of an OPC package instead of hard-coding URIs that point to specific part names in specific folders. That's a key concept for building</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4879459</link><pubDate>Wed, 12 Sep 2007 16:20:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4879459</guid><dc:creator>Ben Langhinrichs</dc:creator><description>&lt;p&gt;Interesting post. &amp;nbsp;This sort of overview information is really helpful. &amp;nbsp;Does this mean that the minimum requirement is both an &amp;quot;_rels\.rels&amp;quot; file and a &amp;quot;[Content_Types].xml&amp;quot;, or is the latter optional if you don't scramble the parts?&lt;/p&gt;</description></item><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4887656</link><pubDate>Thu, 13 Sep 2007 05:43:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4887656</guid><dc:creator>dmahugh</dc:creator><description>&lt;p&gt;Sorry for the delay in moderating comments here -- connectivity has been poor for me the last 24 hours ...&lt;/p&gt;
&lt;p&gt;Yes, those two are always required, as well as an officeDocument part, or &amp;quot;start part.&amp;quot; &amp;nbsp;For a word-processing document, that's all you need, and for a spreadsheet document you need a worksheet part in addition to the workbook start part. &amp;nbsp;For a presentation, you need several parts because the slide is based on a slide layout, which is based on a slide master, and you need a notes master and a few other things as well.&lt;/p&gt;
&lt;p&gt;The content types part is always required, and its name and location is fixed: it must be [Content_Types].xml, and it must be in the root of the package. &amp;nbsp;That's so that a consumer always knows where to look to see the manifest of content types in the package, which is something a consumer usually wants to do before anything else.&lt;/p&gt;
&lt;p&gt;Relationships are always in a _rels folder that is at the same level (in the folder hierarchy) as the part that is the source of the relationship, and the relationships part's name is formed by adding &amp;quot;.rels&amp;quot; to the source part. &amp;nbsp;So, for example, relationships from whatever.xml are in the _rels folder in the same location as whatever.xml, and they're stored in a part named whatever.xml.rels.&lt;/p&gt;
&lt;p&gt;The &amp;quot;package relationships&amp;quot; are a special case, relationships that are from the package to something inside it. &amp;nbsp;Since the source part doesn't have a name in this case, the relationships are stored in a part named &amp;quot;.rels&amp;quot; with a filename and no extension. &amp;nbsp;Package relationships include the officeDocument relationship to the start part, and also relationships to things like metadata or digital signatures.&lt;/p&gt;
&lt;p&gt;Hey, here's a question for anyone reading this: is there a way to manually create a .rels file from scratch in Windows? &amp;nbsp;That is, create a file with an extension but no filename? &amp;nbsp;When I create one from scratch manually, I always do it with a filename, then go to a DOS prompt and rename it to .rels, but I've not found a way to do that in Windows. &amp;nbsp;(Perhaps this is due to my age -- I rather miss command-line interfaces, frankly. :-))&lt;/p&gt;
&lt;p&gt;Glad you found this helpful, and I'm planning to do a few more posts on these sorts of topics soon.&lt;/p&gt;
</description></item><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4891355</link><pubDate>Thu, 13 Sep 2007 12:36:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4891355</guid><dc:creator>hAl</dc:creator><description>&lt;p&gt;@Doug&lt;/p&gt;
&lt;p&gt;With Notepad&lt;/p&gt;
&lt;p&gt;Use &amp;quot;Save as&amp;quot;&lt;/p&gt;
&lt;p&gt;Choice filetype to save as &amp;quot;All files&amp;quot;&lt;/p&gt;
&lt;p&gt;Add the preferred extension to the name. &lt;/p&gt;</description></item><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4904730</link><pubDate>Fri, 14 Sep 2007 07:10:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4904730</guid><dc:creator>dmahugh</dc:creator><description>&lt;p&gt;Hey thanks, hAl! &amp;nbsp;That works like a champ. &amp;nbsp;I thought I tried that, but I guess not.&lt;/p&gt;
</description></item><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4910158</link><pubDate>Fri, 14 Sep 2007 15:39:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4910158</guid><dc:creator>hAl</dc:creator><description>&lt;p&gt;It is always amusing explaining someone working at Microsoft how their own products work &lt;/p&gt;
&lt;p&gt;;-)&lt;/p&gt;</description></item><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4959660</link><pubDate>Mon, 17 Sep 2007 20:26:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4959660</guid><dc:creator>John Hensley</dc:creator><description>&lt;p&gt;Hey Doug, do you remember when Scientific American was the best in its class?&lt;/p&gt;
&lt;p&gt;Look what it publishes now:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.sciam.com/index.php?title=micro_oft_gets_spanked_twice_in_one_week&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&amp;amp;more=1#comments"&gt;http://blog.sciam.com/index.php?title=micro_oft_gets_spanked_twice_in_one_week&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&amp;amp;more=1#comments&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HAHAHAH MICRO$OFT GET IT?&lt;/p&gt;</description></item><item><title>re: OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#4965615</link><pubDate>Tue, 18 Sep 2007 02:31:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4965615</guid><dc:creator>dmahugh</dc:creator><description>&lt;p&gt;Yes I do, John. &amp;nbsp;Scientific American linking to ... Slashdot? &amp;nbsp;My father, who built shelves in my closet to hold 10 years of Scientific American (1958-1968), just rolled over in his grave.&lt;/p&gt;
&lt;p&gt;Although I sort of liked the cartoon. &amp;nbsp;Perhaps we can convince the fanatics to all use cartoons going forward. &amp;nbsp;It eliminates a lot of the tedium of reading their arguments.&lt;/p&gt;
</description></item><item><title>Open XML Resources for Developers</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#8348542</link><pubDate>Tue, 01 Apr 2008 20:49:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8348542</guid><dc:creator>Doug Mahugh</dc:creator><description>&lt;p&gt;Like many people, I thought we'd know the official outcome of the DIS 29500 process today, but it looks&lt;/p&gt;
</description></item><item><title>Doug Mahugh : OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#8553587</link><pubDate>Tue, 27 May 2008 02:13:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8553587</guid><dc:creator>Dating</dc:creator><description>&lt;p&gt;In my presentation at TechEd SEA yesterday, I explained the importance of writing code against the relationship structure of an OPC package instead of hard-coding URIs that point to specific part names in specific folders. That's a key concept for buildin&lt;/p&gt;
</description></item><item><title>Doug Mahugh : OPC implementation test documents</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#8576246</link><pubDate>Thu, 05 Jun 2008 23:49:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8576246</guid><dc:creator>Weddings</dc:creator><description>&lt;p&gt;In my presentation at TechEd SEA yesterday, I explained the importance of writing code against the relationship structure of an OPC package instead of hard-coding URIs that point to specific part names in specific folders. That's a key concept for buildin&lt;/p&gt;
</description></item><item><title>Testing Office’s ODF Implementation</title><link>http://blogs.msdn.com/dmahugh/archive/2007/09/11/open-xml-implementation-test-documents.aspx#9752055</link><pubDate>Mon, 15 Jun 2009 07:32:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9752055</guid><dc:creator>Doug Mahugh</dc:creator><description>&lt;p&gt;In this blog post, I’m going to cover some of the details of how we approached the challenges of testing&lt;/p&gt;
</description></item></channel></rss>