Skip to content

Instantly share code, notes, and snippets.

@gingerhendrix
Created July 22, 2026 11:45
Show Gist options
  • Select an option

  • Save gingerhendrix/9619827a894e320a5cc16ed7dea78e76 to your computer and use it in GitHub Desktop.

Select an option

Save gingerhendrix/9619827a894e320a5cc16ed7dea78e76 to your computer and use it in GitHub Desktop.
Disposable header capability probe
<?xml version="1.0" encoding="UTF-8"?>
<!--
KUKA XML smoke-test document for the okf_xml@kuka filter config.
Every text node is self-describing: it states whether it SHOULD or
SHOULD NOT be extracted for translation, so results can be eyeballed.
See smoke-test.md for the rule-by-rule expected-results table.
A default namespace is set so the config's local-name() predicates
are actually exercised.
-->
<document xmlns="http://www.kuka.com/documentation">
<!-- title (top level): SHOULD translate -->
<title>Operating Instructions [title SHOULD translate]</title>
<!-- primary-index: SHOULD translate -->
<primary-index>Safety [primary-index SHOULD translate]</primary-index>
<!-- index + any descendant of index: SHOULD translate -->
<index>
Index intro text [index SHOULD translate]
<entry>Nested index entry [index descendant SHOULD translate]</entry>
<see-also>Related topics [index descendant SHOULD translate]</see-also>
</index>
<chapter>
<!-- title (nested): SHOULD translate -->
<title>Chapter 1: Installation [title SHOULD translate]</title>
<!-- para + translatable inline children -->
<para>This paragraph [para SHOULD translate] contains an
<emphasis>emphasised phrase [emphasis inline SHOULD translate]</emphasis>, a
<cite>citation [cite inline SHOULD translate]</cite>, a
<command>runProgram() [command inline SHOULD translate]</command>, a superscript
<sup>2 [sup inline SHOULD translate]</sup>, a subscript
<sub>max [sub inline SHOULD translate]</sub>, and a
<a href="https://www.kuka.com">link text [a inline SHOULD translate]</a>.
It also embeds a
<feature>FEATURE_CODE_42 [feature inline SHOULD NOT translate]</feature>
and a line break [br SHOULD NOT translate]<br/>after the break.</para>
<!-- target-content: SHOULD translate -->
<target-content>Localised target string [target-content SHOULD translate]</target-content>
<!-- emphasis (standalone, top of chapter): SHOULD translate -->
<emphasis>Standalone emphasis [emphasis SHOULD translate]</emphasis>
<!-- text outside notrans: SHOULD translate -->
<text>Free-standing text element [text SHOULD translate]</text>
<!-- notrans: everything under it SHOULD NOT translate -->
<notrans>
<text>Text inside notrans [text SHOULD NOT translate]</text>
Bare text inside notrans [SHOULD NOT translate]
</notrans>
<!-- programlisting: ONLY descendants with @type='translate' translate -->
<programlisting>
<title>Listing title [inside programlisting SHOULD NOT translate]</title>
<para>Listing paragraph [inside programlisting SHOULD NOT translate]</para>
<line>PTP $POS_ACT ; code line [SHOULD NOT translate]</line>
<comment type="translate">Move robot to home position [programlisting @type=translate SHOULD translate]</comment>
<comment>Untagged comment [inside programlisting SHOULD NOT translate]</comment>
</programlisting>
</chapter>
</document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment