(B25) Preserve metadata without using extensibility - DONE
Owner: Bryan and Rodolfo
Category: Data Model | XML Schema | Spec
State: Done Core/Module: module
David Spec sign-off: YES
Tom Schema sign-off: No
Spec Updated: Yes. Schema Updated: Yes
In XLIFF 1.2 we sometimes need to use extensibility to preserve source metadata when converting an source files to XLIFF. For XLIFF 2.0, there is a need for preserving metadata; the solution should be generic and contemplate formats like HTML5, PO, or XML attributes in general - removing the need to extend.
Consider this source:
<para id="g_3423_spectrum" alt="It's orders of magnitude faster" rev="c">This is orders of magnitude faster than swept analysis techniques.</para>
We could introduce a module that could store the metadata, with hints that an application could optionally use, for purposes of roundtripping, applying/reporting metrics, etc.
<unit id=”a1”> <segment> <source> This is orders of magnitude faster than swept analysis techniques.</source> </segment> <metaHolder type=”x-attributes”> <meta key=”rev”>c</meta> <meta key=”id”>g_3423_spectrum</meta> <meta key=”alt” id="a1.a">It's orders of magnitude faster</meta> </metaHolder> <metaHolder type=”count”> <meta key=”words”>2</meta> <meta key=”chars”>13</meta> </metaHolder> </unit> <unit id=”a2” idref="a1.a"> <segment> <source>It's orders of magnitude faster</source> </segment> </unit>
One attribute in the main holder element would indicate the type of metadata and another attribute would define the key of a key-value pair.
In the module specification we could define a set of standard information types that covers what we have in XLIFF 1.2 and add new ones as needed to cover things that are currently handled by custom extensions in XLIFF 1.2.
This schema used in <match > or <matches> would be quite useful for storing metadata that today we can’t store in <alt-trans>.
Applications that don’t understand certain type of metadata would be able to safely ignore the proposed elements, as with any element coming from an optional module.
Back to XLIFF2.0/FeatureTracking