Re-directing XML Schema in Word

M

Mark S

If I work on XML tagging a Word document using a locally-stored schema, and
email both the document and schema, can I re-direct the schema path to a copy
of the same schema on a different computer without losing all of the tagging
already done? Or, must the schema ALWAYS be stored somewhere accessible by
both computers that are involved? I figured out how to change the namespace
address within the XML, but then the schema's path is blank and therefore
"Unaccessible".
 
C

Cindy M.

Hi =?Utf-8?B?TWFyayBT?=,
If I work on XML tagging a Word document using a locally-stored schema, and
email both the document and schema, can I re-direct the schema path to a copy
of the same schema on a different computer without losing all of the tagging
already done? Or, must the schema ALWAYS be stored somewhere accessible by
both computers that are involved? I figured out how to change the namespace
address within the XML, but then the schema's path is blank and therefore
"Unaccessible".
If I recall correctly what I've learned about this, the URL in the namespace
isn't what is used to locate a schema. This is just a "resource identifier" that
should uniquely identify the namespace (so it doesn't get mixed up with any
other - like a GUID). Changing that will unlink any nodes from the schema.

But Word doesn't use this to find a schema. It should look in the user's schema
cache. When you attach a schema to a document Word should make a copy of the
schema in the local cache (at least, I could see that happening with Word 2003
and WinXP - I'm not seeing it with Word 2007 and Vista). So theoretically a
schema should be put in that cache and the document will "find" it on another
computer.

The following article mentions using a manifest to point a document to a schema:
http://msdn.microsoft.com/en-us/library/aa159902(office.11).aspx

Which leads to this article, which may be what you need:
http://msdn.microsoft.com/en-us/library/aa223355(office.11).aspx

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