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 / Page Layout / June 2005

Tip: Looking for answers? Try searching our database.

Word  SCHEMA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Enrico - 30 May 2005 16:22 GMT
Hello I have a document word with associated a schema and would want to know
if it is possible to condition portions of the document on the base of the
value of tag a XML
Hi Enrico
Cindy M  -WordMVP- - 01 Jun 2005 14:56 GMT
Hi =?Utf-8?B?RW5yaWNv?=,

> I have a document word with associated a schema and would want to know
> if it is possible to condition portions of the document on the base of the
> value of tag a XML

You mean, can you include an element's contents in an IF field? Yes, that
should be possible, as long as you're within the Word document environment.
You might have problems after that, though, depending on what you want to do
with the document after that point.

Another question is: who is going to create that IF field, and when?

You might want to take a look at SmartDocument technology (MSDN website).
That would allow you to programmatically check the content of an element and
do something.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Enrico - 01 Jun 2005 16:03 GMT
I can make an example to explain the problem. I drow a simple table with one
row and two cells in my XML
Word Document. In the first cell I wrote a generic label and in the second
cell I inserted an XML tag
(drag-and-drop from the task pane).
When I finished to draw the report, I used Microsoft Inference Tool in order
to create the XSL file. Then, I applied the XSL to the XML actually
containing the data.
I would not generate the table row if the tag value is blank. Is there a
condition that I can specify at design time on my XML Word Document? In my
opinion, Inference Tool should translate the condition in a <xsl:if> block.

Thanks in advance
Enrico

> Hi =?Utf-8?B?RW5yaWNv?=,
>
[quoted text clipped - 20 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 06 Jun 2005 09:10 GMT
Hi =?Utf-8?B?RW5yaWNv?=,

> I can make an example to explain the problem. I drow a simple table with one
> row and two cells in my XML
[quoted text clipped - 7 lines]
> condition that I can specify at design time on my XML Word Document? In my
> opinion, Inference Tool should translate the condition in a <xsl:if> block.

I have to admit I've never tried the Inference Tool (on my list of things to
do, when I find the time). However, I rather have my doubts that it would drill
down to this level of inclusion. However, I should think you could edit the XSL
the tool generates so that it does what you'd like to see.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
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.