Skip to content

Commit

Permalink
Fixes (#112)
Browse files Browse the repository at this point in the history
* Fix for 90505

* xsl for 90755 to apply to all versions
  • Loading branch information
fred-atherden authored Nov 10, 2023
1 parent 80ae78b commit dc73c1b
Show file tree
Hide file tree
Showing 5 changed files with 1,037 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,10 @@ This xsl fixes the acknowledgements which have been mistagged in this preprint r

This xsl fixes numerous references which are missing key information and as a result rendering poorly on EPP.

### [/src/2023.08.14.553194/fix-refs.xsl](/src/2023.08.14.553194/fix-refs.xsl)

This xsl fixes numerous references which are missing key information and as a result rendering poorly on EPP.

# Modify bioRxiv XML in preparation for Encoda

Prerequisites:
Expand Down
2 changes: 1 addition & 1 deletion src/2023.07.05.547693/aff-fix.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</xsl:copy>
</xsl:template>

<xsl:template match="article[//article-meta/article-version='1.2']//article-meta//contrib[@contrib-type='author' and not(xref[@ref-type='aff'])]">
<xsl:template match="article//article-meta//contrib[@contrib-type='author' and not(xref[@ref-type='aff'])]">
<xsl:copy>
<xsl:apply-templates select="@*|contrib-id|name"/>
<xref ref-type="aff" rid="a1">1</xref>
Expand Down
24 changes: 24 additions & 0 deletions src/2023.08.14.553194/fix-refs.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="xs"
version="3.0">

<xsl:output method="xml" encoding="UTF-8"/>

<xsl:template match="*|@*|text()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="article[//article-meta/article-version='1.1']//ref[@id='c41']">
<ref id="c41"><mixed-citation publication-type="journal"><string-name><surname>Mielke</surname> <given-names>A.</given-names></string-name> <article-title>On Saint-Venant&#x2019;s problem for an elastic strip</article-title>. <source>Proceedings of the Royal Society of Edinburgh Section A: Mathematics</source>. <year>1988</year>; <volume>110</volume>():<fpage>161</fpage>&#x2013;<lpage>181</lpage>.</mixed-citation></ref>
</xsl:template>

<xsl:template match="article[//article-meta/article-version='1.1']//ref[@id='c33']">
<ref id="c33"><mixed-citation publication-type="book"><string-name><surname>Landau</surname> <given-names>L</given-names></string-name>, <string-name><surname>Lifshitz</surname> <given-names>E.</given-names></string-name> <source>M&#x00E9;canique des fluides, editions Mir</source>, vol. <volume>6</volume>; <year>1971</year>.</mixed-citation></ref>
</xsl:template>

</xsl:stylesheet>
Loading

0 comments on commit dc73c1b

Please sign in to comment.