xliff file
Autor da sequência: QUOI
QUOI
QUOI  Identity Verified

Chinês para Inglês
+ ...
Mar 1, 2013

Hi everyone,
I recently ran into a few issues with xliff files.

A client sent me a few .xlf files and I ran source files through Swordfish xliff checker module and it says the following:

Validating: C:\Users\X Ray\Desktop\xliff\originals\cont21474888690_ja-JP.xlf

- XML file parsed.

- XLIFF version: 1.2

* XLIFF namespace not declared.

> XLIFF namespace declaration added.

> Document reloade
... See more
Hi everyone,
I recently ran into a few issues with xliff files.

A client sent me a few .xlf files and I ran source files through Swordfish xliff checker module and it says the following:

Validating: C:\Users\X Ray\Desktop\xliff\originals\cont21474888690_ja-JP.xlf

- XML file parsed.

- XLIFF version: 1.2

* XLIFF namespace not declared.

> XLIFF namespace declaration added.

> Document reloaded.

- Validating against Transitional XML Schema.

- Checking content details.

* Invalid date: 2013-02-07T04:14:09

Selected file is not valid XLIFF.

Swordfish seems to translate the file without problem but adds the following at the beginning:



I wonder if the client has somehow generated xliff files incorrectly. Can anyone shed any light on this please?

Thanks in advance.

Ray
Collapse


 
Rodolfo Raya
Rodolfo Raya  Identity Verified
Local time: 17:25
Inglês para Espanhol
Encoding declaration Mar 2, 2013

Swordfish can handle some invalid XLIFF if they are not too bad. A wrong date format can usually be safely ignored.

The encoding declaration added at the beginning is a safe addition. It is OK and all XLIFF files should have one.

Regards,
Rodolfo


 
QUOI
QUOI  Identity Verified

Chinês para Inglês
+ ...
Autor do assunto
Thanks for your advise Mar 2, 2013

Hi Rodolfo,
Thank you for your reply. If I may get your advice on a related matter.

I also used DVX2 to translate the same source xliff file and after exporting the project, I noticed the target file had following attributes added:



and

... See more
Hi Rodolfo,
Thank you for your reply. If I may get your advice on a related matter.

I also used DVX2 to translate the same source xliff file and after exporting the project, I noticed the target file had following attributes added:



and




When I tried to open the translated xliff file in Swordfish, it gave a message to say it is not a valid one.

This may be a silly question, where does a CAT tool such as Swordfish or DVX get namespace declaration from? Does a client need to supply a separate file so a CAT tool knows what to include in the process?

Appreciate your advise.

Ray



Rodolfo Raya wrote:

Swordfish can handle some invalid XLIFF if they are not too bad. A wrong date format can usually be safely ignored.

The encoding declaration added at the beginning is a safe addition. It is OK and all XLIFF files should have one.

Regards,
Rodolfo
Collapse


 
Rodolfo Raya
Rodolfo Raya  Identity Verified
Local time: 17:25
Inglês para Espanhol
Not valid XML Mar 2, 2013

If the file you have has those things inside, then it is not valid XML and can't be called XLIFF.

The encoding declaration must be valid, otherwise an XML parser will not be able to read the file.

Some tools use custom namespaces in their XLIFF files, like SDL does in SDLXLIFF. Swordfish includes most common third party extensions in its own XML catalog.

You will only need to ask your client to send custom schemas for handling their namespaces if they give
... See more
If the file you have has those things inside, then it is not valid XML and can't be called XLIFF.

The encoding declaration must be valid, otherwise an XML parser will not be able to read the file.

Some tools use custom namespaces in their XLIFF files, like SDL does in SDLXLIFF. Swordfish includes most common third party extensions in its own XML catalog.

You will only need to ask your client to send custom schemas for handling their namespaces if they give you custom XML files. That's somewhat unusual these days when everybody is tryong to adopt open standards.

Regards,
Rodolfo
Collapse


 
QUOI
QUOI  Identity Verified

Chinês para Inglês
+ ...
Autor do assunto
Thank you for the pointers Mar 2, 2013

Hi Rodolfo,

This is very helpful. I now need to find out why DVX adds these and how to change that. BTW, the source xliffs are generated from Ektron CMS and according to its website, it supports xliff standard up to 1.2.

Thank you for your help once again.

Ray


Rodolfo Raya wrote:

If the file you have has those things inside, then it is not valid XML and can't be called XLIFF.

The encoding declaration must be valid, otherwise an XML parser will not be able to read the file.

Some tools use custom namespaces in their XLIFF files, like SDL does in SDLXLIFF. Swordfish includes most common third party extensions in its own XML catalog.

You will only need to ask your client to send custom schemas for handling their namespaces if they give you custom XML files. That's somewhat unusual these days when everybody is tryong to adopt open standards.

Regards,
Rodolfo


[Edited at 2013-03-02 12:58 GMT]


 
Piotr Bienkowski
Piotr Bienkowski  Identity Verified
Polónia
Local time: 21:25
Membro (2005)
Inglês para Polaco
+ ...
MemoQ extensions? Mar 2, 2013

Swordfish includes most common third party extensions in its own XML catalog.



Does it include the extensions for XLIFF files generated by MemoQ? I mean their namespaces and stuff?

Regards,

Piotr


 
Rodolfo Raya
Rodolfo Raya  Identity Verified
Local time: 17:25
Inglês para Espanhol
MemoQ extensions are secret Mar 2, 2013

Piotr Bienkowski wrote:

Swordfish includes most common third party extensions in its own XML catalog.



Does it include the extensions for XLIFF files generated by MemoQ? I mean their namespaces and stuff?


MemoQ extensions are secret. Until they are disclosed and documented none can properly support them.

Regards,
Rodolfo


 
QUOI
QUOI  Identity Verified

Chinês para Inglês
+ ...
Autor do assunto
XLIFF namespace not declared Mar 2, 2013

So if the XLIFFChecker plugin says a .xlf file "XLIFF namespace not declared", it means whatever the system (ie. Ektron CMS) which generated the xliff file has not included that information, in which case a filter must be created by using a client's system (ie Ektron CMS) specific schema file, is this the right thinking?

I understand Swordfish will add the most common declaration but ideally, it should be from the system which generates source xliff files for translation. Is this c
... See more
So if the XLIFFChecker plugin says a .xlf file "XLIFF namespace not declared", it means whatever the system (ie. Ektron CMS) which generated the xliff file has not included that information, in which case a filter must be created by using a client's system (ie Ektron CMS) specific schema file, is this the right thinking?

I understand Swordfish will add the most common declaration but ideally, it should be from the system which generates source xliff files for translation. Is this correct?

Thank you
Ray


Rodolfo Raya wrote:

MemoQ extensions are secret. Until they are disclosed and documented none can properly support them.

Regards,
Rodolfo
Collapse


 
Rodolfo Raya
Rodolfo Raya  Identity Verified
Local time: 17:25
Inglês para Espanhol
XLIFF namespace handled automatically Mar 3, 2013

Swordfish expects to work with XLIFF files. There is no problem if the XLIFF namespace is not declared because Swordfish has the necessary XML schemes for XLIFF in its own XML catalog.

The declaration should be included in the XLIFF file. Being XLIFF an open standard, declaring the namespace is enough; there is no need to ship the declared XLIFF schema with the XLIFF file.

Regards,
Rodolfo


 
QUOI
QUOI  Identity Verified

Chinês para Inglês
+ ...
Autor do assunto
Thanks Mar 3, 2013

Hi Rodolfo,
Thanks for your advise.
Ray


 


To report site rules violations or get help, contact a site moderator:

Moderador(es) deste fórum
Maya Gorgoshidze[Call to this topic]

You can also contact site staff by submitting a support request »

xliff file






Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »