"Alan Ezust" <[EMAIL PROTECTED]> wrote on 06/25/2006 08:38:01 PM:

> Hi Michael, thanks for the reply.
> 
> I grabbed the svn source, and I'm about to integrate that into my 
system.
> 
> Here is the source for the code I am working on.
> http://jedit.cvs.sourceforge.
> net/jedit/plugins/XML/xml/completion/XsdElementDecl.java?revision=1.
> 2&view=markup
> 
> I have another question about xsd schemas - I am trying to do "import"
> another xsd stylesheet (docbook 4.4 to be precise) into my namespace.
> 
> I noticed that the xsd has no targetNamespace attribute, defined, so I
> left out the namespace= attrib in the <xs:import> line too, but it
> seems that when I do that, I get this error message:
> 
> svn-import.1.1: the namespace attribute 'null' of an <import> element
> information item must not be the same as the targetNamespace of the
> schema it exists in.
> 
> I thought that the docbook 4.4 xsd has a null namespace, and
> therefore, I should be able to import this one into my own namepsace
> without specifying any namespace.
>
> What is the right way to xs:import those docbook stylesheets in xerces?

It doesn't look like your schema document specifies a target namespace in 
which case you need to use xs:include [1]. xs:import [2] is for 
referencing components from other namespaces.

[1] http://www.w3.org/TR/xmlschema-1/#compound-schema
[2] http://www.w3.org/TR/xmlschema-1/#composition-schemaImport

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to