Hi, I’m trying to load the Daffodil dtd and xsd files in a grammar pool of XercesC++. The purpose is to try to validate a DFDL schema file against it. I load the grammas in the order indicated by Steve: "datatypes.dtd" "XMLSchema.dtd" "dafint.xsd" "DFDL_part1_simpletypes.xsd" "DFDL_part2_attributes.xsd" "DFDL_part3_model.xsd" "XMLSchema_for_DFDL.xsd"
Everything works fine until the last xsd, XMLSchema_for_DFDL.xsd. As you can see below the errors starts with the line 153, referring to “sub” namespace <xsd:restriction base="sub:derivationControl">. Can you please advise if those errors can be fixed ? Thanks, Iulian. loading XMLSchema_for_DFDL.xsd XMLSchema_for_DFDL.xsd:153:51 error: type 'http://www.w3.org/2001/XMLSchema:derivationControl' not found XMLSchema_for_DFDL.xsd:175:61 error: type 'http://www.w3.org/2001/XMLSchema:reducedDerivationControl' not found XMLSchema_for_DFDL.xsd:174:23 error: unknown simpleType '{null}' XMLSchema_for_DFDL.xsd:186:51 error: type 'http://www.w3.org/2001/XMLSchema:derivationControl' not found XMLSchema_for_DFDL.xsd:210:58 error: type 'http://www.w3.org/2001/XMLSchema:typeDerivationControl' not found XMLSchema_for_DFDL.xsd:209:23 error: unknown simpleType '{null}' XMLSchema_for_DFDL.xsd:244:52 error: simpleType 'http://www.w3.org/2001/XMLSchema:formChoice' for attribute 'attributeFormDefault' not found XMLSchema_for_DFDL.xsd:246:52 error: simpleType 'http://www.w3.org/2001/XMLSchema:formChoice' for attribute 'elementFormDefault' not found XMLSchema_for_DFDL.xsd:316:21 error: simpleType 'http://www.w3.org/2001/XMLSchema:allNNI' for attribute 'maxOccurs' not found XMLSchema_for_DFDL.xsd:471:30 error: simpleType 'http://www.w3.org/2001/XMLSchema:derivationSet' for attribute 'final' not found XMLSchema_for_DFDL.xsd:473:30 error: simpleType 'http://www.w3.org/2001/XMLSchema:derivationSet' for attribute 'block' not found XMLSchema_for_DFDL.xsd:721:59 error: type 'http://www.w3.org/2001/XMLSchema:derivationControl' not found XMLSchema_for_DFDL.xsd:720:27 error: unknown simpleType '{null}' XMLSchema_for_DFDL.xsd:718:23 error: unknown simpleType '{null}' XMLSchema_for_DFDL.xsd:1477:70 error: simpleType 'http://www.w3.org/2001/XMLSchema:simpleDerivationSet' for attribute 'final' not found XMLSchema_for_DFDL.xsd:786:43 error: attribute 'form' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard XMLSchema_for_DFDL.xsd:809:43 error: attribute 'substitutionGroup' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard XMLSchema_for_DFDL.xsd:809:43 error: attribute 'final' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard XMLSchema_for_DFDL.xsd:809:43 error: attribute 'abstract' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard XMLSchema_for_DFDL.xsd:869:43 error: attribute 'ref' is already defined in base XMLSchema_for_DFDL.xsd:921:49 error: attribute 'minOccurs' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard XMLSchema_for_DFDL.xsd:921:49 error: attribute 'maxOccurs' has invalid target namespace with respect to the base wildcard constraint or base has no wildcard XMLSchema_for_DFDL.xsd:977:48 error: type 'http://www.w3.org/2001/XMLSchema:allNNI' not found XMLSchema_for_DFDL.xsd:955:48 error: type of attribute 'maxOccurs' must be derived by restriction from type of the corresponding attribute in the base XMLSchema_for_DFDL.xsd:1462:59 error: type 'http://www.w3.org/2001/XMLSchema:derivationControl' not found XMLSchema_for_DFDL.xsd:1461:27 error: unknown simpleType '{null}' XMLSchema_for_DFDL.xsd:1459:23 error: unknown simpleType '{null}'
