Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field Nesting
I have a problem about field nesting.
// have a bookmark "test" {SET "test" "14" } //want to get the 14th item's name {INCLUDETEXT "config1.xml" \c XML \x //item[{"test"}]/name \* MERGEFORMAT } The result is null. I think it's a problem of field nesting. Any idea? I write like this. It works well. {INCLUDETEXT "config1.xml" \c XML \x //item[14]/name \* MERGEFORMAT } Any help will be greatly appreciated Qiwen |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field Nesting
Did you insert the field boundaries around Test with CTRL+F9?
Try instead {REF Test} or simply {Test} -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Qiwen wrote: I have a problem about field nesting. // have a bookmark "test" {SET "test" "14" } //want to get the 14th item's name {INCLUDETEXT "config1.xml" \c XML \x //item[{"test"}]/name \* MERGEFORMAT } The result is null. I think it's a problem of field nesting. Any idea? I write like this. It works well. {INCLUDETEXT "config1.xml" \c XML \x //item[14]/name \* MERGEFORMAT } Any help will be greatly appreciated Qiwen |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field Nesting
I insert the field boundaries around test with CTRL+F9. And I tried {REF
Test} and simply {Test}, but it doesn't work. "Graham Mayor" wrote: Did you insert the field boundaries around Test with CTRL+F9? Try instead {REF Test} or simply {Test} -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Qiwen wrote: I have a problem about field nesting. // have a bookmark "test" {SET "test" "14" } //want to get the 14th item's name {INCLUDETEXT "config1.xml" \c XML \x //item[{"test"}]/name \* MERGEFORMAT } The result is null. I think it's a problem of field nesting. Any idea? I write like this. It works well. {INCLUDETEXT "config1.xml" \c XML \x //item[14]/name \* MERGEFORMAT } Any help will be greatly appreciated Qiwen |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field Nesting
"Qiwen" wrote:
I insert the field boundaries around test with CTRL+F9. And I tried {REF Test} and simply {Test}, but it doesn't work. "Graham Mayor" wrote: Did you insert the field boundaries around Test with CTRL+F9? Try instead {REF Test} or simply {Test} And if you try {REF test} or {test} outside of the INCLUDETEXT field, does it work? If it does, it means that the string is not resolved appropriately for the \x switch. Try {INCLUDETEXT "config1.xml" \c XML \x {QUOTE //item[{test}]/name} } |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field Nesting
Thanks a lot,
It works when I try {QUOTE //item[{test}]/name}. "Jean-Guy Marcil" wrote: "Qiwen" wrote: I insert the field boundaries around test with CTRL+F9. And I tried {REF Test} and simply {Test}, but it doesn't work. "Graham Mayor" wrote: Did you insert the field boundaries around Test with CTRL+F9? Try instead {REF Test} or simply {Test} And if you try {REF test} or {test} outside of the INCLUDETEXT field, does it work? If it does, it means that the string is not resolved appropriately for the \x switch. Try {INCLUDETEXT "config1.xml" \c XML \x {QUOTE //item[{test}]/name} } |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Nesting | Microsoft Word Help | |||
Word 2003 "paste as nested table" not nesting | Tables | |||
pasting tables causes nesting | Tables | |||
Help on Mailmerge field (field length) - field getting truncated | Mailmerge | |||
Nesting IF statments in BARCODE funtion.. | Mailmerge |