Thanks, Matthieu Ricaud
If I change like this, all other elements goes back. Some elements may
come before (eg. suffix, prefix), So I need to keep it in same input order.
====All other input element order are the same in output except surname
and given-names. ====
As Michel suggested I used template only for the name elements instead
of contrib.
"<xsl:template match="contrib/name"><xsl:apply-templates
select="prefix, given-names, surname, suffix"/></xsl:template>"
Updated XSL:
==========
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:output encoding="us-ascii" indent="yes" method="xml"/>
<xsl:template match="/"><xsl:apply-templates/></xsl:template>
<xsl:template
match="contrib-group"><aug><xsl:apply-templates/></aug></xsl:template>
<xsl:template
match="contrib"><au><xsl:apply-templates/></au></xsl:template>
<xsl:template match="contrib/name"><xsl:apply-templates
select="prefix, given-names, surname, suffix"/></xsl:template>
<xsl:template
match="surname"><surname><xsl:apply-templates/></surname></xsl:template>
<xsl:template
match="given-names"><forename><xsl:apply-templates/></forename></xsl:template>
<xsl:template
match="degrees"><qualifications><xsl:apply-templates/></qualifications></xsl:template>
</xsl:stylesheet>
and get solved. Thanks.
===========================================================
***Disclaimer***
This email, and any attachments ("this email"), is confidential. If you are not the addressee please tell the sender immediately, and destroy this email without using, sending or storing it. Any opinions, express or implied, in this email, are those of the sender, and are not necessarily approved by the company. Except as expressly stated, this e-mail should not be regarded as an offer, solicitation, recommendation or agreement to buy or sell products or services, or to enter into any contract. E-mail transmissions are not secure and may suffer errors, viruses, delay, interception and amendment. The company does not accept liability for damage caused by any of the foregoing.
ALL INCOMING AND OUTGOING MAILS MAY BE MONITORED BY THE COMPANY.
============================================================