<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://schema.infor.com/InforOAGIS/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://xml.apache.org/saxon/java" xmlns:tfs="http://www.infor.com/tfs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.pnp-software.com/XSLTdoc" exclude-result-prefixes="java tfs">
	<!---->
	<!--****************************************************************************************************-->
	<!-- trims trailing blanks from the passed string -->
	<!--****************************************************************************************************-->
	<xd:doc>
	This function trims the trailing spaces from the right side of the passed string.
		<xd:param name="arg">String to be trimmed right.</xd:param>
	</xd:doc>
	<xsl:function name="tfs:trimRight" as="xs:string">
		<xsl:param name="arg" as="xs:string?"/>
		<xsl:sequence select="replace($arg,'\s+$','')"/>
	</xsl:function>
</xsl:stylesheet>
