src/xmlpatterns/schema/qxsdschemaparser.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 19 fcece45ef507
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
     7 ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
     8 **
     8 **
  4830 
  4830 
  4831             tagValidator.validate(token);
  4831             tagValidator.validate(token);
  4832 
  4832 
  4833             if (isSchemaTag(XsdSchemaToken::Annotation, token, namespaceToken)) {
  4833             if (isSchemaTag(XsdSchemaToken::Annotation, token, namespaceToken)) {
  4834                 const XsdAnnotation::Ptr annotation = parseAnnotation();
  4834                 const XsdAnnotation::Ptr annotation = parseAnnotation();
  4835                 element->addAnnotation(annotation);
  4835                 term->addAnnotation(annotation);
  4836             } else if (isSchemaTag(XsdSchemaToken::SimpleType, token, namespaceToken)) {
  4836             } else if (isSchemaTag(XsdSchemaToken::SimpleType, token, namespaceToken)) {
  4837                 if (hasRefAttribute) {
  4837                 if (hasRefAttribute) {
  4838                     error(QtXmlPatterns::tr("%1 element with %2 child element must not have a %3 attribute.")
  4838                     error(QtXmlPatterns::tr("%1 element with %2 child element must not have a %3 attribute.")
  4839                                            .arg(formatElement("element"))
  4839                                            .arg(formatElement("element"))
  4840                                            .arg(formatElement("simpleType"))
  4840                                            .arg(formatElement("simpleType"))