Wiki

Clone wiki

Okapi / ResourceCase006

Document fragmented into several sub-documents

In this case an OpenXML main document is composed of different sub-documents. Part of the text in the main file is pulled from the other files. Here the text has examples of hyperlink, comment, and footnote.

Screen shot:

http://okapi-internal.googlegroups.com/attach/04b409bb54e8586a/OpenXMLExample.bmp?gda=UaTW60QAAABftKhZGdQWZXf3EyoZbW12cZIVrWTOCb8NzT5C71D6h4r9fffyIuFRsC69NpGdlxVV6u9SiETdg0Q2ffAyHU-dzc4BZkLnSFWX59nr5BxGqA&view=1&part=2&fakepng=img.png

Main file:

<w:p>
 <w:r>
  <w:fldChar w:fldCharType="begin"/>
 </w:r>
 <w:r>
  <w:instrText> HYPERLINK "http://www.microsoft.com" </w:instrText>
 </w:r>
 <w:r>
  <w:fldChar w:fldCharType="separate"/>
 </w:r>
 <w:r>
  <w:rPr>
   <w:rStyle w:val="Hyperlink"/>
  </w:rPr>
  <w:t>This</w:t>
 </w:r>
 <w:r>
  <w:fldChar w:fldCharType="end"/>
 </w:r>
 <w:commentRangeStart w:id="0"/>
 <w:r>
  <w:t> is a little</w:t>
 </w:r>
 <w:commentRangeEnd w:id="0"/>
 <w:r>
  <w:rPr>
   <w:rStyle w:val="CommentReference"/>
  </w:rPr>
  <w:commentReference w:id="0"/>
 </w:r>
 <w:r>
  <w:t> bit harder</w:t>
 </w:r>
 <w:r>
  <w:rPr>
   <w:rStyle w:val="FootnoteReference"/>
  </w:rPr>
  <w:footnoteReference w:id="0"/>
 </w:r>
 <w:r>
  <w:t> file.</w:t>
 </w:r>
</w:p>

Comments file:

<w:comment w:id="0">
 <w:p>
  <w:r>
   <w:t>Eric Henry Liddell</w:t>
  </w:r>
 </w:p>
</w:comment>

Footnotes file:

<w:footnote w:id="0">
 <w:p>
  <w:r>
   <w:t>Broke a tooth.</w:t>
  </w:r>
 </w:p>
</w:footnote>

Possible events:

TODO

StartDocument(d1, ooxml)
StartSubDocument(sd1, document.xml)
...
???
...
EndSubDocument(sd1)
StartSubDocument(sd2, comments.xml)
...
???
...
EndSubDocument(sd2)
StartSubDocument(sd3, footnotes.xml)
...
???
...
EndSubDocument(sd3)
EndDocument(d1)

Updated