Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
The WordPerfect "Reveal Codes" method is so much easier to use. | Microsoft Word Help | |||
Making Word do something that Wordperfect can do | New Users | |||
Macros - Keyboard Commands | Microsoft Word Help | |||
Converted document from WordPerfect. New footnotes are not being. | Microsoft Word Help | |||
word xp crashes after macros are recorded | Microsoft Word Help |