W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

RE: #any or #other namespace for any element

From: Xan Gregg <xan@tibco.com>
Date: Thu, 10 Apr 2003 10:47:01 -0400
Message-ID: <339902DC0E58D411986A00B0D03D84320186ABCF@extmail.rtp.tibco.com>
To: "'Avin Patel'" <avinpatel@iit.edu>, xmlschema <xmlschema-dev@w3.org>

Avin,

It depends on your values of targetNamespace and elementFormDefault.  If
targetNamespace is not absent and elementFormDefault is unqualified (the
default value), then you should just be able to change ##any to
##targetNamespace.

xan

-----Original Message-----
From: Avin Patel [mailto:avinpatel@iit.edu]
Sent: Tuesday, April 08, 2003 5:09 PM
To: xmlschema
Subject: #any or #other namespace for any element



Hi All,
I have following code, that wouldn't work:
   <xsd:complexType name="LastUpdate">
      <xsd:choice>
         <xsd:element name="referencedTime" type="ReferencedValue"/>
         <xsd:element name="generalizedTime" type="xsd:dateTime"/>
         <xsd:any namespace="##any" processContents="lax"/>
      </xsd:choice>
   </xsd:complexType>

When I change the 'any' element namespace to "##other", it validates OK.
BUT what I want is any element can be in 'this' namespace, well here except
"referencedTime" & "generalizedTime".
Any way around?
Thank you for your time.
Avin Patel
Received on Thursday, 10 April 2003 10:54:01 GMT

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