<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://www.xlayer.co.za/forum/extern.php?action=feed&amp;tid=80&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[SXI Forum / Rules: Length]]></title>
		<link>https://www.xlayer.co.za/forum/viewtopic.php?id=80</link>
		<description><![CDATA[The most recent posts in Rules: Length.]]></description>
		<lastBuildDate>Fri, 15 Mar 2019 10:22:46 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Rules: Length]]></title>
			<link>https://www.xlayer.co.za/forum/viewtopic.php?pid=132#p132</link>
			<description><![CDATA[<p>This rule will remove any excess characters from a string.</p><p><strong>Example:</strong></p><div class="codebox"><pre><code>Text = “This string should end here (), but it keeps going.”</code></pre></div><p>We want to cut the text when it gets to this point <strong>&quot;()&quot;</strong></p><div class="codebox"><pre><code>&lt;sxi:Field name=&quot;//*[local-name()=’Text’]&quot;&gt;
 &lt;sxi:Rules&gt;
   &lt;sxi:Length&gt;30&lt;sxi:Length&gt;
 &lt;/sxi:Rules&gt;
 &lt;sxi:OutputField&gt;Text&lt;/sxi:OutputField&gt;
&lt;/sxi:Field&gt;</code></pre></div><p>After using the above config <strong>&quot;Text&quot;</strong> will now look as follows:</p><div class="codebox"><pre><code>Text = “This string should end here ()”</code></pre></div><p><strong>Attributes:</strong> </p><ul><li><p><strong>removeElements:</strong><br />If this attribute is set to yes and the value of the sting is over the given length the entire string will be removed.</p></li></ul>]]></description>
			<author><![CDATA[dummy@example.com (MarekR)]]></author>
			<pubDate>Fri, 15 Mar 2019 10:22:46 +0000</pubDate>
			<guid>https://www.xlayer.co.za/forum/viewtopic.php?pid=132#p132</guid>
		</item>
	</channel>
</rss>
