I have an XML with some tags like those:
<firstName>George</firstName>
<middleName>M</middleName>
<lastName>Stuard</lastName>
(and many other taks), and I would need in my XSL to concat the three names to have an
<fullName>George M Stuard</fullName>
in the output XML. I found some examples but none of them works, or better said, I don't know how to make them works.
I tried with something like this:
<fullName>
<xsl:template name="ConcatMyXML" match="name">
<xsl:variable name="MyConcatVar">
<xsl:for-each select="givenNames/lMiddleName/familyName">
<xsl:value-of select="./text()"/>
</xsl:for-each>
</xsl:variable>
</xsl:template>
<xsl:value-of select="$MyConcatVar"/>
</fullName>
Can someone give me a simple solution? Thanks!