Skip to content

Commit

Permalink
eliminate second data file path with extra slash
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeier authored Jan 29, 2025
1 parent 25e6985 commit ba26752
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions bibliography.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@
<xsl:variable name="file" select="tokenize($target,'/')[last()]"/>
<xsl:variable name="dataFilePath">
<xsl:choose>
<xsl:when test="ends-with($dataPath,'/data/')"><xsl:value-of select="concat($dataPath,'bibl/tei/')"/></xsl:when>
<xsl:when test="ends-with($dataPath,'/data')"><xsl:value-of select="concat($dataPath,'/bibl/tei/')"/></xsl:when>
<xsl:when test="ends-with($dataPath,'data/')"><xsl:value-of select="concat($dataPath,'bibl/tei/')"/></xsl:when>
<xsl:when test="ends-with($dataPath,'data')"><xsl:value-of select="concat($dataPath,'/bibl/tei/')"/></xsl:when>
<xsl:otherwise><xsl:value-of select="concat($dataPath,'/data/bibl/tei/')"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
Expand All @@ -294,8 +294,6 @@
</xsl:variable>
<xsl:choose>
<xsl:when test="doc-available($biblfilepath)">
<message>doc found at biblfilepath</message>

<xsl:variable name="rec" select="document($biblfilepath)"/>
<xsl:for-each select="$rec/descendant::t:biblStruct">
<xsl:apply-templates mode="footnote"/>
Expand All @@ -310,23 +308,6 @@
</xsl:when>
<xsl:otherwise>
<xsl:message>The value of biblfilepath is '<xsl:value-of select="$biblfilepath"/>'</xsl:message>
<!-- Debugging Messages -->
<xsl:message>The value of biblfilepath is :'<xsl:value-of select="$biblfilepath"/>'</xsl:message>
<xsl:message>
<xsl:if test="doc-available('./data/bibl/tei/22278522.xml')">
✅ Test Passed: 1 xml is available
</xsl:if>
</xsl:message>
<xsl:message>
<xsl:if test="doc-available('data/bibl/tei/22278522.xml')">
✅ Test Passed: 2 xml is available
</xsl:if>
</xsl:message>
<xsl:message>
<xsl:if test="doc-available('data/bibl/tei/N42AM4Q2.xml')">
✅ Test Passed: 3.xml is available
</xsl:if>
</xsl:message>
<xsl:apply-templates mode="footnote"/>
<xsl:sequence select="$passThrough"/>
<xsl:if test="descendant::t:idno[@type='URI']">
Expand Down

0 comments on commit ba26752

Please sign in to comment.