Commit b34b0fc6 authored by Wendell Piez's avatar Wendell Piez

Extracting probably/nominal item (chapter) title as html/head/title

parent 001561a0
......@@ -12,6 +12,18 @@
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
<xsl:template match="html/head">
<xsl:copy>
<xsl:for-each select="(//h1 | //h2 | //h3)[1]">
<title>
<xsl:value-of select="."/>
</title>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="html/head/title"/>
<xsl:template match="node() | @*">
<xsl:copy>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment