Mapping Attribute: Repeat

This attribute defines whether the mapping repaetedly matches against the same keys until no more matches remain. Default is false.

This example shows how a mapping with a repeat value of true recursively passes over the domain until no matches are found.


<instruction xmlns="http://www.obyx.org">
	<input wsstrip="true">
		<mapping repeat="true" operation="substitute">
		<domain>foobar</domain>
		<match wsstrip="true">
			<key>fim</key>
			fam
		</match>
		<match wsstrip="true">
			<key>foo</key>
			fim
		</match>
		<match wsstrip="true">
			<key>bar</key>
			bim
		</match>
		</mapping>
	</input>
</instruction>
fambim


Processing as follows:

loop0
    foobar
loop1
    fimbar
    fimbim
loop2
    fambim




Last Modified: Thu, 15 Jan 2015