W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2006

Re: using types from an included file in a different namespace

From: George Cristian Bina <george@oxygenxml.com>
Date: Fri, 27 Oct 2006 18:30:15 +0300
Message-ID: <45422607.7060401@oxygenxml.com>
To: "Antoli, Leo" <Leo.Antoli@Misys.com>
Cc: xmlschema-dev@w3.org

Hi Leo,

You should be able to make references to components defined in F.xsd 
from A.xsd as you describe but the best way to tell is to provide a cut 
down sample schemas to show what you mean exactly.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Antoli, Leo wrote:
> Hi all,
> Maybe the subject is not very clear but I'll try to explain my question.
> I have a schema file A.xsd including another file B.xsd (so in the same ns
> as A.xsd), and B.xsd importing F.xsd (so in a differente ns). Can I use
> types/elements defined in F.xsd from A.xsd?
> 
> It looks like XML Spy allows this, but Saxon produces this error:
> "Cannot reference schema components in namespace http://myns as it has not
> been imported".
> 
> What behaviour is correct?
> 
> Thanks you.
> 
> Regards,
> Leo. 
> 
Received on Friday, 27 October 2006 15:30:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:55 GMT