W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > January 2013

Re: Okapi Tikal Bug?

From: Philip <Philip.Oduffy@ul.ie>
Date: Fri, 18 Jan 2013 21:12:14 +0000
Message-ID: <50F9BAAE.7000000@ul.ie>
To: public-multilingualweb-lt@w3.org
Hi Yves,
    The extraction error is on our side and was caused by trying to 
re-extract the output file after it has been emerged back into it's 
original form.
The error was caused because merging back to it's original source format 
causes element attributes to be reordered in reverse alphabetical order, 
when we try to reextract this file it fails because the version tag has 
been changed from:

<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">

to:

<its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its">

this causes an exception in tikal on extraction. This masks the original error that we encountered:

*Error on line 129 of intermediate.xsl:**
**   XPST0008: Variable LCID has not been declared**
**Failed to compile stylesheet. 1 error detected.*
  
This error occurs when creating nodelist-with-its-information.xml by applying intermediate.xsl to translate9xml.xml.

While re-extracting a file that has been extracted and re-merged is not directly required for our testing. The reordering that occurs is not desirable, as extracting a file and re-merging the file results in a different output then the original without modification to the extracted file.
Regards,
Philip
  


On 18/01/13 19:08, Yves Savourel wrote:
> Hi Philip,
>
> I'm getting:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions" xmlns:its="http://www.w3.org/2005/11/its">
> <file original="translate9xml.xml" source-language="en" target-language="fr" datatype="xml" okp:inputEncoding="UTF-8">
> <body>
> <trans-unit id="1">
> <source xml:lang="en">Create a folder</source>
> <target xml:lang="fr">Create a folder</target>
> </trans-unit>
> </body>
> </file>
> </xliff>
>
> Without error when I try -x on translate9xml.xml with Tikal.
> Which seems to be correct.
>
> cheers,
> -yves
>
>
> From: Philip [mailto:Philip.Oduffy@ul.ie]
> Sent: Friday, January 18, 2013 10:25 AM
> To: public-multilingualweb-lt@w3.org
> Subject: Okapi Tikal Bug?
>
> Hey All,
>     The Okapi Tikal program I'm try to validate seems to have have a bug when run against the Translate9xml.xml
>
> Translate9xml.xml:
> <doc>
>    <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
>      <its:param name="LCID">409</its:param>
>      <its:translateRule selector="/doc" translate="no"/>
>      <its:translateRule selector="//msg[@lcid=$LCID]" translate="yes"/>
>    </its:rules>
>    <msg lcid="409" num="1">Create a folder</msg>
>    <msg lcid="411" num="1">フォルダーを作成する</msg>
>    <msg lcid="407" num="1">Erstellen Sie einen Ordner</msg>
>    <msg lcid="40c" num="1">Créer un dossier</msg>
> </doc>
>
> Okapi Error output:
> Input: /var/www/converter/uploads/1c3927f182/testinput9xml.xml
>
> ERROR: resolveVariable for variable LCID returning null
>
> We think the bug arises because Tikal can't escape/populate the $LCID variable correctly. Does anyone know who we should notify from Okapi?
> Thanks,
> Philip
>
>
Received on Friday, 18 January 2013 21:12:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:08:26 UTC