XmlSchema
  1. XmlSchema
  2. XMLSCHEMA-1

xs:redefine does not set baseUri correctly so relative paths do not work

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: XmlSchema 1.4.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      The handleRedefine method in SchemaBuilder does not properly set the baseUri to the referencing schema. This means that schema components that could be found relative to referencing schema won't be found.

      SchemaBuilder already does this correctly in handleInclude and handleImport--the implementation should be copied to handleRedefine

        Activity

        Hide
        Ajith Harshana Ranabahu added a comment -

        After a thorough look at the code I am not sure whether we can fix this soon. In fact I am doubting whether we are doing the right thing in the current code base for redefining. We can come back to this after a discussion in the mailing list.

        Show
        Ajith Harshana Ranabahu added a comment - After a thorough look at the code I am not sure whether we can fix this soon. In fact I am doubting whether we are doing the right thing in the current code base for redefining. We can come back to this after a discussion in the mailing list.
        Hide
        Ajith Harshana Ranabahu added a comment -

        Added a fix but need a test case to verify and mark the issue resolved

        Show
        Ajith Harshana Ranabahu added a comment - Added a fix but need a test case to verify and mark the issue resolved

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Roberts
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development