You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Armin Coralic (JIRA)" <xe...@xml.apache.org> on 2008/10/30 16:31:44 UTC

[jira] Created: (XERCESJ-1333) CLONE -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.

CLONE -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-1333
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
             Project: Xerces2-J
          Issue Type: Bug
          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
    Affects Versions: 2.9.1
            Reporter: Armin Coralic
            Assignee: Michael Glavassevich
            Priority: Minor


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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1333) CLONE -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.

Posted by "Armin Coralic (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Armin Coralic updated XERCESJ-1333:
-----------------------------------


This issue has been fixed by Michael Glavassevich and commited in SVN revision: 591458 File: XSDComplexTypeTraverser.java
But for some reason this fix is again missing from the src?

> CLONE -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-1333
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Armin Coralic
>            Assignee: Michael Glavassevich
>            Priority: Minor
>
> 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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1333) CLONE -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.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644018#action_12644018 ] 

Michael Glavassevich commented on XERCESJ-1333:
-----------------------------------------------

The fix hasn't been released yet.

> CLONE -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-1333
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Armin Coralic
>            Assignee: Michael Glavassevich
>            Priority: Minor
>
> 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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1333) CLONE -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.

Posted by "Armin Coralic (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Armin Coralic updated XERCESJ-1333:
-----------------------------------

    Comment: was deleted

> CLONE -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-1333
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Armin Coralic
>            Assignee: Michael Glavassevich
>            Priority: Minor
>
> 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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1333) CLONE -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.

Posted by "Armin Coralic (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644016#action_12644016 ] 

Armin Coralic commented on XERCESJ-1333:
----------------------------------------

Sorry my mistake, i was looking at the source tar file on the http://www.apache.org/dist/xerces/j/ It's obvious its not there because the fix has been added much later than the date of the tar source.

> CLONE -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-1333
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Armin Coralic
>            Assignee: Michael Glavassevich
>            Priority: Minor
>
> 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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1333) CLONE -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.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1333.
-------------------------------------------

    Resolution: Duplicate

I have no idea what source code you're looking at.  The fix is still there in the trunk of SVN.

> CLONE -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-1333
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Armin Coralic
>            Assignee: Michael Glavassevich
>            Priority: Minor
>
> 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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1333) CLONE -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.

Posted by "Armin Coralic (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643997#action_12643997 ] 

Armin Coralic commented on XERCESJ-1333:
----------------------------------------

This issue has been fixed by Michael Glavassevich, revision: 591458, file: XSDComplexTypeTraverser.java
But for some reason this fix is gone from the main src?

> CLONE -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-1333
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1333
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes, XML Schema 1.0 Structures
>    Affects Versions: 2.9.1
>            Reporter: Armin Coralic
>            Assignee: Michael Glavassevich
>            Priority: Minor
>
> 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/%3c6644.38629.qm@web31313.mail.mud.yahoo.com%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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org