W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2002

Non-native attributes

From: Sal Mangano <sal.mangano@morganstanley.com>
Date: Wed, 10 Jul 2002 11:53:12 -0400
Message-ID: <00ef01c22829$e55fb4a0$fc230e90@manganopc>
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
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"

 <xs:element name="SwapMain">
   <xs:documentation>The main Swap Table in the database</xs:documentation>
    <xs:element name="SName" type="xs:string" db:joindef="true"/>
    <xs:element name="SStatus"/>

    <!-- Lots more irrelevant stuff here ...-->


    <!-- Lots more irrelevant stuff here ...-->


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"
 <xs:attribute name="joindef" type="xs:boolean">
   <xs:documentation>Attach this attribute to fields that define the
collection of all data that are decendants of the root.</xs:documentation>
Received on Wednesday, 10 July 2002 11:53:11 UTC

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