Community
    • 登入

    XML Tools not validating METS PREMIS example file

    已排程 已置頂 已鎖定 已移動 Notepad++ & Plugin Development
    xmlxml toolsxsdvalidation
    4 貼文 2 Posters 3.6k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Ida ÖstlundI
      Ida Östlund
      最後由 編輯

      I am trying to validate xml towards METS and PREMIS using XML Tools plugin in Notepad++.
      Using a PREMIS in METS example file http://www.loc.gov/standards/premis/louis-2-0.xml I get the following message:

      ERROR: Element ‘{info:lc/xmlns/premis-v2}object’, attribute ‘{http://www.w3.org/2001/XMLSchema-instance}type’: The QName value ‘{info:lc/xmlns/premis-v2}file’ of the xsi:type attribute does not resolve to a type definition.
      ERROR: Element ‘{info:lc/xmlns/premis-v2}object’: The type definition is absent.

      Since the file is an example file demonstrating how to use the schemas and validates in for example the PREMIS in METS toolbox (http://pim.fcla.edu/), I guess the problem is not the file. Is there any known issues with validation using the XML Tools plugin in Notepad++?

      1 條回覆 最後回覆 回覆 引用 0
      • MAPJe71M
        MAPJe71
        最後由 編輯

        XML Tools plugin appears to be able to validate some other example files.
        Did you try to validate the file with several different validators and compared the results?
        The file might just be a bad example, deliberate or not.

        1 條回覆 最後回覆 回覆 引用 0
        • Ida ÖstlundI
          Ida Östlund
          最後由 Ida Östlund 編輯

          @MAPJe71 The file validates in Oxygen and in XMLSpy (and in PREMIS in METS toolbox as mentioned).
          I’ve also been in contact with PREMIS coordinator and they’ve not been able to find anything wrong with the document.

          Among the examples you mentioned some validates (PREMIS version 3.0 Example 2, PREMIS only record) but some do not (PREMIS in METS, PREMIS in METS record).
          Maybe the problem is the combination PREMIS in METS. It’s still unclear though if the problem is the documents or the tool.

          1 條回覆 最後回覆 回覆 引用 0
          • MAPJe71M
            MAPJe71
            最後由 編輯

            You could post an issue at the XML Tools Plugin repository.

            1 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors