- From: Sal Mangano <sal.mangano@morganstanley.com>
- Date: Wed, 10 Jul 2002 11:53:12 -0400
- To: <xmlschema-dev@w3.org>
I am designing a XSD schema in XML Spy v4.4 that uses a non-native
attribute. XML Spy is complaining that the schema that defines my non-native
attribute
has "no content model". Am I doing something wrong or is this the tools
problem. See below.
This is my main scheama:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:db="http://www.morganstanley.com/fid/db"
xmlns:xsi="http://www.w3.org/2001/XMLScheam-instance"
xsi:schemaLocation="http://www.morganstanley.com/fid/db
u:/dev/mapml/db.xsd">
<xs:element name="SwapMain">
<xs:annotation>
<xs:documentation>The main Swap Table in the database</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="SName" type="xs:string" db:joindef="true"/>
<xs:element name="SStatus"/>
<!-- Lots more irrelevant stuff here ...-->
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Lots more irrelevant stuff here ...-->
</xs:schema>
This is the schema defining the non-native attribute:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.morganstanley.com/fid/db"
xmlns="http://www.morganstanley.com/fid/db"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:attribute name="joindef" type="xs:boolean">
<xs:annotation>
<xs:documentation>Attach this attribute to fields that define the
collection of all data that are decendants of the root.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:schema>
Received on Wednesday, 10 July 2002 11:53:11 UTC