You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Timo Boehme (Jira)" <ji...@apache.org> on 2019/12/17 10:55:00 UTC

[jira] [Commented] (TIKA-3014) XLIFF12Parser fails with ToXMLHandler

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

Timo Boehme commented on TIKA-3014:
-----------------------------------

I'm sorry if I misunderstand the problem: any XML namespace aware conforming XML parser should know the 'xml' namespace as the prefix 'xml' is by definition bound and "It MAY, but need not, be declared ..." (https://www.w3.org/TR/xml-names/)

> 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:
>     @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);
>     }



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