Problem trying to use schema in Word

D

Dan Gilleland

Here's an interesting problem:

I am attempting to use an existing schema for use in
creating learning objects. I am just beginning to explore
Word's potential in this venue, and I am having some
problems. Basically, Word is saying that the schema I'm
using (from IMS) has a problem. Can anyone help??


The technical info behind this problem is as follows:
----------------------------------------------------

The schema location is:
http://www.imsglobal.org/xsd/imsmd_v1p2p2.xsd


When I try to use it in Word, I get a message that states
the following:

"The schema(s) you have selected cannot be used in this
document. Some of the schemas may or may not be valid, or
they may require addtional schemas in order to operate
correctly."


The details of the message state that there is an
undeclared xsd attribute:
'{http://www.w3.org/XML/1998/namespace}lang'


From examining the schema, I believe the problem lies in
the declaration of the following complex type:

<xs:complexType name="stringType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="x:lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>


The x: and xs: namespaces are declared in the start of the
schema as follows:
xmlns:x="http://www.w3.org/XML/1998/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema"


Am I correct in interpreting this as a problem resolving
the lang attribute reference in the x: namespace??

------------------------

Many thanks in advance for any help with this!


Sincerely,

Dan Gilleland
([email protected])
 
C

Cindy Meister -WordMVP-

Hi Dan,
Am I correct in interpreting this as a problem resolving
the lang attribute reference in the x: namespace??
I wish I could tell you :) But I'm only just getting
started with all this stuff, myself.

I'm guessing you'd have a better chance of getting a
knowledgeable answer in the XML newsgroup. (Yeah, there
really is a group that's just "XML" <g>) Some of the people
there have already been trying out Word 2003's XML.

FWIW, you might simply try removing the part you suspect
causes the problem from the schema and see if it works
then.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
D

Dan Gilleland

Thanks Cindy. I'll check it out. I was able to do a
workaround to get it working by using a local schema and
changing the part that Word seemed to have a problem with.
I'll check it out in the xml section.

Dan
 

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