RE: referencing a schema fails

John,

The content of whatever element contains the "heading" element does not
match the declared type.  It's hard to say what's wrong without seeing
the instance, but note that it is expecting the elements to appear in
the order they are declared: intro, section, heading, para.  It is
probably because either intro or section is missing, or heading appears
before one of them.  

Priscilla

-----------------------------------------------------
Priscilla Walmsley             priscilla@walmsley.com
Author, Definitive XML Schema     (Prentice Hall PTR)
----------------------------------------------------- 

> -----Original Message-----
> From: John Haber [mailto:jhaber@haberarts.com] 
> Sent: Tuesday, August 05, 2003 7:21 PM
> To: Priscilla Walmsley
> Cc: xmlschema-dev@w3.org
> Subject: RE: referencing a schema fails
> 
> 
> >>You don't need to extend xsd:string, you just need regular old mixed
> content<<
> 
> So for once I get away without typing a bit of data.
> 
> I must at last have cleaned up the entirety of the elements, thanks to
> everyone's help.  Now the sole error, not listed before, 
> takes me back to
> what brought me to this group.  Alas, now I get again a 
> problem right in the
> heading:
> 
> Invalid content starting with element 'heading'. The content 
> must match
> '(((("http://www.w3schools.com":intro){1-UNBOUNDED},("http://w
ww.w3schools.c
om":section)),("http://www.w3schools.com":heading)),("http://www.w3schoo
ls.c
om":para){1-UNBOUNDED}){1-UNBOUNDED}'

Seen this one?  I'm sure.
John

Received on Tuesday, 5 August 2003 19:30:55 UTC