obdurodon / dh_course

Digital Humanities course site
GNU General Public License v3.0
20 stars 6 forks source link

XSLT #4 #313

Closed AncientGreekGeek closed 4 years ago

AncientGreekGeek commented 5 years ago

I had a lot of trouble figuring out how to put in the line breaks. I tried to put it directly into the html as suggested and that didn't work and I also tried to put them in using a element, which also didn't work. I'm not sure what else to try.

djbpitt commented 5 years ago

@AncientGreekGeek

<xsl:template match="line">
    <xsl:apply-templates/>
    <xsl:if test="following-sibling::line">
        <br/>
    </xsl:if>
</xsl:template>