埋め込みされたコンテンツとは、ファイルを開いた際に通常処理されないコンテンツのことで、HTML ファイルの CDATA セクションなどがその例です。正規表現を指定して埋め込みタグを表している文書内のテキストを識別し、そのテキストを sdlxliff タグとして処理するように指定できます。この機能は、たとえばコンテンツが翻訳対象か翻訳対象外であるかを判断するのに役立ちます。
これは、埋め込みコンテンツの例です。
<?xml version="1.0" encoding="UTF-8"?> <Data> <String translate="yes"> <b>SDL Trados Studio 2009 SP1</b> combines decades of translation technology experience and over $100 million invested into research and development to bring you the most innovative and <span class="highlight">revolutionary software</span> on the market. </String> </Data>
この例では、HTMLタグは文字エンティティのリファレンスにより表示されています。CDATAセクション内で埋め込むことにより、同じ結果がでます。
<?xml version="1.0" encoding="UTF-8"?> <Data> <String translate="yes"> <![CDATA[ <b>SDL Trados Studio 2009 SP1</b> combines decades of translation technology experience and over $100 million invested into research and development to bring you the most innovative and <span class="highlight">revolutionary software</span> on the market. ]]> </String> </Data>
原文ファイルで埋め込みテキストを説明している正規表現を提供することにより埋め込みコンテンツを指定します。
この例のxmlファイルは、例のファイルのexample-xml-with-embedded-html.xmlにも含まれています。例のファイルは、ファイルアーカイブのexample-xml-files.zipにあります。