Skip to content
Snippets Groups Projects
Commit 75feaaab authored by David Maus's avatar David Maus
Browse files

Normalisiere @ref auch in <rs>

parent b9305542
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,13 @@ ...@@ -18,11 +18,13 @@
</xsl:copy> </xsl:copy>
</xsl:template> </xsl:template>
<xsl:template match="@ref[parent::author]"> <xsl:template match="@ref[starts-with(., '../../register.xml')]">
<xsl:if test="document(.)/idno[@type = 'URI']"> <xsl:if test="document(.)/idno[@type = 'URI']">
<xsl:attribute name="ref" select="document(.)/idno[@type = 'URI']"/> <xsl:attribute name="ref" select="document(.)/idno[@type = 'URI']"/>
</xsl:if> </xsl:if>
<xsl:attribute name="n" select="document(.)/persName[@type = 'display']"/> <xsl:if test="parent::author">
<xsl:attribute name="n" select="document(.)/persName[@type = 'display']"/>
</xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="ref[ends-with(@target, '.xml')]"> <xsl:template match="ref[ends-with(@target, '.xml')]">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment