You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2004/11/20 01:10:41 UTC

svn commit: r105903 - httpd/httpd/branches/2.0.x/docs/manual/style/xsl

Author: nd
Date: Fri Nov 19 16:10:40 2004
New Revision: 105903

Modified:
   httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl
Log:
backport joe's fix of examples in dds.

It's not really perfect now, but better than showing format instructions in the
output.


Modified: httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl	(original)
+++ httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl	Fri Nov 19 16:10:40 2004
@@ -313,7 +313,11 @@
 <!-- ==================================================================== -->
 <!-- <example>                                                            -->
 <!-- ==================================================================== -->
-<xsl:template match="example">
+<xsl:template match="example[ancestor::dd]">
+  <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="example[not(ancestor::dd)]">
 &lf;
 <xsl:text>.nf</xsl:text>&lf;
 <xsl:apply-templates />&lf;