Thread: Word SCHEMA
View Single Post
  #3   Report Post  
Enrico
 
Posts: n/a
Default

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


"Cindy M -WordMVP-" wrote:

Hi ?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 :-)