on 09-04-2007 4:43 PM
hi experts,
i am doing xslt mapping, in htat i am trying to map two fields from source to one target feild.
fname
to name
lname
how can i do it
Hi,
check this link it is helpfull.
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Assuming source structure and the XSL transformation will look like the below..
<b>Source XML</b>
<?xml version="1.0"?>
<data>
<fname>SDN</fname>
<toname>Portal</toname>
</data>
<b>Code</b>
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="data">
<data>
<xsl:element name="lname">
<xsl:value-of select="concat(fname,toname)"/>
</xsl:element>
</data>
</xsl:template>
</xsl:stylesheet>
<b>Target XML</b>
<?xml version="1.0"?>
<data>
<lname>SDNPortal</lname>
</data>
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer this link too http://www.w3schools.com/xsl/default.asp
http://www.w3schools.com/xsl/xsl_intro.asp
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.