<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2>I know this the JDOM forum, but I' am stumped - 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 2.4.0 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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2>Here's the relevant code for my parser (via a JDOM SaxBuilder):
<DIV><FONT face=Arial size=2> SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser", true); </FONT></DIV>
<DIV> builder.setFeature("<A href="http://apache.org/xml/features/validation/schema">http://apache.org/xml/features/validation/schema</A>", true);</DIV>
<DIV> </DIV>
<DIV> //I'm using a scemaLocation Property to override the document hints.</DIV>
<DIV> schemaLocs[0] = ".\\XMLSchema.xsd"; //I have a local copy<BR> schemaLocs[1] = "<A href="http://www.xbrl.org/2001/xbrl-instance.xsd">http://www.xbrl.org/2001/xbrl-instance.xsd</A>";</DIV>
<DIV> builder.setProperty("<A href="http://java.sun.com/xml/jaxp/properties/schemaSource">http://java.sun.com/xml/jaxp/properties/schemaSource</A>", schemaLocs); //only jaxp seems to work<BR></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>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):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0" encoding="utf-8"?><BR></FONT><FONT face=Arial size=2><!-- Taxonomy based on XBRL standard v.2. Created by UBmatrix Taxonomy Builder 5.0.76. Contact <A href="http://www.ubmatrix.com/">www.ubmatrix.com</A> --><BR></FONT><FONT face=Arial size=2><schema xmlns="<A href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>" xmlns:xbrli="<A href="http://www.xbrl.org/2001/instance">http://www.xbrl.org/2001/instance</A>" </FONT></DIV>
<DIV><FONT face=Arial size=2> xmlns:link="<A href="http://www.xbrl.org/2001/XLink/xbrllinkbase">http://www.xbrl.org/2001/XLink/xbrllinkbase</A>" xmlns:xlink="<A href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</A>" </FONT></DIV>
<DIV><FONT face=Arial size=2> xmlns:xhtml="<A href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>" xmlns:iascf-pfs="<A href="http://www.xbrl.org/taxonomy/int/fr/ias/ci/pfs/2002-11-15">http://www.xbrl.org/taxonomy/int/fr/ias/ci/pfs/2002-11-15</A>" </FONT></DIV>
<DIV><FONT face=Arial size=2> targetNamespace="<A href="http://www.xbrl.org/taxonomy/int/fr/ias/ci/pfs/2002-11-15">http://www.xbrl.org/taxonomy/int/fr/ias/ci/pfs/2002-11-15</A>" elementFormDefault="qualified"><BR></FONT><FONT face=Arial size=2><annotation><BR> </FONT><FONT face=Arial size=2><appinfo><BR> <link:linkbaseRef xlink:type="simple" xlink:href="ias-ci-pfs-2002-11-15-references.xml" xlink:actuate="onRequest" </FONT></DIV>
<DIV><FONT face=Arial size=2> xlink:role="<A href="http://www.xbrl.org/linkprops/linkRef/reference">http://www.xbrl.org/linkprops/linkRef/reference</A>" </FONT></DIV>
<DIV><FONT face=Arial size=2> xlink:arcrole="<A href="http://www.w3.org/1999/xlink/properties/linkbase">http://www.w3.org/1999/xlink/properties/linkbase</A>" /><BR> </appinfo><BR> </annotation><BR> <import namespace="<A href="http://www.xbrl.org/2001/instance">http://www.xbrl.org/2001/instance</A>" schemaLocation="<A href="http://www.xbrl.org/2001/xbrl-instance.xsd">http://www.xbrl.org/2001/xbrl-instance.xsd</A>" /><BR> <element id="iascf-pfs_WorkProgress" name="WorkProgress" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" </FONT></DIV>
<DIV><FONT face=Arial size=2> xbrli:balance="debit" /></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help would be greatly appreciated!</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Brian</FONT></DIV></DIV>