Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Document Management / March 2008

Tip: Looking for answers? Try searching our database.

Field Nesting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Qiwen - 20 Mar 2008 11:11 GMT
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
Graham Mayor - 20 Mar 2008 11:59 GMT
Did you insert the field boundaries around Test with CTRL+F9?

Try instead {REF Test} or simply {Test}

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I have a problem about field nesting.
>
[quoted text clipped - 12 lines]
>
> Qiwen
Qiwen - 20 Mar 2008 12:10 GMT
I insert the field boundaries around test with CTRL+F9. And I tried {REF
Test} and simply {Test}, but it doesn't work.

> Did you insert the field boundaries around Test with CTRL+F9?
>
[quoted text clipped - 16 lines]
> >
> > Qiwen
Jean-Guy Marcil - 20 Mar 2008 13:13 GMT
> I insert the field boundaries around test with CTRL+F9. And I tried {REF
> Test} and simply {Test}, but it doesn't work.
>
> > 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} }
Qiwen - 20 Mar 2008 14:28 GMT
Thanks a lot,

It works when I try {QUOTE //item[{test}]/name}.

> > I insert the field boundaries around test with CTRL+F9. And I tried {REF
> > Test} and simply {Test}, but it doesn't work.
[quoted text clipped - 10 lines]
> Try
> {INCLUDETEXT "config1.xml" \c XML \x {QUOTE //item[{test}]/name} }
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.