Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-3014

XLIFF12Parser fails with ToXMLHandler

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      XLIFF12Parser fails with ToXMLHandler because xml namespace isn't set, but is needed for "xml:lang".

      One option would be to remove the namespace on the lang attribute?

      dmeikle, any recommendations?

      To see the problem:
      1) Make XLIFF12ParserTest extend TikaTest
      2) add this test:

          @Test
          public void testToXMLHandler() throws Exception {
              String xml = getXML("testXLIFF12.xlf").xml;
              assertContains("<p lang=\"en\">Another trans-unit</p>", xml);
              assertContains("<p lang=\"fr\">Un autre trans-unit</p>", xml);
          }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tallison Tim Allison
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: