[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: XLIFF and ITS mapping- Elements within text
Hi all!
Below is the suggested text to be a part of 2.1 spec for mapping elements within text data category of ITS 2.0 in XLIFF 2.1.
Please have a review and provide your feedback/comments.
Best,
Soroush.
Elements Within Text Represented by
withinText
attribute in ITS 2.0 which has one of the 3 following values;
1- ‘yes’: Indicates that
the inline element and its content are both part of the parent element’s flow. In this case, the element should be replaced by the following native XLIFF 2.1 inline elements:
<pc>, <sc>/<ec> and
<ph>, while its content remains in the original data;
Using <pc>: <body> part</span>.</p>
Representation in XLIFF 2.1: <unit id="u1"> dataRefEnd="d2">a spanned part </pc>. </source> </unit>
Using <sc>/<ec>: <body> segment. The second sentence here.</u></p>
Representation in XLIFF 2.1: <unit id="u1"> <originalData> subType="xlf:u"/>the formatted text takes more than one segment. </source> startRef="sc1"/> </source>
Using <ph>: <body> </body>
Representation in XLIFF 2.1: <unit id="u1"> type=”fmt” subType=”xlf:lb”/>inside. </source>
2- ‘nested’: This value
is used when the element itself does not break the flow of its parent element, but its content represents an independent dataflow. To handle this case in XLIFF 2.1, the sub-flow (i.e. element’s content) should be stored in a different
<unit> while the original element is replaced by a
<ph> element and order of the flow defined by the
subFlows attribute.
<body> name="Additional Information">Add content here...</textarea>.</p> Representation in XLIFF 2.1: <unit id="u1"> <source>Additional Information</source> id="ph1" subFlows="u1 u2"/></source> All the sub-flows and the
<unit> element which invokes them must be in the same
<file> element.
3- ‘no’: Indicates that
the element and its content are not part of the parent element’s flow. In XLIFF 2.1 such element and its parent element should be stored in separate
<unit> elements.
<body>
Representation in XLIFF 2.1: <unit id="u1"> |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]