{"id":314,"date":"2015-01-17T12:00:24","date_gmt":"2015-01-17T02:00:24","guid":{"rendered":"http:\/\/www.docx4java.org\/blog\/?p=314"},"modified":"2015-01-17T12:00:24","modified_gmt":"2015-01-17T02:00:24","slug":"word-2013-repeatingsection-content-controls-ready-for-prime-time","status":"publish","type":"post","link":"https:\/\/www.docx4java.org\/blog\/2015\/01\/word-2013-repeatingsection-content-controls-ready-for-prime-time\/","title":{"rendered":"Word 2013 repeatingSection content controls &#8211; ready for prime time?"},"content":{"rendered":"<p>For developers wondering about Microsoft\u2019s commitment to content controls, Office 2013 was certainly good news.<\/p>\n<p>In Microsoft\u2019s \u201c<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/office\/ff838936(v=office.15).aspx\">What&#8217;s new for Word 2013 developers<\/a>\u201d, 2 of the 4 items were about content controls:<\/p>\n<ul>\n<li>Enhancements to content controls<\/li>\n<li>UI for XML mappings<\/li>\n<\/ul>\n<p>And in <a href=\"http:\/\/blogs.office.com\/2012\/10\/17\/top-5-reasons-developers-will-love-word-2013\/\">http:\/\/blogs.office.com\/2012\/10\/17\/top-5-reasons-developers-will-love-word-2013\/<\/a> 4 of the 5 reasons relate to content controls!<\/p>\n<p>The MSDN article \u201c<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/office\/jj889465(v=office.15).aspx\">What&#8217;s new with content controls in Word 2013<\/a>\u201d describes the changes in detail, but one of them was the introduction of repeating section content controls, which are comparable to OpenDoPE repeats (which docx4j has supported for ages).<\/p>\n<p>The question is whether the time is ripe to migrate from OpenDoPE repeats to Word 2013 repeatingSection content controls?<\/p>\n<p>My suggested answer is &#8220;no, or at least, not yet&#8221;, because<\/p>\n<ol>\n<li>Word 2010 strips out Word 2013 repeating content controls, and does so without warning!\u00a0 Compare OpenDoPE repeats, which work in Word 2007, 2010 and 2013. \u00a0So until Word 2010 becomes irrelevant (or support is back ported), Word 2013 repeating content controls can\u2019t be used in a generic solution.<\/li>\n<li>Word 2013 doesn\u2019t handle the case of repeat zero times as you\u2019d expect; it leaves a single instance, which will cause problems in many applications.<\/li>\n<\/ol>\n<p>For authoring, the XML Mapping Pane in Word 2013 also leaves a bit to be desired. \u00a0For more details, please see <a href=\"https:\/\/github.com\/plutext\/docx4j\/blob\/master\/docs\/developer\/w15RepeatingSection_cf_OpenDoPE.docx?raw=true\">w15RepeatingSection_cf_OpenDoPE.docx<\/a><\/p>\n<p>Even so, docx4j 3.2.2 will support processing Word 2013 repeating content controls, for those who still choose to use them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For developers wondering about Microsoft\u2019s commitment to content controls, Office 2013 was certainly good news. In Microsoft\u2019s \u201cWhat&#8217;s new for Word 2013 developers\u201d, 2 of the 4 items were about content controls: Enhancements to content controls UI for XML mappings And in http:\/\/blogs.office.com\/2012\/10\/17\/top-5-reasons-developers-will-love-word-2013\/ 4 of the 5 reasons relate to content controls! The MSDN article [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-314","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/comments?post=314"}],"version-history":[{"count":1,"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/posts\/314\/revisions\/315"}],"wp:attachment":[{"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/media?parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/categories?post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.docx4java.org\/blog\/wp-json\/wp\/v2\/tags?post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}