W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2008

RE: Notation Declaration valid or not

From: Michael Kay <mike@saxonica.com>
Date: Fri, 5 Dec 2008 09:09:09 -0000
To: <bharathkr@huawei.com>, <xmlschema-dev@w3.org>
Message-ID: <D6247DC83F0F425CA837BFA5F9E0A70C@Sealion>
Have you tried using the W3C schema validation service? It can often give
you an answer to these questions. It's also a good idea to get hold of a
tool such as Stylus Studio or oXygen that gives you access to multiple
schema validators.
 
Saxon says:
 
Error at xsd:notation on line 3 column 126 of test.xsd:
  Attributes in the XML Schema namespace are not allowed
Warning: at xsd:notation on line 3 column 126 of test.xsd:
  For compatibility, a notation should not have both a public identifier and
a system identifier
Schema processing failed: One error was found while processing the schema
 
Generally, additional namespaced attributes are allowed - but not in the XSD
namespace.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of bharath
Sent: 05 December 2008 07:24
To: xmlschema-dev@w3.org
Subject: Notation Declaration valid or not



Hi..

Can u please tell me whether the following  notation is valid or not. where
there is an attribute "a:b="c"" in the declaration.

 

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

       <xsd:notation a:b="c" name="jpeg" public="image/jpeg"
system="viewer.exe" xmlns:a="http://www.w3.org/2001/XMLSchema"/>

</xsd:schema>

 

Thanks and Regards,

Bharath.

 

****************************************************************************
****************************
 This e-mail and 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!

 
Received on Friday, 5 December 2008 09:09:47 GMT

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