#1   Report Post  
Posted to microsoft.public.word.docmanagement
Qiwen Qiwen is offline
external usenet poster
 
Posts: 7
Default 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   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



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Qiwen Qiwen is offline
external usenet poster
 
Posts: 7
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Jean-Guy Marcil[_2_] Jean-Guy Marcil[_2_] is offline
external usenet poster
 
Posts: 373
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Qiwen Qiwen is offline
external usenet poster
 
Posts: 7
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nesting Qiwen Microsoft Word Help 0 March 20th 08 10:07 AM
Word 2003 "paste as nested table" not nesting [email protected] Tables 0 August 14th 07 11:42 PM
pasting tables causes nesting CAJ Tables 4 December 12th 05 08:11 AM
Help on Mailmerge field (field length) - field getting truncated Blasting Cap Mailmerge 0 September 16th 05 06:57 AM
Nesting IF statments in BARCODE funtion.. S Stone Mailmerge 0 December 30th 04 12:53 AM


All times are GMT +1. The time now is 07:50 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"