Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FCC4FDDE for ; Sat, 17 Aug 2013 21:31:50 +0000 (UTC) Received: (qmail 98674 invoked by uid 500); 17 Aug 2013 21:31:49 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 98316 invoked by uid 500); 17 Aug 2013 21:31:48 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 98309 invoked by uid 99); 17 Aug 2013 21:31:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Aug 2013 21:31:47 +0000 Date: Sat, 17 Aug 2013 21:31:47 +0000 (UTC) From: "Alexandr Klimov (JIRA)" To: dev@ws.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (XMLSCHEMA-29) An element without "ref" and "type" attributes has not got any assigned XSD type but should has got "anyType" XSD type. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alexandr Klimov created XMLSCHEMA-29: ---------------------------------------- Summary: An element without "ref" and "type" attributes has not got any assigned XSD type but should has got "anyType" XSD type. Key: XMLSCHEMA-29 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-29 Project: XmlSchema Issue Type: Bug Affects Versions: 2.0.2 Reporter: Alexandr Klimov I faced with some trouble when I have tried parse following XSD: {code:xml} {code} A XmlSchemaElement object corresponds to *dummyElem* element has got *schemaType* and *schemaTypeName* fields equal *NULL*. But I'm convinced that in this case {noformat}{http://www.w3.org/2001/XMLSchema}anyType{noformat} type should be assigned as type of the untyped element. My point of view based on following document: [W3C XML Schema Definition Language 1.1 | http://www.w3.org/TR/xmlschema11-1/], point 3.3.2.1 This *anyType* type is defined in *org.apache.ws.commons.schema.constants.Constants* class but I have not found where it is used in any assignment during XSD parsing. In my opinion, *org.apache.ws.commons.schema.SchemaBuilder#handleElementGlobalType* method should contains the third condition branch for a case when *type* and *ref* attributes are absent and *anyType* type should be set in the branch. May be I misunderstand something in a XSD definition and *anyType* type can not be assigned in this case? Best regards Alexandr Klimov. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org