You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Alan Ezust <al...@gmail.com> on 2006/06/26 02:38:01 UTC
a null namespace
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?
On 6/25/06, Michael Glavassevich <mr...@ca.ibm.com> wrote:
> "Alan Ezust" <al...@gmail.com> wrote on 06/25/2006 05:31:59 PM:
>
> > I apologise, I meant 2.8.0
> >
> > I'll try the latest SVN if you think those bugs were fixed since 2.8.0.
>
> I don't recall there being a fix in this area after 2.8.0. Since I cannot
> reproduce what you observed, it would make it easier to determine what's
> going on if you posted some code which shows what you're doing.
>
> > However, I noticed that I can only see the web interface,
> > http://svn.apache.org/viewvc/xerces/java/trunk/.
> > If I want to check it out using a command line svn (read only), what
> > is the right
> > protocol/address?
>
> It is "http://svn.apache.org/repos/asf/xerces/java/trunk/".
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: a null namespace
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
"Alan Ezust" <al...@gmail.com> 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@ca.ibm.com
E-mail: mrglavas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org