xml in appinfo annotations in validated schema

I am trying to add appinfo annotations to a schema. The
annotations themselves are xml. I want the schema to still be
able to be validated.

The problem I have is that when I validate the schema the
parser complains that the XML in the annotation is not
declared. 

So in my schema I want something like:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE xs:schema PUBLIC 
    "-//W3C//DTD XMLSCHEMA 200102//EN" 
    "./XMLSchema.dtd">
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
             xmlns:gui="./GuiInfo.xsd"
             elementFormDefault="qualified" 
             version="1.0.0">
    <xs:element name="Something">
      <xs:annotation>
        <xs:appinfo>
          <gui:displayName>Some Thing</gui:displayName>
          <gui:helpText>The help text.</gui:helpText>
        </xs:appinfo>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="SomthingElse"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:schema>

I then attempt to declare the XML that I am placing in the
annotation in another schema as follows:

  <?xml version="1.0" encoding="UTF-8"?>
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
             xmlns:gui="./GuiInfo.xsd"
             targetNamespace="./GuiInfo.xsd"
             version="1.0.0">
    <xs:element name="displayName" type="xs:string"/>
    <xs:element name="helpText" type="xs:string"/>
  </xs:schema>


I am guessing that there is a problem with how I declare the
elements I want to use in the annotation, or with how I try to
tell the other schema to use them.

If you can either tell me what I need to change in my example,
or point me to an example of writing a schema for elements to
be used in annotations in another schema I would appreciate it.

--Paul

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Received on Monday, 10 September 2001 20:10:07 UTC