The field doesn't see the 'mixed' flag inherited from the other data tpye -------------------------------------------------------------------------
Key: XERCESC-1897 URL: https://issues.apache.org/jira/browse/XERCESC-1897 Project: Xerces-C++ Issue Type: Bug Components: Validating Parser (XML Schema) Affects Versions: 2.7.0 Environment: All platforms(Windows and UNIX) Reporter: Max Liu There is a data type defination as follows. <!-- PRIMITIVE DATATYPE FT --> <xsd:complexType name="FT" mixed="true"> <xsd:sequence> <xsd:element name="escape" minOccurs="0" type="escapeType"/> </xsd:sequence> </xsd:complexType> The complexType named NTE.3.CONTENT has the extension based on complexType named "FT" as follws. <!-- FIELD NTE.3 --> <xsd:attributeGroup name="NTE.3.ATTRIBUTES"> <xsd:attribute name="Item" type="xsd:string" fixed="98"/> <xsd:attribute name="Type" type="xsd:string" fixed="FT"/> <xsd:attribute name="LongName" type="xsd:string" fixed="Comment"/> </xsd:attributeGroup> <xsd:complexType name="NTE.3.CONTENT"> <xsd:annotation> <xsd:documentation xml:lang="en">Comment</xsd:documentation> <xsd:appinfo> <hl7:Item>98</hl7:Item> <hl7:Type>FT</hl7:Type> <hl7:LongName>Comment</hl7:LongName> </xsd:appinfo> </xsd:annotation> <xsd:complexContent> <xsd:extension base="FT"> <xsd:attributeGroup ref="NTE.3.ATTRIBUTES"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="NTE.3" type="NTE.3.CONTENT"/> The parser will report the error "Error generated during parsing. - No character data is allowed by content model " when doing parsing. The reason is that the "NTE.3" field doesn't see the 'mixed' flag inherited from "FT". I added the 'mixed="true" flag to the NTE.3.CONTENT type def and it is able to parse that field. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org