forked from kcl-ddh/kiln
-
Notifications
You must be signed in to change notification settings - Fork 38
Interpretive and diplomatic editions: parallel display
Jamie Norrish edited this page Oct 27, 2017
·
2 revisions
It could be useful to display both the interpretive and the diplomatic edition type styles together on the same page. This function has already been provided for the "inslib" edition structure so we can borrow the code from it and apply it to any other style, including our own edition structure template. Here are the steps we need to follow in order to modify the "iospe" edition style:
- Create a new htm-tpl-struct-iospe.xsl in webapps/ROOT/stylesheets/epidoc. Its content should be a copy of the entire
<xsl:template name="iospe-body-structure">
from the stylesheet of the same name contained in the kiln folder: webapps/ROOT/kiln/stylesheets/epidoc/htm-tpl-struct-iospe.xsl. - Copy the entire
<div class="section-container tabs" data-section="tabs">
(c. lines 89-116) from webapps/ROOT/kiln/stylesheets/epidoc/htm-tpl-struct-inslib.xsl - In the non-kiln webapps/ROOT/stylesheets/epidoc/htm-tpl-struct-iospe.xsl replace the entire
<div id="edition" class="iospe">
with the div from step 2. - In start-edition.xsl in webapps/ROOT/stylesheets/epidoc write an import for the newly created stylesheet after the import of the kiln start-edition.xsl:
<xsl:import href="../../kiln/stylesheets/epidoc/start-edition.xsl" /> <xsl:import href="htm-tpl-struct-iospe.xsl"/>