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

use of xs:annotation outside of schema

From: Xan Gregg <xan@tibco.com>
Date: Thu, 13 Feb 2003 09:23:51 -0500
Message-ID: <339902DC0E58D411986A00B0D03D84320186AA84@extmail.rtp.tibco.com>
To: xmlschema-dev@w3.org

Is it OK to re-use something like xs:annotation for my own schemas?  That
is, I want to allow annotation of elements in my instance documents, and it
seems xs:annotation provides just what I want.  For example,

  <xs:complexType name = "my-annotated">
          <xs:element ref = "xs:annotation" minOccurs = "0"/>
          <xs:element ref = "my-content"/>

If it is OK, do I need an <import> for the XML Schema namespace?  Seems that
I don't since the processor already knows all about that namespace.


Xan Gregg
TIBCO Software, Inc.
Received on Thursday, 13 February 2003 09:29:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC