{"id":129,"date":"2011-01-28T14:48:56","date_gmt":"2011-01-28T14:48:56","guid":{"rendered":"http:\/\/www.ericwhite.com\/home2\/bm8qcmjy\/public_html\/blog\/?p=129"},"modified":"2011-01-28T14:45:29","modified_gmt":"2011-01-28T14:45:29","slug":"the-second-iteration-of-the-template-document","status":"publish","type":"post","link":"https:\/\/www.ericwhite.com\/blog\/2011\/01\/28\/the-second-iteration-of-the-template-document\/","title":{"rendered":"The Second Iteration of the Template Document"},"content":{"rendered":"<p>After <a href=\"https:\/\/www.ericwhite.com\/blog\/2011\/01\/26\/using-a-wordprocessingml-document-as-a-template-in-the-document-generation-process\/#comments\">great feedback by Svetlin<\/a>, also after some more contemplation about tables, this post presents the second iteration on a template document to be used for a document generation process.<\/p>\n<p>This post is the third in a series of blog posts.  Here is the complete list: <a href=\"https:\/\/www.ericwhite.com\/blog\/map\/generating-open-xml-wordprocessingml-documents-blog-post-series\/\">Generating Open XML WordprocessingML Documents Blog Post Series<\/a><\/p>\n<p>One additional goal that I have for these document templates is that if necessary, the template designer can specify formatting for a field or for a cell in a table.  To facilitate this, I\u2019m going add the capability to specify the style in a separate nested content control.<\/p>\n<p>In the following template, there are five content controls.  The first is a value with a style.  The second is a value that uses the style of the containing paragraph.  The third generates a table from the query.  The table is formatted with the table style of the sample table.  The fourth shows conditional content.  The last specifies that the user should be asked a question, the answer to which must be shorter than 256 characters.<\/p>\n<p>I am certain that the design for this document template will be refined over the next couple of weeks.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ericwhite.com\/blog\/wp-content\/uploads\/2011\/01\/Gen051.jpg\" alt=\"\" title=\"Gen05\" width=\"449\" height=\"528\" class=\"alignnone size-full wp-image-131\" srcset=\"https:\/\/www.ericwhite.com\/blog\/wp-content\/uploads\/2011\/01\/Gen051.jpg 449w, https:\/\/www.ericwhite.com\/blog\/wp-content\/uploads\/2011\/01\/Gen051-255x300.jpg 255w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Based on feedback, this post shows an updated design for the template document<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_s2mail":"","footnotes":""},"categories":[7,3,5],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-document-generation-series","category-open-xml","category-wordprocessingml"],"_links":{"self":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":9,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}