Commit b1f3d819 authored by bettin5's avatar bettin5

foreach for targets to use substring()

parent 625958aa
......@@ -318,15 +318,19 @@ Refer to comments in the code to understand the used algorithm.
<xsl:value-of select="./relatedItem/@type"/>
</field>
<xsl:choose>
<xsl:when test="./relatedItem/ref/@target">
<field name="target">
<xsl:value-of select="./relatedItem/ref/@target" />
</field>
<xsl:when test="./relatedItem/ref/@target">
<xsl:for-each select="./relatedItem/bibl/ref/@target">
<field name="target">
<xsl:value-of select="substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')" />
</field>
</xsl:for-each>
</xsl:when>
<xsl:when test="./relatedItem/bibl/ref/@target">
<xsl:for-each select="./relatedItem/bibl/ref/@target">
<field name="target">
<xsl:value-of select="./relatedItem/bibl/ref/@target" />
<xsl:value-of select="substring-after(., 'http://fbl_bln/Lit/')" />
</field>
</xsl:for-each>
</xsl:when>
</xsl:choose>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment