Re: [xsl] Remove duplicate affiliation

Subject: Re: [xsl] Remove duplicate affiliation
From: "Michael Mueller-Hillebrand michael.mueller-hillebrand@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Dec 2023 10:28:49 -0000
Hi Joga Singh Rawat,

deduplication is often successfully performed with xsl:for-each-group.

After you have processed the author names, you could try something along

<xsl:for-each-group select="author/affiliation" group-by="@xreflabel">
  <xsl:apply-templates select="."/><!-- processes the first item in the group


From: Joga Singh Rawat jrawat@xxxxxxxxxxxxxx
Sent: Wednesday, December 20, 2023 11:02 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Remove duplicate affiliation

Hi Friends,
We need to remove duplicate affiliation that can be unique by @xreflabel.
Could you please let me know any clue.

<affiliation xreflabel=b1b><org>..</org> First affiliation</affiliation>
<affiliation xreflabel=b2b><sup>..</sup> Second affiliation</affiliation>
<affiliation xreflabel=b1b><org>..</org> First affiliation</affiliation>
<affiliation xreflabel=b3b><org>..</org> Third affiliation</affiliation>
<affiliation xreflabel=b1b><org>..</org> First affiliation</affiliation>
<affiliation xreflabel=b4b><sub>..</sub> Forth affiliation</affiliation>

<aff><org>b&</org> First affiliation</aff>
<aff><sup>b&</sup> Second affiliation</aff>
<aff><org>b&</org> Third affiliation</aff>
<aff><sub>b&</sub> Forth affiliation</aff>

XSL-List info and archive<>
EasyUnsubscribe<> (by

Current Thread