Process service publish request

XSL In

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ser="http://smt-x.com/Services/">
	<xsl:template match='/SSPAdapterCall'>
		<soap:Envelope>
			<soap:Header />
			<soap:Body>
				<ser:ProcessServicePublishRequest>
					<ser:ServiceGuid><xsl:value-of select="Field[@Name='ServiceGuid']" /></ser:ServiceGuid>
					<ser:ServicePublishRequestGuid><xsl:value-of select="Field[@Name='ServicePublishRequestGuid']" /></ser:ServicePublishRequestGuid>
					<ser:Approved><xsl:value-of select="Field[@Name='Approved']" /></ser:Approved>
					<ser:Comments><xsl:value-of select="Field[@Name='Comments']" /></ser:Comments>
					<ser:ActorPersonUniqueId><xsl:value-of select="Field[@Name='ActorPersonUniqueId']" /></ser:ActorPersonUniqueId>
					<ser:HashCheck><xsl:value-of select="Field[@Name='HashCheck']" /></ser:HashCheck>
				</ser:ProcessServicePublishRequest>
			</soap:Body>
		</soap:Envelope>
	</xsl:template>
	<xsl:template name="splitActor">
		<xsl:param name="pText" select="Field[@Name='ActorPersonUniqueIds']"/>
		<xsl:if test="string-length($pText)">
			<xsl:variable name="actorPart" select="substring-before(concat($pText,'||'),'||')" />
			<xsl:variable name="restPart" select="substring-after($pText, '||')" />
			<ser:string><xsl:value-of select="$actorPart"/></ser:string>
			<xsl:call-template name="splitActor">
				<xsl:with-param name="pText" select="$restPart"/>
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>

XSL Out

Last updated

Was this helpful?