Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Seeking help regarding the usage of cfChunk in word xml 2003

8 views
Skip to first unread message

Shao

unread,
Sep 8, 2009, 5:19:58 PM9/8/09
to
I am trying to use cfChunk to include a few child word xml documents
in a master word xml document. The master document contains a numbered
list with the content of each list item coming from a child word
document, which also contains a numbered list. All lists use Word's
automatic numbering.

<Master.xml>
========================================
Master document includes the following:
1. <insert child1.xml content here>
2. <insert child2.xml content here>
========================================

<child1.xml>
========================================
Terms
a. Term 1.
b. Term 2.
========================================

<child2.xml>
========================================
Conditions
a. Condition 1.
b. Condition 2.
========================================

I used cfChunk to merge the two child documents into the master
document. Each cfChunk is contained in a paragraph and is preceded by
a w:pPr node, which stores list information of the paragraph. Each
cfChunk also contains the styles, fonts, lists and the body node of a
child document.
========================================
<wordDocument>
<w:styles/>
<w:fonts/>
<w:lists/>
<w:body>
<w:p>Master document includes the following:</w:p>
<w:p>
<w:pPr/>
<w:cfChunk>
<w:styles/>
<w:fonts/>
<w:lists/>
<w:body/>
</cfChunk>
</w:p>
<w:p>
<w:pPr/>
<w:cfChunk>
<w:styles/>
<w:fonts/>
<w:lists/>
<w:body/>
</cfChunk>
</w:p>
</body>
</wordDocument>
========================================
The bad news was that the result document couldn't be opened in word
2003 until I removed the w:pPr node from the document. However, the
side effect was that the numbering in the master document was gone as
well. Here is the result document:
========================================
Master document includes the following:
Terms
a. Term 1.
b. Term 2.
Conditions
a. Condition 1.
b. Condition 2.
========================================

I am wondering what can I do to preserve the numbering of the master
document and also add some "magic" indentation to the numbered lists
from the child documents so that the result document would look like
the following:
========================================
Master document includes the following:
1. Terms
a. Term 1.
b. Term 2.
2. Conditions
a. Condition 1.
b. Condition 2.
========================================

0 new messages