Xerces2-J
  1. Xerces2-J
  2. XERCESJ-591

Type Redefined Twice In Two Different Files

    Details

    • Type: Bug Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Operating System: Windows NT/2K
      Platform: PC

      Description

      A type can be redefined and then another file can be included that redefines
      the same type again. That is, we redefine a type from 'schemaFile1.xsd' and
      include another file called 'schemaFile2.xsd', but this file also redefines the
      same type in 'schemaFile1.xsd'. We end up with the redefinition of the same
      type twice. Consider the following schema code:

      <xsd:redefine id="true" schemaLocation="schemaFile1.xsd">
      <xsd:simpleType name="SimpleType01">
      <xsd:restriction base="SimpleType01">
      <xsd:whiteSpace value="collapse"/>
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:redefine>

      <xsd:include id="bad01" chemaLocation="schemaFile2.xsd"/>

        • Note: 'schemaFile2.xsd' also redefines the 'SimpleType01' type
          in 'schemaFile1.xsd'

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12575054 ] jira [ 12598450 ]
        Mark Thomas made changes -
        Assignee Xerces-J Developers Mailing List [ xerces-j-dev@xml.apache.org ]
        Mark Thomas made changes -
        Workflow jira [ 30646 ] Default workflow, editable Closed status [ 12575054 ]
        Serge Knystautas made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 16640 20651
        Navid M. created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Navid M.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development