[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: doubt regarding targetNamespace

From: Michael Kay <mike@saxonica.com>
Date: Thu, 20 Nov 2008 10:43:02 -0000
To: <bharathkr@huawei.com>, <xmlschema-dev@w3.org>
Message-ID: <BF211772BE754BBEA895AEDF76838BE5@Sealion>
RE: doubt regarding targetNamespace
It is an error. The schema for schemas allows attributes in any namespace
other than the namespace http://www.w3.org/2001/XMLSchema. For once, Altova
is getting it right.
 
Even if it were allowed, it would have no effect. The specification defines
semantics for an attribute named targetNamespace (unqualified), but
attributes in other namespaces are simply ignored.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Bharath Kumar Reddy T
Sent: 19 November 2008 12:16
To: xmlschema-dev@w3.org
Subject: doubt regarding targetNamespace


 
 
Hi..
 
I have a doubt whether we can give prefix for targetNamespace attribute or
not.
 
In the following schema we have xsd prefix for targetNamespace. Is it
correct or not..........
 
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsd:targetNamespace="http://foobar">

<xsd:element name="foo"/>

</xsd:schema>

 

Altova spy says it is wrong but libxml parser has not given any error when
this schema is parsed.

 

Thank you very much,

Bharath.

 





htipl
HUAWEI TECHNOLOGIES CO.,LTD. huawei_logo 




Address: Huawei Industrial Base
Bantian Longgang
Shenzhen 518129, P.R.China
www.huawei.com
----------------------------------------------------------------------------
---------------------------------------------------------
This e-mail and its attachments contain confidential information from
HUAWEI, which 
is intended only for the person or entity whose address is listed above. Any
use of the 
information contained herein in any way (including, but not limited to,
total or partial 
disclosure, reproduction, or dissemination) by persons other than the
intended 
recipient(s) is prohibited. If you receive this e-mail in error, please
notify the sender by 
phone or email immediately and delete it!

 





outlook_huawei_logo_en.jpg
(image/jpeg attachment: outlook_huawei_logo_en.jpg)

Received on Thursday, 20 November 2008 10:43:48 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.