Welcome!

Industrial IoT Authors: Stackify Blog, Yeshim Deniz, Elizabeth White, SmartBear Blog, Liz McMillan

Related Topics: Industrial IoT

Industrial IoT: Article

What Is XLIFF and Why Should I Use It?

A brief overview of the XML Localization Interchange File Format (XLIFF)

Solution: XLIFF provides structures to track workflow phases.

Challenge: Lack of standard resource or content container - Developing tools to improve the localization process involves commitments in resources, testing, and deployment. Frequent retooling to keep up with modifications to proprietary resource formats will adversely impact schedules and quality levels of both the localization tool and the localized content. Developing a custom localization tool or acquiring an off-the-shelf tool that is compliant with a standard, localizable resources container such as XLIFF mitigates project risks and reduces potential vendor lock-in. The existing localization standards supported very specific types of localization related data. For example the Localization Industry Standards Association (LISA) OSCAR standards group defined TMX for Translation Memory Exchange, and TBX for Term Base Exchange, but these XML vocabularies aren't used to store resources to be translated. Another de facto standard, Opentag, an XML-based container for localizable content, provided inspiration to the founders of XLIFF, but it failed to provide the hierarchical structure required for describing groups of related resources such as dialog boxes and menus, and lacked project and workflow management metadata.

Solution: XLIFF provides a standard XML-based hierarchical container for localizable data and related metadata that is compatible with existing localization industry standards TMX and TBX.

The XLIFF Technical Committee (TC) succinctly summarizes the approach to addressing these localization challenges in its charter: "The purpose of the OASIS XLIFF TC is to define, through XML vocabularies, an extensible specification for the interchange of localization information. The specification will provide the ability to mark up and capture localizable data and interoperate with different processes or phases without loss of information. The vocabularies will be tool-neutral, support the localization-related aspects of internationalization, and the entire localization process. The vocabularies will support common software and content data formats. The specification will provide an extensibility mechanism to allow the development of tools compatible with an implementer's own proprietary data formats and workflow requirements."

XLIFF Architecture
XLIFF is an XML vocabulary for exchanging localization related data. This standard was designed to take full advantage of XML's technical features, yet fit comfortably into the typical localization process. The architecture of XLIFF is designed so that it can be used in a number of ways:

  • Extract only the localizable content within the original files to XLIFF, leaving untranslatable content in a skeleton file
  • Transform the entire resource file to an XLIFF file
The Extract-Localize-Merge Model
The original files to be localized are read by a filter that extracts localizable data into the XLIFF file, and generates a skeleton file that contains only nonlocalizable data and placeholders for where the localized data will be written. The skeleton file can be either externally referenced or embedded directly into the related XLIFF file. Upon completion of the translation process, XLIFF is merged with the nonlocalization data in the skeleton file to create the localized file.

See Figure 1

XSL Transformation
Today XML is more widely adopted, so XSL can be used to transform an XML file directly into an XLIFF container. This process is illustrated in Figure 2.

In this model, an entire XML document is transformed into XLIFF, translated, and transformed back to its original structure. An open source tool is available for transforming XML into XLIFF and back again, and may be downloaded from https://sourceforge.net/projects/xliffroundtrip/.

Structure of XLIFF
Listing 2 is an example of a simple XLIFF file. This document does not intend to describe in detail all of the components that make up an XLIFF file. For further information on this, refer to the XLIFF specification from OASIS. The current specification is available at www.oasis-open.org/committees/xliff/documents/ cs-xliff-core-1.1-20031031.htm.

XLIFF files are bilingual. There is only one source language and one target language. This makes the overall model much simpler when you consider all of the additional features the format provides, such as pretranslation, version tracking, etc. It also avoids the problem that a multilingual file would have where different versions are localized by different translators at the same time.

File Element
Each file element corresponds to a real or virtual file from the source material. By virtual file, I mean that it could correspond to part of a database. An XLIFF file must contain at least one but can contain any number of file elements. It would be possible for a single XLIFF document to contain all of the resource files for an entire software application, each corresponding to its individual file element. This approach should take into consideration the effect that having many file elements will have on the size of the XLIFF file and management of the project.

The file element has a number of attributes that contain data that describes the actual file to which they relate.

Each file element contains both header and body child elements. The header element contains metadata about the file being localized. The body element contains the data to be localized.

trans-unit
The trans-unit contains the data to be localized. Each trans-unit has a source element that contains the original data to be localized. After translation, the target element contains the data that has been localized. The status of the target can be tracked with the state attribute.

<trans-unit>
  <source xml:lang="en-US">We are testing XLIFF.</source>
  <target state="translated" xml:lang="fr">Nous testons XLIFF.</target>
</trans-unit>

The source and target elements can include specific in-line elements for specific purposes. The g element, for example is useful for tagging text mark-up such font face changes or bold or italic.

<source xml:lang='EN-US'>We are testing <g id='b1'
ctype='bold'>XLIFF</g></source>

The x element is useful for empty in-line elements, like images.

<source xml:lang='EN-US'>We detected spaceships on the planet <x id='i1'
ctype='image' img:src='enterprize.jpg' /></source>

More Stories By Peter Reynolds

Peter Reynolds is manager of the software development team at the Dublin, Ireland office of Bowne Global Solutions (BGS), the leading provider of localization and translation solution. Peter and his team are responsible for developing some of the software that BGS use to run their business, including Elcano, the online translation service, and myInfoShare, the online project collaboration workspace. Peter has been working on XLIFF since its inception and is a founder member and secretary of the OASIS XLIFF Technical Committee. He also chairs the OASIS Translation Web Services Technical Committee.

More Stories By Tony Jewtushenko

Tony Jewtushenko is the founding and present chair of the XLIFF TC as well as the director of R&D for Product Innovator (www.productinnovator.com), a Dublin, Ireland-based consultancy that provides product management, process improvement, localization, and internationalization services to software companies.
During his 23-year career, Tony was a key contributor to dozens of releases of successful commercial software products, including Lotus 1-2-3 and Notes, Oracle JDeveloper, and iDS. His multinational work and life experience spans USA, Europe, Middle East, and Asia.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...
SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere delivers a more modern architectural approach to storage that doesn't require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbui...
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
Digital transformation is changing the face of business. The IDC predicts that enterprises will commit to a massive new scale of digital transformation, to stake out leadership positions in the "digital transformation economy." Accordingly, attendees at the upcoming Cloud Expo | @ThingsExpo at the Santa Clara Convention Center in Santa Clara, CA, Oct 31-Nov 2, will find fresh new content in a new track called Enterprise Cloud & Digital Transformation.
Most technology leaders, contemporary and from the hardware era, are reshaping their businesses to do software. They hope to capture value from emerging technologies such as IoT, SDN, and AI. Ultimately, irrespective of the vertical, it is about deriving value from independent software applications participating in an ecosystem as one comprehensive solution. In his session at @ThingsExpo, Kausik Sridhar, founder and CTO of Pulzze Systems, will discuss how given the magnitude of today's applicati...
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant th...
SYS-CON Events announced today that Avere Systems, a leading provider of hybrid cloud enablement solutions, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere Systems was created by file systems experts determined to reinvent storage by changing the way enterprises thought about and bought storage resources. With decades of experience behind the company’s founders, Avere got its ...
SYS-CON Events announced today that Golden Gate University will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Since 1901, non-profit Golden Gate University (GGU) has been helping adults achieve their professional goals by providing high quality, practice-based undergraduate and graduate educational programs in law, taxation, business and related professions. Many of its courses are taug...
SYS-CON Events announced today that SIGMA Corporation will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. uLaser flow inspection device from the Japanese top share to Global Standard! Then, make the best use of data to flip to next page. For more information, visit http://www.sigma-k.co.jp/en/.
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.
As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.