<div dir="ltr">Hi Haiwei,<div><br></div><div>You were asking on freenode:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><hsnyc> Hey guys, I have a question about supporting Xliff type of files. Inside XliffCommon.java file, the function getContentElementList() defines several element that are not eligible to use in Xliff type of file. In XliffReader.java file, get ElementValue() function, it throws errors if legalElements.contains(localName). I want to ask why do you guys choose to exclude these tags and what if the input sdlxlf file contains one of these tag<br><hsnyc> Thanks a lot in advance! Much appreciate if you can email your thoughts to my email <a href="mailto:haiwei.su@motaword.com">haiwei.su@motaword.com</a>.</blockquote></div><div><br></div><div>The existing XLIFF support in Zanata is very old and unfortunately only supports one particular subset of XLIFF (very flat XLIFF, almost like properties files), not general XLIFF support at all. That's why we don't tend to mention XLIFF support, eg on the <a href="http://zanata.org">zanata.org</a> home page.<br></div><div><br></div><div>I think the code you found in XliffReader just tries to give a better error message, depending on whether the elements are legal or illegal in XLIFF. XliffReader was not written to handle these nested elements, even where they are legal.</div><div><br></div><div><br></div><div>If someone were to implement proper support for XLIFF, it would be better to make a new OkapiFilterAdapter for XLIFF, which should be able to handle hierarchical XLIFF much better than the old approach ever could. </div><div><br></div><div>In terms of complexity, TSAdapter is probably closest to what an XLIFFAdapter would need to cover.</div><div><div><br></div><div><br></div><div>If you have any more questions, please join and ask on the zanata-devel mailing list (CCed): <a href="http://zanata.org/mailing-lists/">http://zanata.org/mailing-lists/</a></div><div><br></div><div><br></div><div>Regards</div><div><br></div><div><br></div><div><br></div><div>Sean.</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sean Flanigan<br><br>Principal Software Engineer<br>Globalisation Tools Engineering<br>Red Hat</div></div></div></div>
</div></div></div>