Jump to content

editing TEI stylesheet EPUB for a BA degree project


TMT

Recommended Posts

I'm working on the TEI stylesheet for EPUB for a BA degree project. I'm trying to modify the stylesheet files, so that they create a list of names selected by me, displayed at the bottom of the file (a final index).I'm trying to force the xsl to write an xml code in preflight mode after the body section (inside “<back>”). But I find hard to define what to do in my template... I even thought to use a function, but I don't understand how do that.I tried to make sure that the right file is selected with the code xsl: attribute; I found this method on the internet but I do not know if it's right.This is my code:

<xsl:template match="tei:body" mode="preflight"><xsl:attribute name="href"><xsl:value-ofselect="inputDir"/></xsl:attribute><xsl:choose><xsl:when test="position()=last()"><back><div type="indiceNomi"><b>Indice dei luoghi:</b><xsl:apply-templates select="tei:rs[@type='luogo']"><xsl:sort order="ascending"><p><xsl:value-of select="."/></p></xsl:sort></xsl:apply-templates></div></back></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose></xsl:template>

I would like to know if you can show me which file I need to edit to change the CSS in the epub outuput.Can you please explain me what you would do in my situation, or help me in some other way?Thank you.

Edited by TMT
Link to comment
Share on other sites

I don't know the specifics of eiter TEI or EPUB... but if your destination language is HTML, you need to specify the CSS for it just as you do in normal HTML - in the head, with a "link" element. You can then point to a custom CSS that does whatever it is you want.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...