Our RAs are beginning to mark up forme works (running titles, page and folio numbers, etc.), so I'm adding in some handling for those on the site. I've taken the opportunity to do some more thinking with regard to the integration of CSS. These are some points, exemplified in the Amboise 2 text:
<fw>
tags for page numbers had best precede those for running titles, even if they appear on the right of them, because they're essentially floated, while the running titles are centred. This is an easy convention to work with, and makes rendering much easier too.- The dimensions of the actual pages, rendered in ems, are now stored in a
<rendition>
element in the header:<tagsDecl> <rendition xml:id="layoutDesc" scheme="css">width: 15em; padding-left: 3em; padding-right: 3em;</rendition> <rendition xml:id="pageBreakMargins" scheme="css">margin-left: -3em; margin-right: -3em;</rendition> </tagsDecl>
- These are linked in a general-purpose way like this:
<text rendition="#layoutDesc">...</text>
and in a specific way for the page-break elements (this is rather a kludge, but it allows us to put page-break lines which are the right width):<xsl:template match="pb"> <xsl:element name="div"> <xsl:attribute name="class">pageBreak</xsl:attribute> <xsl:if test="//rendition[@xml:id='pageBreakMargins']"> <xsl:attribute name="style"><xsl:value-of select="//rendition[@xml:id='pageBreakMargins']" /></xsl:attribute> </xsl:if> <xsl:value-of select="@n" /> </xsl:element> </xsl:template>
There may be a much more generic way of doing this, but I haven't thought of it yet. I could have a convention that links a specific<rendition>
element through itsxml:id
to all instances of a particular tag. <fw>
tags are styled and positioned with@rend
. We'll probably dispense with@place
.
This is still very much a work in progress, but we're getting there. Another couple of days should result in some clear guidelines and usable output formats.