OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xliff message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [xliff] Frag ID example


Hi David, all,

> however, we should also have examples of absolute
> referencing from outside of xliff.

Good point. Here is a possible one:

[[

Example 3: Reference from an external document.

In this example, a tool has processed an XLIFF document to generate a list of all target segments that have the same source text but
have different translations. The result is an XML document holding references to the segments where the inconsistency has been
found.

For instance the IRI "document.xlf#/f=fileOne/u=m12/s0" points to the segment id="s0", in the unit id="m12", in the file
id="fileOne" of the XLIFF document named "document.xlf". 

Report document:

<?xml version="1.0"?>
<consistencyCheck perFile="false">
<sameSourceDifferentTargets>
  <target ref="document.xlf#/f=fileOne/u=m12/s0"/>
  <target ref="document.xlf#/f=fileOne/u=m203/s3">
 </ sameSourceDifferentTargets>
 <sameSourceDifferentTargets>
  <target ref="document.xlf#/f=fileOne/u=m123/s1"/>
  <target ref="document.xlf#/f=fileTwo/u=ui3453/seg_65">
 </ sameSourceDifferentTargets>
</consistencyCheck>

XLIFF document (document.xlf):

<?xml version="1.0"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" 
 srcLang="en" trgLang="fr">
 <file id="fileOne">
  <unit id="m12">
   <segment id="s0" state="translated">
    <source>Searching...</source>
    <target>Rechercher...</target>
   </segment>
  </unit>  <unit id="m123">
   <segment id="s1" state="translated">
    <source>Opening the XLIFF file...</source>
    <target>Ouverture du fichier XLIFF...</target>
   </segment>
  </unit>
  <unit id="m203">
   <segment id="s2" state="translated">
    <source>Searching...</source>
    <target>Recherche en cours...</target>
   </segment>
  </unit>
 </file>
 <file id="fileTwo">
  <unit id="ui3453">
   <segment id="seg_65" state="translated">
    <source>Opening the XLIFF file...</source>
    <target>Ouverture du document XLIFF...</target>
   </segment>
  </unit>
 </file>
</xliff>


]]




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]