I am having a really hard time getting an existing xml Schema converted into a Tamino Schema. XML Spy says its valid, but when i try to load it into the Schema Editor I get several error messages. The original File imported an xml:lang element locally by the following statement:
when I go and load the xsd file into the schema editor,load the xml_lang_space file from the database to be available in the namespace for this document i still get namespace poblems like this:
src-resolve: Cannot resolve the name ‘xml:lang’ to a(n) ‘attribute declaration’ component.
there are some other Problem messages but maybe they will be solved when this is solved, because the document is soppused to be valid.
so how can i get a working Tamino Schema fom the file? Would be great if someone could have a look at this xsd file o give me a hint how i can define it as a schema…
src-resolve: Cannot resolve the name ‘xml:lang’ to a(n) ‘attribute declaration’ component.
Question:
how did you obtain the error message - I assume this was via the schema check function in the Tamino Schema Editor. Unfortunately, this functionality is not compatible with the checks in the Tamino Server. In addition, it does not resolve references to schemas already being loaded into the server.
Using the pre-defined schema via
<xs:import
namespace=“The "xml:" Namespace”
schemaLocation=“…/ino:collection/xml_lang_space” />
will be accepted by the Tamino server (but you may also define a schema of your own as you attempted before).
Ok, so that means it doesn’t make sense to use the validation function of the Schema editor anyway.
But to define it in Tamino I need to convert the schema into an Tamino schema istn’t it?
So what I did now is that I loaded the Schema in the Schema Editor added the Schema name “MPEG7”, added the Collectionname “MPEG7” and created a doctype named “mpeg7:Mpeg7”. But when I try to define this Schema in my database (vie the interactive Interface) I get the following error message.
Do you know what this is about? I attached the resulted Tamino Schema.
Ok, my Version is 4.2.1.8 so that wouldn’t work. But I solved the Problem by using the Transform function of the Schema editor. But then there were some other Problems so I took the converted MPEG-7 Schema from this thread:
changed it a little bit (had to make the references globel) an now I could import it. But Now when I try to load data into DB in this Collection i get a Problem concerning another namespace
I don’t really know how to make this namespace available for this instance…
I attached the XML (MPEG-7) Instance which makes the problems…and i will attach the working schema in the next posting.