Brian,
In the
SForS processContent is specified to be lax. That means, if bXXlance
is not found to be defined somewhere, it is
not validated.
Thats exactly what happened.
Harald
Hi
I need some help in a hurry - I'm trying to
validate a schema (just as an XML document) that imports a namespace, and I'm
only having partial success. My problem is not with the S4S namespace,
it's with the namespace defined in the import element for the
'xbrli' prefix (see below). Put simply, if you look at my schema snippet
(see below), when I mispell 'debit', the parser goes and gets the correct
schema and correctly sees it's not in the ennumeration for that
attribute. Great. However, I can mispell 'balance' and Xerces
doesn't complain at all - shouldn't it have a problem with an attribute
name ('bXXlance') that isn't defined in the schema for the namespace defined
by the xbrli: prefix?
Here's the
relevant code for my parser (it happens to be under a JDOM SaxBuilder,
but JDOM lets me get at the features/properties):
SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser",
true);
//I'm using a scemaLocation Property to override the
document hints.
Here's a portion of the schema
I'm trying to validate (see the last attribute in the 'element' element -
that's what I'm breaking to test validation):
xbrli:balance="debit"
/>
Any help would be greatly
appreciated!
Thanks in advance,
Brian
|