Skip to content

Commit

Permalink
Fix for 89912
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Oct 23, 2023
1 parent 72a6471 commit 52c101b
Show file tree
Hide file tree
Showing 4 changed files with 838 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ This xsl accounts for a bug in Encoda. In this preprint some text that precedes

The xsl adds an empty `disp-quote` element between the paragraph and display equation in order for the two to be adequately separated in the JSON.

### [/src/2023.07.24.550263/heading-fix.xsl](/src/2023.07.24.550263/equation-fix.xsl)

This xsl accounts for undesired behaviour in Encoda which changes the capitalisation of headings that are in all caps to sentence case.


# Modify bioRxiv XML in preparation for Encoda

Expand Down
20 changes: 20 additions & 0 deletions src/2023.07.24.550263/heading-fix.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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']//sec[title='IF']/title">
<title><bold>IF</bold></title>
</xsl:template>

</xsl:stylesheet>
Loading

0 comments on commit 52c101b

Please sign in to comment.