W3C home > Mailing lists > Public > public-schemata-users@w3.org > August 2008

Re: Undefined type . . .

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Thu, 31 Jul 2008 20:37:27 -0400
Message-Id: <7.0.1.0.2.20080731203441.02a4eac8@CraneSoftwrights.com>
To: "Albretch Mueller" <lbrtchx@gmail.com>,public-schemata-users@w3.org

At 2008-07-30 19:21 -0400, Albretch Mueller wrote:
>  I have the simple schema pasted below that is not validating.

It has a simple error.

>Undefined type xs{http://www.w3.org/2001/XMLSchema}:dtmf referenced as
>type definition of srvgmt
>...
>[ERROR] src-resolve.4.2: Error resolving component 'xs:dtmf'. It was
>detected that 'xs:dtmf' is in namespace
>'http://www.w3.org/2001/XMLSchema',

Those are your clues:  you haven't defined the type "xs:dtmf" ... but 
I see from your schema that you did define the type "dtmf":

><!-- Simple Data Type for Date formatting -->
>  <xs:simpleType name="dtmf">
>   <xs:restriction base="xs:dateTime">
>    <xs:pattern value="YYYY-MM-DDThh:mm:ssTZD" />
>   </xs:restriction>
>  </xs:simpleType>

So then your error is here:

>  <xs:element name="srvgmt" type="xs:dtmf" />

and the fix is:

  <xs:element name="srvgmt" type="dtmf" />

I hope this helps.

. . . . . . . . . . . .  Ken


--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
Received on Friday, 1 August 2008 00:38:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:39:08 UTC