Topic
  • 2 replies
  • Latest Post - ‏2012-03-20T13:45:52Z by swlinn
Developer11
Developer11
94 Posts

Pinned topic xslt confusion

‏2012-03-20T07:24:23Z |
Hello,
I am a bit confused with the way my xslt code is displaying the output.
I have two dp:url-open calls in my xslt and I am capturing the output in different xsl variables.

If I try to output the response for one of the dp:url-open calls. response looks fine..
something like

<Employee>
<Employeename>test</Employeename>
<Employeenumber>1</Employeenumber>
</Employee>

My actual response message is lot bigger than what I mentioned above.

If I try to output both the responses together..

I see '<' in place of '<'t see the output of my second "dp:url-open" at all.
I am using xsl:copy-of for displaying the response message . something like

<result1><xsl:copy-of select="$var1"></result1>
<result2><xsl:copy-of select="$var2"></result2>
But when I display the output (in debug mode) using xsl:message.. I could see the output for both the dp:url-open calls.. in the debug mode.
I am using SOAP UI to test this.
Please advise.
Updated on 2012-03-20T13:45:52Z at 2012-03-20T13:45:52Z by swlinn
  • Developer11
    Developer11
    94 Posts

    Re: xslt confusion

    ‏2012-03-20T07:27:10Z  
    less than symbols got formatted.

    I see "ampersand l t " symbol in place of less than symbol for the tag.
  • swlinn
    swlinn
    1396 Posts

    Re: xslt confusion

    ‏2012-03-20T13:45:52Z  
    less than symbols got formatted.

    I see "ampersand l t " symbol in place of less than symbol for the tag.
    To make your response valid XML, you need to wrap your combined results, ie,

    <combinedresults>
        <result1><xsl:copy-of select="$var1"></result1>
        <result2><xsl:copy-of select="$var2"></result2>
    </combinedresults>
    


    Regards,
    Steve
    Updated on 2014-03-25T02:59:41Z at 2014-03-25T02:59:41Z by iron-man