Skip to content
Snippets Groups Projects
Commit 1cf5802d authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Replace transkription.xsl (überflüssigen Code entfernt)

parent 93b2482f
No related branches found
No related tags found
No related merge requests found
......@@ -693,64 +693,29 @@
</a>
</xsl:template>
<xsl:template match="rs" mode="step3">
<xsl:choose>
<xsl:when test="ancestor::rs">
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="matches(@ref, '^psn')">
<xsl:value-of select="concat($psnpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^plc')">
<xsl:value-of select="concat($plcpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^wrk')">
<xsl:value-of select="concat($wrkpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^org')">
<xsl:value-of select="concat($orgpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^lit')">
<xsl:value-of select="concat($litpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates mode="step3"/>
</a>
</xsl:when>
<xsl:otherwise>
<!-- funktioniert nicht für Fälle wie <rs type="work" role="present" ref="wrk:muenchen_silbernes_marienbild">Vnser <rs type="person" role="remote" ref="psn:maria">frawen</rs> haupt In silber</rs> -->
<xsl:if test="node()[1] = rs">
<xsl:apply-templates select="rs" mode="step3"/>
</xsl:if>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="matches(@ref, '^psn')">
<xsl:value-of select="concat($psnpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^plc')">
<xsl:value-of select="concat($plcpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^wrk')">
<xsl:value-of select="concat($wrkpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^org')">
<xsl:value-of select="concat($orgpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^lit')">
<xsl:value-of select="concat($litpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates select="node()[not(self::rs)]" mode="step3"/>
</a>
<xsl:if test="node()[last()] = rs">
<xsl:apply-templates select="rs" mode="step3"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:template match="rs" mode="step3">
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="matches(@ref, '^psn')">
<xsl:value-of select="concat($psnpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^plc')">
<xsl:value-of select="concat($plcpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^wrk')">
<xsl:value-of select="concat($wrkpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^org')">
<xsl:value-of select="concat($orgpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
<xsl:when test="matches(@ref, '^lit')">
<xsl:value-of select="concat($litpath, substring-after(@ref, ':'), '.xhtml')"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates select="node()[not(self::rs)]" mode="step3"/>
</a>
</xsl:template>
<xsl:template match="seg" mode="step3">
......
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