Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1250

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1250
    Summary: Errors with default value of an attribute with xsd:notation datatype
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Xerces-C++
 Components: 
             Validating Parser (Schema) (Xerces 1.5 or up only)
   Versions:
             2.5.0

   Assignee: 
   Reporter: Andrew Fang

    Created: Tue, 10 Aug 2004 7:59 AM
    Updated: Tue, 10 Aug 2004 7:59 AM
Environment: Windows XP Sp1

Description:
When parsing the following schema, Xerces emits this error message:

notation.xsd : Line: 19 Column: 59 NOTATION 'JPEG' must be a valid QName 

The error refer to the default value given for the attribute name="dataType". I 
believe the problem is at traverseAttributeDecl (line 2317) method in 
TraverseSchema.cpp. In other places, notation attribute value are first converted to 
qname, but not in this case.


****** notation.xsd

<xsd:schema
   targetNamespace="aa:bb:cc" 
   xmlns="aa:bb:cc" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

<xsd:notation
   name="JPEG"
   public="JPEG Image"/>

<xsd:notation
   name="GIF"
   public="GIF Image"/>

<xsd:element name="root" type="test"/>

<xsd:complexType name="test">
      <xsd:simpleContent>
         <xsd:extension base="xsd:date">
            <xsd:attribute name="dataType" default="JPEG">
               <xsd:simpleType>
                  <xsd:restriction base="xsd:NOTATION">
                     <xsd:enumeration value="JPEG"/>
                     <xsd:enumeration value="GIF"/>
                  </xsd:restriction>
               </xsd:simpleType>
            </xsd:attribute>
         </xsd:extension>
      </xsd:simpleContent>
</xsd:complexType>

</xsd:schema>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to