Questa è la condizione Rimappare quanto presente in input.
(Il campo potrebbe non essere valorizzato in input. Lo è infatti solo se ErrorCode <=> '0')
ns1:CUWPRCreateServiceRequest_createServiceRequest_Output/ns1:ErrorMessagesm:createServiceRequirementResponse/sm:ProcessData/sm:errorDescription
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://siebel.com/ccrmw/2009-04-22/" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="ns0 xs">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:variable name="var1_CUWPRCreateServiceRequest_createServiceRequest_Output" select="ns0:CUWPRCreateServiceRequest_createServiceRequest_Output"/>
<closeServiceRequirementResponse <xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance">
<xsl:value-of select="'http://telecomitalia.it/SOA/ServiceRequirementManagement/2010-12-22/ServiceRequirementManagement.xsd'"/>
</xsl:attribute>
<ProcessData>
<xsl:for-each select="$var1_CUWPRCreateServiceRequest_createServiceRequest_Output">
<returnCode>
<xsl:value-of select="string(ns0:ErrorCode)"/>
</returnCode>
</xsl:for-each>
<xsl:if test="(translate($var1_CUWPRCreateServiceRequest_createServiceRequest_Output/ErrorMessage,' ','')!='')">
<errorDescription><xsl:value-of select="$var1_CUWPRCreateServiceRequest_createServiceRequest_Output/IdEsigenza"/></errorDescription>
</xsl:if>
</ProcessData>
</closeServiceRequirementResponse>
</xsl:template>
</xsl:stylesheet>