PARAMPROF=.param.profiled
PARAMSTRIP=.param.stripped
+MAKE_SYNOP=html2roff.xsl
include Makefile.param
-all: param.xsl
+all: param.xsl html-synop.xsl
xml: param.xml
../../cvstools/paramchk -m $@ param.xweb
make
+html-synop.xsl: ../xhtml/synop.xsl
+ $(XSLT) $< $(MAKE_SYNOP) $@
+
clean:
$(RM) param.xml param.html param.xsl
+ $(RM) html-synop.xsl
$(RM) Makefile.param
echo "# foo" > Makefile.param
exclude-result-prefixes="exsl"
version='1.0'>
- <xsl:import href="../html/docbook.xsl"/>
- <xsl:import href="../html/manifest.xsl"/>
+ <xsl:import href="../xhtml/docbook.xsl"/>
+ <xsl:import href="../xhtml/manifest.xsl"/>
+ <xsl:import href="html-synop.xsl"/> <!-- generated by build -->
<xsl:output method="text"
encoding="UTF-8"
--- /dev/null
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ng="http://docbook.org/docbook-ng"
+ xmlns:db="http://docbook.org/ns/docbook"
+ xmlns:exsl="http://exslt.org/common"
+ exclude-result-prefixes="exsl db ng"
+ version='1.0'>
+
+<!-- ********************************************************************
+ $Id$
+ ********************************************************************
+
+ This file is part of the XSL DocBook Stylesheet distribution.
+ See ../README or http://docbook.sf.net/release/xsl/current/ for
+ copyright and other information.
+
+ ******************************************************************** -->
+
+<!-- * Standalone stylesheet for doing "HTML to roff" transformation of a -->
+<!-- * stylesheet; which currently just means that it transforms all -->
+<!-- * <br/> instances into a line break, and all <pre></pre> instances -->
+<!-- * into roff "no fill region" markup -->
+
+<!-- ==================================================================== -->
+
+ <xsl:output method="xml"
+ encoding="UTF-8"
+ indent="no"/>
+
+ <xsl:template match="node() | @*">
+ <xsl:copy>
+ <xsl:apply-templates select="@* | node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <!-- ==================================================================== -->
+
+ <xsl:template match="br">
+ <xsl:element name="xsl:text"> </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="pre">
+ <xsl:element name="xsl:text">.nf </xsl:element>
+ <xsl:copy>
+ <xsl:apply-templates select="@* | node()"/>
+ </xsl:copy>
+ <xsl:element name="xsl:text"> .fi </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>