Word 2007 XML Mapping

S

SJ

Hi!

I wonder how I can make an application in 2007 that will create the content
of file depending on which XML Mapping I will use.

I would like to generate the content of a file differently depending on
which file I use the to map it with. In the word file I will use the Content
Controls and create a meaning like the following:

I like <variable1>. Specially the <variable2> ones.

I would like this after the generation to be:

I like pear. Specially the green ones.
Will be the result from generating a file with the pear-map where
variable1=pear and variable2=green

I like apple. Specially the red ones.
Will be the result from generating a file with the apple-map whera
variable1=apple and variable2=red.

Do you know how this can be done?
Thanx.
SJ
 
C

Cindy M.

Hi =?Utf-8?B?U0o=?=,
I wonder how I can make an application in 2007 that will create the content
of file depending on which XML Mapping I will use.

I would like to generate the content of a file differently depending on
which file I use the to map it with.
By "file I map it with" do you mean a schema? Please give the exact steps
you're following to do this "mapping" so that we're sure we're understanding
what you want...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
S

SJ

I would like to specify this in the XML schema file.

So when I am creating for example the pdf file or looking at the file in
Word I would like to be able to chose between different values that I can
see. If I make one document for one company I would like to use one company
name and if I make another document for another company I would use the other
company name.

Thanx.
SJ
 
C

Cindy M.

Hi =?Utf-8?B?U0o=?=,
I would like to specify this in the XML schema file.

So when I am creating for example the pdf file or looking at the file in
Word I would like to be able to chose between different values that I can
see. If I make one document for one company I would like to use one company
name and if I make another document for another company I would use the other
company name.
I follow, sort of, what you want to do. But I don't understand what a schema
has to do with it... I think we're not communicating on the same wave-length.
Let's see...
I wonder how I can make an application in 2007 that will create the content
of file depending on which XML Mapping I will use.
It's possible to place some XML in a custom part of a Word 2007 document, then
map the specific XML tags/elements to given Content Controls, as described
here

http://msdn2.microsoft.com/en-us/library/ms406053.aspx

As far as I can tell, this article gives you all the basic information you
need to perform the proposed task.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top