OASIS XML Localisation Interchange File Format (XLIFF) TC

 View Only
  • 1.  Fragment identifiers for and

    Posted 01-27-2015 17:48
    Hi TC folks, We've been working on an XLIFF 2.0 object model and have a question about fragment identifiers. <xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en" trgLang="fr"> <file id="f1"> <unit id="u1"> <segment id="s1"> <source>Hello World</source> <target>Bonjour le Monde</target> </segment> </unit> </file> </xliff> #f=f1/u=u1/s1 refers to the element <segment id="s1"> of the element <unit id="u1">, but is there a mechanism to select <source> or <target> of <segment id="s1"> individually without inline markup? Thanks, Ryan


  • 2.  RE: [xliff] Fragment identifiers for and

    Posted 01-27-2015 18:47
    Hi Ryan, There is no way to point to the source or target content as elements using the fragment identifier mechanism because they don't have IDs. One can point to their enclosing segment, and from there one can access the source or the target element (which are always unique in a given <segment> element. So far I have not run into a case where pointing to specifically source or target was needed. I don't what others think. Bryan you played with FragId quite a bit, do you think this is a shortcoming? Cheers, -yves