Commit 01131df2 authored by Shaun McCance's avatar Shaun McCance

Adding mal2html.xsl

parent f718eb8f
......@@ -93,6 +93,9 @@ AC_SUBST(DB_TITLE)
DB2HTML="`$PKG_CONFIG --variable=db2xhtml gnome-doc-utils`"
AC_SUBST(DB2HTML)
MAL2HTML="`$PKG_CONFIG --variable=mal2xhtml gnome-doc-utils`"
AC_SUBST(MAL2HTML)
GDU_GETTEXT="`$PKG_CONFIG --variable=gettext gnome-doc-utils`"
AC_SUBST(GDU_GETTEXT)
......@@ -269,6 +272,7 @@ src/Makefile
stylesheets/Makefile
stylesheets/db2html.xsl
stylesheets/db-title.xsl
stylesheets/mal2html.xsl
stylesheets/toc2html.xsl
data/Makefile
data/icons/Makefile
......
......@@ -5,10 +5,11 @@ xsldir=$(datadir)/yelp/xslt
xsl_DATA = \
db2html.xsl \
db-title.xsl \
mal2html.xsl \
info2html.xsl \
man2html.xsl \
search2html.xsl \
toc2html.xsl \
yelp-common.xsl
EXTRA_DIST=$(xsl_DATA) db2html.xsl.in db-title.xsl.in toc2html.xsl.in
EXTRA_DIST=$(xsl_DATA) db2html.xsl.in db-title.xsl.in mal2html.xsl.in toc2html.xsl.in
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yelp="http://www.gnome.org/yelp/ns"
xmlns="http://www.w3.org/1999/xhtml"
extension-element-prefixes="yelp"
version="1.0">
<xsl:import href="@MAL2HTML@"/>
<xsl:include href="yelp-common.xsl"/>
<xsl:param name="yelp.javascript"/>
<xsl:param name="mal.chunk.chunk_top" select="true()"/>
<xsl:param name="mal.chunk.extension" select="''"/>
<!-- == mal.chunk == -->
<xsl:template name="mal.chunk">
<xsl:param name="node" select="."/>
<xsl:param name="href" select="concat($node/@id, $mal.chunk.extension)"/>
<yelp:document href="{$href}">
<xsl:apply-templates mode="mal.chunk.content.mode" select="$node"/>
</yelp:document>
</xsl:template>
<!-- == mal.link.target == -->
<!--
<xsl:template name="mal.xref.target">
<xsl:param name="link" select="."/>
<xsl:param name="xref" select="$link/@xref"/>
<xsl:param name="href" select="$link/@href"/>
FIXME
</xsl:template>
-->
<!-- == mal2html.css.custom == -->
<xsl:template name="mal2html.css.custom">
<xsl:call-template name="yelp.common.css"/>
</xsl:template>
</xsl:stylesheet>
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