	<!--
	#################################################################
	This template transforms the structured format of LOCACTIVITYGROUPS into
	a ':' delimited string for use in DirXML-sapLocRoles attribute.
	#################################################################
	-->
	<xsl:template match="value[ancestor::*/@attr-name='LOCACTIVITYGROUPS']">
		<value>
			<xsl:variable name="subSystem">
				<xsl:variable name="components" select="component"/>
				<xsl:for-each select="$components">
					<xsl:if test="@name = 'SUBSYSTEM'">
						<xsl:value-of select="."/>
					</xsl:if>
				</xsl:for-each>
			</xsl:variable>
			<xsl:variable name="agrName">
				<xsl:variable name="components" select="component"/>
				<xsl:for-each select="$components">
					<xsl:if test="@name = 'AGR_NAME'">
						<xsl:value-of select="."/>
					</xsl:if>
				</xsl:for-each>
			</xsl:variable>
			<xsl:value-of select="concat($subSystem, ':', $agrName)"/>
		</value>
	</xsl:template>
	<!--
	#################################################################
	This template transforms the structured format of LOCPROFILES into
	a ':' delimited string for use in DirXML-sapLocProfiles attribute.
	#################################################################
	-->
	<xsl:template match="value[ancestor::*/@attr-name='LOCPROFILES']">
		<value>
			<xsl:variable name="subSystem">
				<xsl:variable name="components" select="component"/>
				<xsl:for-each select="$components">
					<xsl:if test="@name = 'SUBSYSTEM'">
						<xsl:value-of select="."/>
					</xsl:if>
				</xsl:for-each>
			</xsl:variable>
			<xsl:variable name="profile">
				<xsl:variable name="components" select="component"/>
				<xsl:for-each select="$components">
					<xsl:if test="@name = 'PROFILE'">
						<xsl:value-of select="."/>
					</xsl:if>
				</xsl:for-each>
			</xsl:variable>
			<xsl:value-of select="concat($subSystem, ':', $profile)"/>
		</value>
	</xsl:template>