[ 
https://issues.apache.org/jira/browse/XERCESJ-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Glavassevich updated XERCESJ-1278:
------------------------------------------

    Fix Version/s: 2.10.0

> Anonymous type name is not assigned to the simple type definition of a 
> complex type derived by restriction from a complex type with simple content.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1278
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1278
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Michael Glavassevich
>            Assignee: Michael Glavassevich
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> For the following schema fragment  Xerces is not assigning an anonymous type 
> name for the simple type definition of "Comment2Type".  Later on when 
> validating an element's content against this type we will report "null" as 
> its type name in the error message instead of "#AnonType_Comment2Type". See 
> [1] for more details.
> <xs:simpleType name="AsciiStringType">
>   <xs:restriction base="xs:string">
>    <xs:pattern value="\p{IsBasicLatin}*"/>
>   </xs:restriction>
>  </xs:simpleType>
>  
>  <xs:complexType name="CommentType">
>   <xs:simpleContent>
>    <xs:extension base="AsciiStringType">
>     <xs:attribute name="language" use="optional">
>      <xs:simpleType>
>       <xs:restriction base="xs:string">
>        <xs:enumeration value="English" />
>        <xs:enumeration value="French" />
>        <xs:enumeration value="Spanish" />
>       </xs:restriction>
>      </xs:simpleType>
>     </xs:attribute>
>    </xs:extension>
>   </xs:simpleContent>
>  </xs:complexType>
>  <xs:complexType name="Comment2Type">
>    <xs:simpleContent>
>     <xs:restriction base="CommentType">
>      <xs:minLength value="0" />
>      <xs:maxLength value="20" />
>     </xs:restriction>
>    </xs:simpleContent>
>  </xs:complexType>
> [1] 
> http://mail-archives.apache.org/mod_mbox/xerces-j-users/200710.mbox/%[email protected]%3e

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to