Finished first pass at article rendering
Worked most of the day on the rendering of editorial articles (modern content). The tricky part has been figuring out how best to re-use a lot of the rendering functionality we already have (such as reference and footnote popups) while still separating out the article rendering so that it can be differentiated where necessary from the anthology content, without duplicating code. I have a new XSLT file called article_p5_to_xhtml.xsl
, which is not long, but takes control of the processing at a crucial point, and a new rendering @mode
attribute in the XSLT which can be used to fork the processing at various points. All documents still commence their processing with index.xsl
, though, and inherit all the main site components at that point.
The basics:
- Articles are retrieved from the URL
/article.htm?id=whatever
. - Bibliography items and lists which are fully defined in the original document are rendered visibly in the output, before the footnotes; they're also available as popups from links in the main body.
- Bibliography items which are referred to, but which reside in the main collection bibliography, are retrieved into the document but hidden; they are shown when the reference link is clicked on.
- Footnotes are rendered at the bottom of the document, but also shown as popups from buttons in the text.
- References should work like main-collection biblio items, although there are none in this article anyway.
- Links to anthology documents can go to the document, or to a page in the document (if there are pages with numbers captured by the appropriate tags), or to annotations in image markup documents.