Re: Undefined type . . .

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