OASIS XML Localisation Interchange File Format (XLIFF) TC

  • 1.  namespace declaration

    Posted 07-04-2012 17:21
    Hi all, Another implementation-related question: There is nothing in the specification that says you have to declare the XLIFF namespace. Obviously the document is not really of that namespace without the declaration. But shouldn't we err on the side of caution and have some text saying it should be declared? My question came after I was wondering if an XLIFF 2.0 reader needed to support an XLIFF core document that didn't have the namespace declared. Cheers, -yves


  • 2.  RE: [xliff] namespace declaration

    Posted 07-04-2012 17:36
    Hi, From XML point of view, declaring the namespace is optional. Nevertheless, I would make the declaration of the core namespace required in the conformance clause. Regards, Rodolfo -- Rodolfo M. Raya rmraya@maxprograms.com Maxprograms http://www.maxprograms.com >


  • 3.  RE: [xliff] namespace declaration

    Posted 07-05-2012 13:42
    Hi Rodolfo, all, > Nevertheless, I would make the declaration > of the core namespace required in the conformance clause. +1. > From XML point of view, declaring the > namespace is optional. Just to clarify though: Should/Must an XLIFF 2.0 processor be able to process this: <xliff version="2.0" srcLang="en"> <file> <unit id="u1"> <segment> <source>text</source> </segment> </unit> </file> </xliff> I'm asking because without a namespace declaration that document could be any format that just happens to start with <xliff>. Cheers, -ys


  • 4.  RE: [xliff] namespace declaration

    Posted 07-05-2012 14:50
    Hi Yves, Another case to analyze (I've actually seen this done with XLIFF 1.1) is: <xlf:xliff version="2.0" srcLang="en" xmlns:xlf="urn:oasis:names:tc:xliff:document:2.0"> < xlf:file> <xlf:unit id="u1"> <xlf:segment> <xlf:source>text</xlf:source> </xlf:segment> </xlf:unit> </xlf:file> </xlf:xliff> I would prefer that XLIFF core elements don't have a prefix. Perhaps we should define XLIFF 2.0 documents in section 1 of the specification as something like "XML documents that declare the namespace "urn:oasis:names:tc:xliff:document:2.0" as their main namespace, have <xliff> as root element and comply with the schemas that are part of the XLIFF specification". Regards, Rodolfo -- Rodolfo M. Raya rmraya@maxprograms.com Maxprograms http://www.maxprograms.com >