[
https://issues.apache.org/jira/browse/TIKA-3014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16998204#comment-16998204
]
Timo Boehme commented on TIKA-3014:
-----------------------------------
Only looking (online) at the code I see that by default the SAXParser is used
from provided ParseContext and only if this is NULL it takes one from own pool.
Maybe one should check the ParseContext parser (if any) with
saxParser.isNamespaceAware() and if this fails also use one from pool - however
this is only a guess without any testing.
> 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)