Commit 750cb9ef authored by bettin5's avatar bettin5
Browse files

put substring in var

parent 7e557b39
......@@ -317,15 +317,18 @@ Refer to comments in the code to understand the used algorithm.
<field name="type_refs">
<xsl:value-of select="./relatedItem/@type"/>
</field>
<xsl:choose>
<xsl:when test="./relatedItem/ref/@target">
<field name="tartget">
<xsl:value-of select="substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')" />
<xsl:variable name="targetString" select="substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')"/>
<field name="target">
<xsl:value-of select="$targetString" />
</field>
</xsl:when>
<xsl:when test="./relatedItem/bibl/ref/@target">
<field name="tartget">
<xsl:value-of select="substring-after(./relatedItem/bibl/ref/@target, 'http://fbl_bln/Lit/')" />
<xsl:variable name="targetString_bibl" select="substring-after(./relatedItem/bibl/ref/@target, 'http://fbl_bln/Lit/')"/>
<field name="target">
<xsl:value-of select="$targetString_bibl" />
</field>
</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