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:sequence>
          <xs:element ref = "xs:annotation" minOccurs = "0"/>
          <xs:element ref = "my-content"/>
      </xs:sequence>
  </xs:complexType>

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

Xan Gregg
TIBCO Software, Inc.
www.tibco.com 
Received on Thursday, 13 February 2003 09:29:21 GMT

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