none
Why does the SDT content not show in the 2nd row? RRS feed

  • Question

  • Hi all;

    Take a look at the file www.windward.net/temp/Table-ContentControl_bug.docx. The content of the sdt in row[1] does not display. However, both sdt's are basically equivalent. Why does it not show?

    displays:

    					<w:tr>
    						<w:trPr/>
    						<w:tc>
    							<w:tcPr>
    								<w:tcW w:w="0" w:type="auto"/>
    							</w:tcPr>
    							<w:p>
    								<w:pPr>
    									<w:pStyle w:val="NoSpacing"/>
    									<w:spacing w:line="276" w:lineRule="auto"/>
    									<w:ind w:left="0" w:firstLine="0" w:right="1320"/>
    									<w:rPr>
    										<w:b w:val="on"/>
    										<w:bCs w:val="on"/>
    										<w:caps w:val="on"/>
    										<w:sz w:val="72"/>
    										<w:szCs w:val="72"/>
    									</w:rPr>
    								</w:pPr>
    								<w:r>
    									<w:rPr>
    										<w:b w:val="on"/>
    										<w:bCs w:val="on"/>
    										<w:caps w:val="on"/>
    										<w:color w:val="76923C" w:themeColor="accent3" w:themeShade="BF"/>
    										<w:sz w:val="72"/>
    										<w:szCs w:val="72"/>
    									</w:rPr>
    									<w:t xml:space="preserve">[</w:t>
    								</w:r>
    								<w:sdt>
    									<w:sdtPr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
    										<w:rPr>
    											<w:b/>
    											<w:bCs/>
    											<w:caps/>
    											<w:sz w:val="72"/>
    											<w:szCs w:val="72"/>
    										</w:rPr>
    										<w:alias w:val="Title"/>
    										<w:id w:val="1475554767"/>
    										<w:placeholder>
    											<w:docPart w:val="AF378CE5712C47E4A2335212C8461F26"/>
    										</w:placeholder>
    										<w:dataBinding w:prefixMappings="xmlns:ns0='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:ns1='http://purl.org/dc/elements/1.1/'" w:xpath="/ns0:coreProperties[1]/ns1:title[1]" w:storeItemID="{6C3C8BC8-F283-45AE-878A-BAB7291924A1}"/>
    										<w:text/>
    									</w:sdtPr>
    									<w:sdtEndPr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"/>
    									<w:sdtContent>
    										<w:r>
    											<w:rPr>
    												<w:b w:val="on"/>
    												<w:bCs w:val="on"/>
    												<w:caps w:val="on"/>
    												<w:sz w:val="72"/>
    												<w:szCs w:val="72"/>
    											</w:rPr>
    											<w:t xml:space="preserve">homeowners policy</w:t>
    										</w:r>
    									</w:sdtContent>
    								</w:sdt>
    								<w:r>
    									<w:rPr>
    										<w:b w:val="on"/>
    										<w:bCs w:val="on"/>
    										<w:caps w:val="on"/>
    										<w:color w:val="76923C" w:themeColor="accent3" w:themeShade="BF"/>
    										<w:sz w:val="72"/>
    										<w:szCs w:val="72"/>
    									</w:rPr>
    									<w:t xml:space="preserve">]</w:t>
    								</w:r>
    							</w:p>
    						</w:tc>
    					</w:tr>

    does not display:

    				<w:tr>
    						<w:trPr/>
    						<w:tc>
    							<w:tcPr>
    								<w:tcW w:w="0" w:type="auto"/>
    							</w:tcPr>
    							<w:p>
    								<w:pPr>
    									<w:spacing w:line="276" w:lineRule="auto"/>
    									<w:ind w:left="0" w:firstLine="0" w:right="1320"/>
    									<w:rPr>
    										<w:color w:val="7F7F7F" w:themeColor="background1" w:themeShade="7F"/>
    									</w:rPr>
    								</w:pPr>
    								<w:r>
    									<w:rPr>
    										<w:b w:val="on"/>
    										<w:bCs w:val="on"/>
    										<w:caps w:val="on"/>
    										<w:color w:val="76923C" w:themeColor="accent3" w:themeShade="BF"/>
    										<w:sz w:val="72"/>
    										<w:szCs w:val="72"/>
    									</w:rPr>
    									<w:t xml:space="preserve">[</w:t>
    								</w:r>
    								<w:sdt>
    									<w:sdtPr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
    										<w:rPr>
    											<w:color w:val="7F7F7F" w:themeColor="background1" w:themeShade="7F"/>
    										</w:rPr>
    										<w:alias w:val="Abstract"/>
    										<w:id w:val="1176904029"/>
    										<w:placeholder>
    											<w:docPart w:val="468CD8E7A68346DA90F6CFD04A4FAAF9"/>
    										</w:placeholder>
    										<w:dataBinding w:prefixMappings="xmlns:ns0='http://schemas.microsoft.com/office/2006/coverPageProps'" w:xpath="/ns0:CoverPageProperties[1]/ns0:Abstract[1]" w:storeItemID="{55AF091B-3C7A-41E3-B477-F2FDAA23CFDA}"/>
    										<w:text/>
    									</w:sdtPr>
    									<w:sdtEndPr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"/>
    									<w:sdtContent>
    										<w:r>
    											<w:rPr>
    												<w:color w:val="7F7F7F" w:themeColor="background1" w:themeShade="7F"/>
    											</w:rPr>
    											<w:t xml:space="preserve">Coverage and limits of liability </w:t>
    										</w:r>
    									</w:sdtContent>
    								</w:sdt>
    								<w:r>
    									<w:rPr>
    										<w:b w:val="on"/>
    										<w:bCs w:val="on"/>
    										<w:caps w:val="on"/>
    										<w:color w:val="76923C" w:themeColor="accent3" w:themeShade="BF"/>
    										<w:sz w:val="72"/>
    										<w:szCs w:val="72"/>
    									</w:rPr>
    									<w:t xml:space="preserve">]</w:t>
    								</w:r>
    							</w:p>
    						</w:tc>
    					</w:tr>

    thanks - dave


    Who will win The Windward International Collegiate Programming Championships?

    Tuesday, August 12, 2014 3:29 PM

Answers

  • Hi Dave, a simple examination of the contents of each package shows that the 'bad' document is missing the CustomXML folder with all of its contents. The item1.xml file contains the relevant CoverPageProps XML data. So, it doesn't look like there is anything wrong with the document.xml file, but the data it's looking for is missing.

    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    Thursday, September 4, 2014 9:10 PM
    Moderator

All replies

  • Hi Dave:

    I have alerted the open specifications team regarding your inquiry. A member of the team will be in touch soon.


    Regards, Obaid Farooqi

    Tuesday, August 12, 2014 3:49 PM
    Owner
  • Hi Dave, I am the engineer who will be working with you on this issue. I am currently researching the problem and will provide you with an update soon. Thank you for your patience.


    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    Friday, August 15, 2014 5:38 PM
    Moderator
  • Hi Dave, I have narrowed the problem down to the dataBinding element for the second sdt. It looks like the problem is with the xpath attribute.

     

    w:xpath="/ns0:CoverPageProperties[1]/ns0:Abstract[1]"

     

    Should be changed to…

     

    w:xpath="/ns0:coverPageProperties[1]/ns0:Abstract[1]"

     

    Notice that the 'c' in coverPageProperties should be lower case. Making that single change will display the expected text in the second sdt.

     

    Please let me know if that answers your question.


    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    Wednesday, September 3, 2014 9:50 PM
    Moderator
  • Hi Josh;

    That part we blindly copy across from the source template. (And this template was created by one of our customers). But here's the source one www.windward.net/temp/Table-ContentControl.docx and it also is capitalized - and it does display the text.

    So I don't think that is it. Plus, why should Word care what the xpath is?

    ??? - thanks - dave


    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    Thursday, September 4, 2014 5:39 PM
  • Hi Dave, a simple examination of the contents of each package shows that the 'bad' document is missing the CustomXML folder with all of its contents. The item1.xml file contains the relevant CoverPageProps XML data. So, it doesn't look like there is anything wrong with the document.xml file, but the data it's looking for is missing.

    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    Thursday, September 4, 2014 9:10 PM
    Moderator
  • Bingo! That's it.

    thank you!!!


    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    Thursday, September 4, 2014 9:29 PM