|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:transform version="2.0"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:dr="http://documenta.rudolphina.org/"
|
|
extension-element-prefixes="ixsl"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:template match="@* | node()" mode="#all">
|
|
<xsl:copy>
|
|
<xsl:apply-templates select="@* | node()" mode="#current"/>
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:result-document href="#htmlbody" method="ixsl:replace-content">
|
|
<xsl:apply-templates select="ixsl:page()/*/*/*[@id='htmlbody']/*" mode="init"/>
|
|
</xsl:result-document>
|
|
</xsl:template>
|
|
<xsl:template match="html:div[@class='docindex']/html:span" mode="init"/>
|
|
<xsl:template match="html:a/@onclick" mode="init"/>
|
|
<xsl:template match="html:div[@class='last']/html:div[@id]" mode="init"/>
|
|
|
|
<xsl:template match="html:div[@class='verslink']/html:a" mode="ixsl:onclick">
|
|
<xsl:variable name="content" as="element()">
|
|
<html:span xmlns:html="http://www.w3.org/1999/xhtml">
|
|
<xsl:value-of select="concat('Staudinger Manfred (Bearb.),', ' Documenta Rudolphina,',
|
|
' http://documenta.rudolphina.org/Namen/', ixsl:source()/dr:doc/@uri, '.xml',
|
|
' [Version: ', ixsl:source()/dr:doc/@v, ']')"/>
|
|
</html:span>
|
|
</xsl:variable>
|
|
<xsl:call-template name="toggle-div">
|
|
<xsl:with-param name="container" select=".." as="element()"/>
|
|
<xsl:with-param name="content" select="$content" as="element()"/>
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="toggle-div">
|
|
<xsl:param name="container" as="element()"/>
|
|
<xsl:param name="content" as="element()+"/>
|
|
<xsl:for-each select="$container">
|
|
<xsl:choose>
|
|
<xsl:when test="html:div">
|
|
<xsl:message select="'ixsl:replace-content'"/>
|
|
<xsl:result-document href="?select=." method="ixsl:replace-content">
|
|
<xsl:apply-templates select="*" mode="del"/>
|
|
</xsl:result-document>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:result-document href="?select=." method="ixsl:append-content">
|
|
<xsl:message select="'ixsl:append-content'"/>
|
|
<html:div xmlns:html="http://www.w3.org/1999/xhtml" id="zitat_div">
|
|
<xsl:apply-templates select="$content"/>
|
|
</html:div>
|
|
</xsl:result-document>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
<xsl:template match="html:div" mode="del"/>
|
|
|
|
</xsl:transform>
|