tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-3014) XLIFF12Parser fails with ToXMLHandler
Date Thu, 19 Dec 2019 00:23:00 GMT

    [ https://issues.apache.org/jira/browse/TIKA-3014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16999612#comment-16999612
] 

Hudson commented on TIKA-3014:
------------------------------

SUCCESS: Integrated in Jenkins build Tika-trunk #1762 (See [https://builds.apache.org/job/Tika-trunk/1762/])
TIKA-3014: Update to fix XLIFF12Parser failures with ToXMLHandler (david: [https://github.com/apache/tika/commit/e9ab0942ac7196429c4a297df9212792729e33f0])
* (edit) tika-parsers/src/test/java/org/apache/tika/parser/xliff/XLIFF12ParserTest.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/xliff/XLIFF12Parser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/xliff/XLIFF12ContentHandler.java


> XLIFF12Parser fails with ToXMLHandler 
> --------------------------------------
>
>                 Key: TIKA-3014
>                 URL: https://issues.apache.org/jira/browse/TIKA-3014
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Minor
>
> 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:
> {noformat}
>     @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);
>     }
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message