Hi Gurus,
Inserting the text in between authors, (last author & sign before) remaining authors should be a comma separation.
XML Coding as follows.
HTML Code:
<person-group person-group-type="author">
<name>
<surname>Beyer</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Bardina</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Grishina</surname>
<given-names>G.</given-names>
</name>
I tried the XSL Code as follows.
HTML Code:
<xsl:template match="//ref/nlm-citation/person-group/name">
<xsl:next-match/>
<xsl:for-each select=".">
<xsl:choose>
<xsl:when test="position()=last()">
<xsl:text><xPunc>ampersand </xPunc></xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text><xPunc>, </xPunc></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
The above code inserting the ampersand in all the author name tag after.
<xPunc>ampersand </xPunc>. I need only for the last author before the ampersand, remaining authors between comma only to insert.