I am currently working on a digital edition of a certain work. I have every double-page (so f28v and f29r inside on document)
<xsl:template match="tei:pb">
<xsl:element name="div">
<xsl:attribute name="class">
<xsl:text>test;</xsl:text>
</xsl:attribute>
<xsl:element name="div">
<xsl:attribute name="style">
<xsl:text>text-align:right;</xsl:text>
</xsl:attribute>
<xsl:text>[Bl.</xsl:text>
<xsl:value-of select="@n"/>
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:element>
I want the class "test" to be the container for the following page that is indicated by the <pb/>
.
My current xslt adds the class "test" only to the div created from the <pb/>
The class "test" will either be replaced by bootstrap's or semanticUI's version of the grid, which will then be formatted using CSS to look pretty.
(I come from Javascript/Web-developing with Javascrippt and nodeJS, so XSLT is fairly new to me)