problem regarding the <xsl:template match="contrib">
(if I understand correctly) According to the XSLT template if any "rid" attribute matches the "id" attribute of any element and also that has an element within it, then the contents of that element should be placed inside an element within the element, but that is not the case for fluids-08-02-00075.xml, more specifically for the following part:
<contrib contrib-type="author"> <contrib-id contrib-id-type="orcid" authenticated="true">https://orcid.org/0000-0001-6449-8002</contrib-id> <name> <surname>Serebryany</surname> <given-names>Andrey</given-names> </name> <xref rid="af1-fluids-08-00075" ref-type="aff">1</xref> <xref rid="af2-fluids-08-00075" ref-type="aff">2</xref> </contrib> <aff id="af1-fluids-08-00075"><label>1</label>Shirshov Institute of Oceanology RAS, Moscow 117997, Russia; <email>serebryany@hotmail.com</email>; Tel.: +7-916-1106453</aff>
Here is the TEI file:fluids-08-02-00075_TEI.xml