cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping

Former Member
0 Kudos

Dear all,

Message mapping:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:EMP_DETAILS xmlns:ns0="http://ehro.eds.com/PSPC/JDBCrec">

<EMP>

<FirstName>SRINIVASA</FirstName>

<LastName>POTHARAJU</LastName>

<ENO>1</ENO>

<Sal>121222</Sal>

<desg>MANAGER</desg>

</EMP>

</ns0:EMP_DETAILS>

When I tried the mapping in styllus studio:

<?xml version='1.0' ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://ehro.eds.com" >

<xsl:template match="/">

<ns1:EMP_DETAILS_R xmlns:ns1="http://ehro.eds.com/PSPC/JDBCrec">

<xsl:for-each select="ns0:EMP_DETAILS/EMP">

<EMP>

<Ename>

<xsl:value-of select="concat(FirstName,'|',LastName)"/>

</Ename>

<Sal>

<xsl:value-of select="Sal"/>

</Sal>

<Desg>

<xsl:value-of select="desg"/>

</Desg>

<Empno>

<xsl:value-of select="ENO"/>

</Empno>

</EMP>

</xsl:for-each>

</ns1:EMP_DETAILS_R>

</xsl:template>

</xsl:stylesheet>

I could not able to see the contents of the receiver,when tested through Interface mapping->Test .

Let me know the error.

Are there any tips do do the same.

thanks,

srini

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Srini,

you define a namespace with prefix ns1 but in your for-each X-Path expression you used prefix ns0.

Regards,

Udo

Former Member
0 Kudos

Thanks UDO,it got solved.

Answers (2)

Answers (2)

Former Member
0 Kudos

<i>

Hello sreeni,

As per what i am getting from you, is not sufficient to ans this qst. Will you please check whether there any error happening by pressing F7 key after the msg mapping and later. There also exists a chance to have bugs.

I don't find any probs from the xml output format that you added later. <b> Just give me more info after the mapping [check (F7) and the result of the execution] </b>.

reply soon

</i>

Regards

Vinod V Pillai

nikhil_bose
Active Contributor
0 Kudos

hi srini,

>> Do the configuration and check the output, may be interface testing comes up with a bug.

check your messege status in Runtime Monitoring (both in Adapter Engine and Integration engine.

you can check the pipeline progress in SXI_MONI too. check the status there and tell the error what is exactly shown.

get me your status

regards,

nikhil