W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2009

RE: Unqualified elment - but still have prefix at the root

From: Michael Kay <mike@saxonica.com>
Date: Tue, 25 Aug 2009 11:01:39 +0100
To: "'Avihaimar'" <avihaimar@yahoo.com>, <xmlschema-dev@w3.org>
Message-ID: <DD7C58B3903244EB960A434BDA3E07DC@Sealion>
> 
> i have two schemas A,B. 
> B import A. 

Actually, you have one schema made up from two schema documents.

> Both of them defined as unqualified element, but the xml that 
> generated from B has n1: as a prefix for the root elements. 
> Is there a way to have no prefix at all? 
> 

Are you saying (a) you don't want the elements to be in a namespace, or are
you saying (b) you want them to be in a namespace, but you want that to be
the default namespace (so it needs no prefix)?

If you want (a) then you'll have to change your schema. Without seeing the
schema, it's hard to say how.

If you want (b), then this depends on the tool that you are using to
generate instances from your schema. You haven't told us what tool you are
using.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
Received on Tuesday, 25 August 2009 10:02:21 GMT

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