I'm getting a very weird error when using Xerces to parse an XSD document (Xerces as embedded in Oxygen 8.1).
"E src-resolve: Cannot resolve the name 'xhtml:head_fn3dktizrknc9pi' to a(n) 'type definition' component."
The full document is shown below as it's very simple. If anyone can make out what's wrong with it, or make a modification to it which will make it acceptable to the parser, or even point me to a useful resource for extra knowledge I need to have to address these errors, I would be very grateful.
I've tried every possible variant of various irrelevant namespace and targetnamespace properties in response to a series of other silly conformance errors raised. I get the fewest errors of all with this configuration - only one error, but it's completely meaningless to me.
I know W3C standards aren't parsimonious and rarely have smart defaults, but I've spent a long time on this - like 3 hours plus over a period of a fortnight trying every possible combination of targetNamespace, with imports, with schema locations, without schema locations. What I'm trying to achieve is unbelievably straightforward. God help me if I try to use XSD for anything major.
The document is attempting to combine XHTML and XFORMS components into an XHTML variant which permits XFORMS 'model' elements to sit in the 'head' element of the XHTML. After this works, I'll also add XFORMS 'group' elements into the 'body' element of XHTML. In that way I hope to generate an XSD which allows me to edit XHTML+XFORMS combined documents in a validating XML editor. As I understand it, this schema definition and recombination is exactly what XSD is intended to do.
I guess it's got to be just right. I'm sure there's some kind of error, but the error reports I'm getting don't help me get to the bottom of it at all. All help gratefully received.