Skip to main content

XTM Cloud 13.8

XML formats

Internationalization Tag Set

Each .its file contains ITS rules for a particular file format as shown in Examples 1 and 2.

Example 52. Example 1

<?xml version="1.0" encoding="UTF-8"?>
<its:rules version="1.0"
	xmlns:its="http://www.w3.org/2005/11/its">
	<its:translateRule selector="//P" translate="yes"/>
	<its:withinTextRule selector="//P" withinText="no"/>
	<its:translateRule selector="//Br" translate="no"/>
	<its:withinTextRule selector="//Br" withinText="nested"/>
	<its:translateRule selector="//B" translate="yes"/>
	<its:withinTextRule selector="//B" withinText="yes"/>
</its:rules>

Example 53. Example 2
<?xmlversion="1.0"encoding="UTF-8"?>
<its:rulesits:version="1.0"
	xmlns:its="http://www.w3.org/2005/11/its">
	<its:translateRuleselector="//*"translate="no"/>
	<its:translateRuleselector="//text"translate="yes"/>
	<its:withinTextRuleselector="//var"withinText="yes"/>
</its:rules>

Example SRX rules file
<?xml version="1.0"?>
<srx version="2.0"
	xmlns="http://www.lisa.org/srx20"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.lisa.org/srx20 srx20.xsd">
	<header cascade="no" segmentsubflows="no">
		<formathandle type="start" include="no"/>
		<formathandle type="end" include="yes"/>
		<formathandle type="isolated" include="yes"/>
	</header>
	<body>
		<languagerules>
			<languagerule languagerulename="English">
				<rule break="no">
					<beforebreak>(^|\s|\p{Ps}|\p{Po}|(&lt;[^&gt;]*&gt;))Std\.</beforebreak>
					<afterbreak>\s</afterbreak>
				</rule>
				<rule break="yes">
					<beforebreak>[.?!;]</beforebreak>
					<afterbreak>(\s|&#xA0;)*+(&lt;[^&gt;]*&gt;(\s|&#xA0;)*+)*+(\s|&#xA0;)*+$</afterbreak>
				</rule>
			</languagerule>
		</languagerules>
		<maprules>
			<maprule maprulename="Default">
				<languagemap languagepattern="en*" languagerulename="English"/>
			</maprule>
		</maprules>
	</body>
</srx>