Code: Select all
$VAR1 = {
'Error' => {
'ErrorCode' => 'TicketUpdate.InvalidParameter',
'ErrorMessage' => 'TicketUpdate: DynamicField->Value parameter is invalid!'
}
};
Below is my attempt for mapping the field.
Code: Select all
<?xml version="1.0"?>
<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs math" version="3.0">
<xsl:output indent="yes" omit-xml-declaration="yes" />
<xsl:template match="RootElement">
<xsl:copy>
<UserLogin>
<xsl:value-of select="//UserLogin"/>
</UserLogin>
<Password>
<xsl:value-of select="//Password"/>
</Password>
<TicketID>
<xsl:value-of select="//TicketID"/>
</TicketID>
<DynamicField>
<Name>TextField</Name>
<Value>Value</Value>
</DynamicField>
<DynamicField>
<Name>Multiselect</Name>
<Value>Value1</Value>
<Value>Value2</Value>
</DynamicField>
</xsl:copy>
</xsl:template>
</xsl:transform>