Hi,
we have to prepare xml files for translation which contain icons that are referenced as <xi:include> statements in the text.
Example:
Click the <xi:include href="../../build/fontAwesome/fa-angle-double-right.xml" xmlns:xi="www.w3.org/.../> button.
The icons are not rendered as tokens in sdlxliff files, instead the phrase is broken up into two segments and the xinclude statement is hidden like the rest of the xml structure.
Is it possible to render the xml reference as a token, so the translator can position the icon correctly in the target sentence?
As the text also contains a number of other <xi:include> statements (to insert standard sections, for example), we also need a way to distinguish the ones used for icons from the rest.
Here is an example file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"file:///dtds/docbkx4.4/docbookx.dtd">
<chapter id="ch-fa.icons.test">
<title>FA Icons Test</title>
<para>The icons provided by <guilabel>Font Awesome</guilabel> can be included in XML files via xincludes, for example: </para>
<para>Click the <xi:include href="../../build/fontAwesome/fa-angle-double-right.xml" xmlns:xi="www.w3.org/.../> button.</para>
<para>This shows a coloured icon: <phrase role="color" color="#ff0000"><xi:include href="../../build/fontAwesome/fa-angle-double-left.xml" xmlns:xi="www.w3.org/.../phrase>, the colour is set in the phrase.</para>
<para>In the SDLXLIFF file, the xinclude element is parsed and hidden, so the sentence is broken into two segments.</para>
<para>How can the xinclude be recognized and rendered as a token, so the translator has a chance to place the icon at the proper position?</para>
<para>We also use a lot of xincludes to include standard sections, such as the following two examples:</para>
<xi:include href="../central/conditiontree/s-conditiontree.xml"
xmlns:xi="www.w3.org/.../>
<xi:include href="../central/catalogs/s-settings-catalogs.xml"
xmlns:xi="www.w3.org/.../>
</chapter>
Thank you for any tipps,
Andrea
Generated Image Alt-Text
[edited by: Trados AI at 1:43 PM (GMT 0) on 28 Feb 2024]

Translate
