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

XSV handling of other-namespace attributes

From: Priscilla Walmsley <pwalmsley@vitria.com>
Date: Thu, 4 Oct 2001 10:50:26 -0700
Message-ID: <C72C18E3B1C0D411B7B600D0B7A9208C1380F4@vt-sjc-ms3.vitria.com>
To: xmlschema-dev@w3.org
Hi,

I'm trying to add a non-XML Schema attribute (oth:desc) to an element
declaration.  XSV is not acting the way I would expect.  It is oddly trying
to dereference the target namespace (not the namespace mapped to "oth"), and
giving an error when it can't.  When I remove the oth:desc attribute, it
works fine.  Is this a bug?

Thanks,
Priscilla 



Schema (http://www.priscilla.walmsley.com/slroot.xsd):
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 		xmlns="tns"
   		targetNamespace="tns" 
		xmlns:oth="otherns">

<xsd:element name="x" type="xsd:string" oth:desc="xdesc"/>

</xsd:schema>

Instance (http://www.priscilla.walmsley.com/slroot.xml):
<x xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="tns slroot.xsd"
   xmlns="tns">test</x>


Error message:
Error: can't retrieve "http://www.priscilla.walmsley.com/tns": 404 Object
Not Found


-----------------------------------------------------------
Priscilla Walmsley                   priscilla@walmsley.com
Architect, Vitria Technology          http://www.vitria.com
Author, Definitive XML Schema  (Prentice Hall, Dec. 2001)
-----------------------------------------------------------
Received on Thursday, 4 October 2001 13:50:29 GMT

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