none
What are the footer rules for this? RRS feed

  • Question

  • Hi;

    We have a customer who provided us a DOCX file, created by Word, with the following:

    				<w:sectPr w:rsidR="000E41E2" w:rsidRPr="00C90DB1" w:rsidSect="00EF4491">
    					<w:headerReference w:type="even" r:id="rId12"/>
    					<w:headerReference w:type="default" r:id="rId13"/>
    					<w:footerReference w:type="even" r:id="rId14"/>
    					<w:footerReference w:type="default" r:id="rId15"/>
    					<w:headerReference w:type="first" r:id="rId16"/>
    					<w:footerReference w:type="first" r:id="rId17"/>
    					<w:pgSz w:w="12240" w:h="15840"/>
    					<w:pgMar w:top="-854" w:right="720" w:bottom="720" w:left="720" w:header="1440" w:footer="720" w:gutter="0"/>
    					<w:cols w:space="720"/>
    					<w:noEndnote/>
    					<w:docGrid w:linePitch="272"/>
    				</w:sectPr>
    

    Reading 17.10.2 it says these must be set to even, odd, & first. Reading 17.18.37 it says it should be default, even, or first and that default is odd plus any that aren't set.

    But for the above, the default is used for all footers. The other two footer.xml files do exist, but they're basically empty:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <w:ftr xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 wp14">
    	<w:p w:rsidR="008459DE" w:rsidRDefault="008459DE">
    		<w:pPr>
    			<w:pStyle w:val="Footer"/>
    		</w:pPr>
    	</w:p>
    </w:ftr>
    

    Any idea what's going on?

    thanks - dave


    Who will win The Windward International Collegiate Programming Championships?

    Tuesday, July 8, 2014 11:41 PM

Answers

  • Hi Dave,

    The reason that the default footer is being shown on all pages is because neither the <evenAndOddHeaders> (§17.10.1) nor the <titlePg> (§17.10.6) elements are present in the document. This is the state that the document will be in when the "Different First Page" and "Different Odd & Even Pages" options are unchecked in the header and footer options in Word. Short of unchecking those options, I haven't come up with a way to make Word generate a comparable document. Do you know if those options were enabled or disabled when the document was saved?

    Best regards,
    Matt Weber | Microsoft Open Specifications Team

    • Marked as answer by DavidThi808 Thursday, July 17, 2014 8:24 PM
    Thursday, July 17, 2014 7:56 PM

All replies

  • Hi David,

    Thank you for your question. A member of the Protocol Documentation support team will respond to you soon.

    Regards,
    Vilmos Foltenyi - MSFT

    Wednesday, July 9, 2014 5:23 AM
  • Hi David,

    The <footerReference> definitions appear to be correct. ISO/IEC 29500-1:2012 §17.10.2 refers to "first", "odd", and "even" footers, but it does not specify that those are the names that will be used to represent those concepts in the document. It refers to §17.18.36 for that definition, which as you noted defines "default", "even", and "first".

    If the default footer is being seen on all pages, I wonder if there might be something wrong with the relationships? I created a new document with Word and specified each footer, resulting in the following document XML:

    <w:sectPr w:rsidR="00ED5CBA" w:rsidSect="009A37CD"> <w:footerReference w:type="even" r:id="rId7"/> <w:footerReference w:type="default" r:id="rId8"/> <w:footerReference w:type="first" r:id="rId9"/> <w:pgSz w:w="12240" w:h="15840"/> <w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/> <w:cols w:space="720"/> <w:titlePg/> <w:docGrid w:linePitch="360"/> </w:sectPr>

    And the following relationship XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
      <Relationship Id="rId7" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" Target="footer1.xml"/>
      <Relationship Id="rId8" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" Target="footer2.xml"/>
      <Relationship Id="rId9" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" Target="footer3.xml"/>
      ...
    </Relationships>
    

    If you check the relationships in your document, do they look like these?

    Best regards,
    Matt Weber | Microsoft Open Specifications Team

    Monday, July 14, 2014 5:56 PM
  • Matt;

    I sent the example one to dochelp (as it's confidential).

    thanks - dave


    Who will win The Windward International Collegiate Programming Championships?

    Monday, July 14, 2014 8:59 PM
  • Hi Dave,

    The reason that the default footer is being shown on all pages is because neither the <evenAndOddHeaders> (§17.10.1) nor the <titlePg> (§17.10.6) elements are present in the document. This is the state that the document will be in when the "Different First Page" and "Different Odd & Even Pages" options are unchecked in the header and footer options in Word. Short of unchecking those options, I haven't come up with a way to make Word generate a comparable document. Do you know if those options were enabled or disabled when the document was saved?

    Best regards,
    Matt Weber | Microsoft Open Specifications Team

    • Marked as answer by DavidThi808 Thursday, July 17, 2014 8:24 PM
    Thursday, July 17, 2014 7:56 PM
  • Hi;

    I don't know how the document was created. We got it from one of our customers. He does use Word (2010 or 2013) but he manages to create very unusual DOCX files at times.

    That makes sense now that I re-read that part of the spec based on what you said. Weird that it has empty footers in for the unused part but I guess that's ok too.

    Thank you for figuring this out!


    Who will win The Windward International Collegiate Programming Championships?

    Thursday, July 17, 2014 8:24 PM