Hi everybody,
Need xsl to add the <author> element after the commos and If my <author> element is the last element followed by the tag <title> it should be add dot.
Find the input xml and output as below,
Input xml:
Code:
<authors>
<author>
<surname>Paivio</surname>
<given-name>A</given-name>
</author>
<author>
<surname>Jansen</surname>
<given-name>B</given-name>
</author>
<author>
<surname>Becker</surname>
<given-name>LJ</given-name>
</author>
</authors>
<title>
<maintitle>Comparisons through the mind's eye</maintitle>
</title>
Need output:
Code:
<authors>
<author>
<surname>Paivio</surname>
<given-name>A</given-name>
</author>,
<author>
<surname>Jansen</surname>
<given-name>B</given-name>
</author>,
<author>
<surname>Becker</surname>
<given-name>LJ</given-name>
</author>.
</authors>
<title>
<maintitle>Comparisons through the mind's eye</maintitle>
</title>
Please help me......