summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2009-06-01 00:34:57 -0500
committerShaun McCance <shaunm@gnome.org>2009-06-01 00:34:57 -0500
commit01131df242628986266c61fe5a38872310a9bad5 (patch)
tree048cc75c0419aa9ebe5e266b8fdb645456062e47
parentf718eb8f7497c1b48950fb7bd8b437774a684a6b (diff)
downloadyelp-01131df242628986266c61fe5a38872310a9bad5.tar.gz
Adding mal2html.xsl
-rw-r--r--configure.in4
-rw-r--r--stylesheets/Makefile.am3
-rw-r--r--stylesheets/mal2html.xsl.in43
3 files changed, 49 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 4dc488aa..3019d2ad 100644
--- a/configure.in
+++ b/configure.in
@@ -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
diff --git a/stylesheets/Makefile.am b/stylesheets/Makefile.am
index c6b6b060..09ccf408 100644
--- a/stylesheets/Makefile.am
+++ b/stylesheets/Makefile.am
@@ -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
diff --git a/stylesheets/mal2html.xsl.in b/stylesheets/mal2html.xsl.in
new file mode 100644
index 00000000..303ac03e
--- /dev/null
+++ b/stylesheets/mal2html.xsl.in
@@ -0,0 +1,43 @@
+<?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>