JAMWiki
  1. JAMWiki
  2. JAMWIKI-113

Mediawiki test export xml files are not valid

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3.1
    • Labels:
      None

      Description

      The xml files do not validate against the declared xsd:
      /jamwiki-core/src/test/resources/data/files/mediawiki-*.xml

      There's also a newer version (0.8) of the xsd available. But trying the newer version resulted in different validation errors.

      I don't know whether the errors are intended since the files are resources for tests. But then it would be nice to find a way to silence the eclipse errors.

        Activity

        Hide
        Thomas Koch
        added a comment -

        It might make sense to download the xsd file(s) and commit them to SVN to have them available locally for debugging.

        Show
        Thomas Koch
        added a comment - It might make sense to download the xsd file(s) and commit them to SVN to have them available locally for debugging.
        Hide
        Thomas Koch
        added a comment -

        I found out how to ignore those errors in eclipse:

        project properties -> validation -> enable project specific settings

        project properties -> validation -> xml validator -> settings -> add rule (to exclude group) -> folder or file name -> choose the folder: /jamwiki-core/src/test/resources/data/files/

        Show
        Thomas Koch
        added a comment - I found out how to ignore those errors in eclipse: project properties -> validation -> enable project specific settings project properties -> validation -> xml validator -> settings -> add rule (to exclude group) -> folder or file name -> choose the folder: /jamwiki-core/src/test/resources/data/files/
        Hide
        Ryan Holliday
        added a comment -

        I'll need to take a closer look at this issue to see what's wrong. If you can provide any additional info on the specific elements that failed to validate it would be helpful.

        As to upgrading to 0.8, I'd need to see if there are any functional changes before doing so - JAMWiki 1.3 included an upgrade to 0.7 (from 0.3) and if I'm remembering correctly some of the import/export code had to be modified as a result.

        Show
        Ryan Holliday
        added a comment - I'll need to take a closer look at this issue to see what's wrong. If you can provide any additional info on the specific elements that failed to validate it would be helpful. As to upgrading to 0.8, I'd need to see if there are any functional changes before doing so - JAMWiki 1.3 included an upgrade to 0.7 (from 0.3) and if I'm remembering correctly some of the import/export code had to be modified as a result.
        Hide
        Peter Palmreuther
        added a comment -

        I've committed a patch to enable successful validation of mentioned XML files, that inserts the missing element.
        I don't know how to calculate the correct - missing - SHA1 value, so these XML elements are yet empty.

        Build process, including JUnit tests, still works, and as these files are (at least should be) irrelevant for runtime I think it's non-destructive to have the patched version in code tree.

        http://jamwiki.svn.sourceforge.net/viewvc/jamwiki?view=revision&revision=4304

        Show
        Peter Palmreuther
        added a comment - I've committed a patch to enable successful validation of mentioned XML files, that inserts the missing element. I don't know how to calculate the correct - missing - SHA1 value, so these XML elements are yet empty. Build process, including JUnit tests, still works, and as these files are (at least should be) irrelevant for runtime I think it's non-destructive to have the patched version in code tree. http://jamwiki.svn.sourceforge.net/viewvc/jamwiki?view=revision&revision=4304

          People

          • Assignee:
            Ryan Holliday
            Reporter:
            Thomas Koch
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: