Hello, I'm getting inconsistent behavior when trying to generate schemas for the US GAAP XBRL documents. When I download the requisite GAAP documents to a local directory, and run the following command:
====================== >scomp -out gaap.jar us-gaap-2013-01-31.xsd -compiler "%JAVA_HOME%\bin\javac" -verbose -dl Apache Software Foundation, org.apache.xmlbeans.XmlBeans version 2.5.0-r882429 Loading schema file us-gaap-2013-01-31.xsd Loading referenced file http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd Loading referenced file us-types-2013-01-31.xsd Loading referenced file us-roles-2013-01-31.xsd Loading referenced file http://www.xbrl.org/2005/xbrldt-2005.xsd Loading referenced file http://www.xbrl.org/2006/ref-2006-02-27.xsd Loading referenced file http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd Loading referenced file http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd Loading referenced file http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd Loading referenced file http://www.xbrl.org/2003/xl-2003-12-31.xsd Loading referenced file http://www.xbrl.org/2003/xlink-2003-12-31.xsd http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd:175:5: error: derivation-ok-restriction.4.2: The anyAttribute namespace='##other' is not a subset of the base type anyAttribute. http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd:175:5: error: derivation-ok-restriction.4.2: The anyAttribute namespace='##other' is not a subset of the base type anyAttribute. http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd:175:5: error: derivation-ok-restriction.4.2: The anyAttribute namespace='##other' is not a subset of the base type anyAttribute. Time to build schema type system: 6.003 seconds BUILD FAILED ====================== However, if I download http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsdand all of the other schemas referenced, and just parse that one locally: scomp -out xbrl.jar -compiler "%JAVA_HOME%\bin\javac" -dl -verbose xbrl-instance-2003-12-31.xsd The parser runs without error and successfully generates xbrl.jar. Do you know what the problem is? If you want to reproduce, the US GAAP Schema file can be downloaded from http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd and it relies on http://xbrl.fasb.org/us-gaap/2013/elts/us-roles-2013-01-31.xsd and http://xbrl.fasb.org/us-gaap/2013/elts/us-types-2013-01-31.xsd. I'm using XMLBeans v. 2.5.0. Thanks, and please let me know if you need anything else! Mike