Thread: Field Nesting
View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default 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