Skip to Content
0
Former Member
Feb 26, 2009 at 09:23 AM

how to write XSLT codeing in file to file using XSLT mapping?

49 Views

Hi ,

Experts,

I am new to XSLT coding as iam doing File to File XSLT Mapping for i have created IR and ID part and i have wriiten XSLT codeing which is not working.

source structure: Target structure

Fname Name = (Fname+Lname)

Lname

maths

science Total_marks = (mathssciencesocial)

social

<?xml version='1.0' ?>

http://www.w3.org/1999/XSL/Transform" xmlns:sap=" http://www.sap.com/sapxsl" xmlns:aash="http://xlst.file2file" xmlns:ns0="http://xlst.file2file">

<xsl:template match="/"> |

<aash:mt_student_result> this is my Naming Space

<Data>

<Name>

<xsl:value-of select="concat(ns0:mt_student/data/FName,ns0:mt_student/data/LName)"/>

</Name>

<Marks>

<Total_Marks>

<xsl:value-of select="(ns0:mt_student/data/Marks/Maths)(ns0:MT_Student/Data/Marks/Science)(ns0:mt_student/data/Marks/Social)"/>

</Total_Marks>

</Marks>

</Data>

</aash:mt_student_result>

</xsl:template>

</xsl:transform>

while testing in Interface mapping the values are not comming into result side please verify the code and suggest me the correct one.

Thanks in advance

shabeer ahmed.