#1   Report Post  
Enrico
 
Posts: n/a
Default Word SCHEMA

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
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

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

  #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 :-)


  #4   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?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
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.

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

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
The WordPerfect "Reveal Codes" method is so much easier to use. Torden Microsoft Word Help 8 April 19th 10 07:50 PM
Making Word do something that Wordperfect can do NarniaUK New Users 4 May 1st 05 10:44 PM
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM
Converted document from WordPerfect. New footnotes are not being. C Lowman Microsoft Word Help 1 January 26th 05 10:19 PM
word xp crashes after macros are recorded kharris0405 Microsoft Word Help 3 January 11th 05 10:50 PM


All times are GMT +1. The time now is 08:35 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"