Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Conversions / May 2006

Tip: Looking for answers? Try searching our database.

Is there any way to define a Prefix for the Schema URI?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JeanKap - 09 May 2006 22:34 GMT
I'm working with XML documents that contain WordprocessingML along with our
own semantic XML content.

I would like to be able to choose my own prefix for the default namespace
URI.  Word automatically declares Ns0, Ns1, etc. based on the number of
schemas registered in the Schema library.  We have portability issues, so it
would be better if we could choose our own fixed default URI prefix rather
than rely on Word to generate one for us - Ns0 on one machine could be Ns12
on another and that leads to a whole lot of mess!

Thanks in advance for any ideas you can offer up on this quandry.

Signature

Jean Kaplansky

Peter Jamieson - 16 May 2006 07:45 GMT
As far as I can see, the only things you could do are
a. save using a transform that changes the URI prefix. I do not know if it
is possible to write an XSL transform that does that.
b. fix the prefixes using some code that goes through doing a find/replace.
Unfortunately, such code needs to distinguish between "ns1" in a prefix and
"ns1" in the body of the document, etc., which is obviously why an XML-aware
transform would be preferable, if it is possible.

Sorry I can't tell you whether or not (a) is possible.

Peter Jamieson

> I'm working with XML documents that contain WordprocessingML along with
> our
[quoted text clipped - 10 lines]
>
> Thanks in advance for any ideas you can offer up on this quandry.
JeanKap - 16 May 2006 15:40 GMT
Thanks for confirming my hunch.  I'm pretty sure that you could do a
transform that redeclared the namespace with a prefix and then applied the
prefix to every non-WordprocessingML document.  That's something worth
looking into, although it sounds like it may take more time than we really
need to spend on this one.

Thanks again!

Signature

Jean Kaplansky

> As far as I can see, the only things you could do are
>  a. save using a transform that changes the URI prefix. I do not know if it
[quoted text clipped - 22 lines]
> >
> > Thanks in advance for any ideas you can offer up on this quandry.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.