logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: <xs:import> a null namespace: msg#00047

Subject: Re: <xs:import> a null namespace
"Alan Ezust" <alan.ezust@xxxxxxxxx> 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: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo