TEIC / Stylesheets

TEI XSL Stylesheets
238 stars 126 forks source link

Position of table of contents in TEI to HTML5 and other musings #113

Closed Dominique-M closed 7 years ago

Dominique-M commented 9 years ago

In the html:body div stdheader div tei_front section… table of contents (heading, three lists, no container) div teo_body section… div tei_back section… div stdfooter

If the contents of TEI:front are to appear in the table of contents, the table of contents coming after some contents (and mentioning contents above, already passed, past) looks queer. It should come between div stdheader and div tei_front. A container would satisfy my sense of aesthetics (logic? TEI habit?) but also allow some CSS. (I would not decide a priori that any back div is to be called Appendix A… if the author choose his own TEI:heading.)

http://www.d-meeus.be/linux/sandbox/sandbox.xml transformed with /usr/share/xml/tei/stylesheet/html5/html5.xsl gives http://www.d-meeus.be/linux/sandbox/index.html

adunning commented 9 years ago

I would suggesting putting it within a <nav id="TOC">.

peterstadler commented 9 years ago

You can provide a dedicated place for the TOC in your TEI file with

<divGen type="toc"/>
Dominique-M commented 9 years ago

Peter Stadler a écrit le 22/09/15 09:55 :

You can provide a dedicated place for the TOC in your TEI file with

Thanks. I was very happy to be able to use || since a few years. I am sorry that I overlooked the possibility of |type="toc"|.