Code Search for Developers
 
 
  

html2roff.xsl from Amavisd-new Maintenance at Krugle


Show html2roff.xsl syntax highlighted

<?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: html2roff.xsl 6301 2006-09-14 07:41:54Z xmldoc $
     ********************************************************************

     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="/">
    <xsl:apply-templates/>
    <xsl:text>&#x0a;</xsl:text>
  </xsl:template>

  <xsl:template match="node() | @*">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>

  <!-- ==================================================================== -->

  <xsl:template match="br">
    <xsl:element name="xsl:text">&#10;.&#10;</xsl:element>
  </xsl:template>

  <xsl:template match="pre">
    <xsl:element name="xsl:text">.sp&#10;</xsl:element>
    <xsl:element name="xsl:text">.nf&#10;</xsl:element>
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
    <xsl:element name="xsl:text">&#10;.fi&#10;</xsl:element>
  </xsl:template>

</xsl:stylesheet>




See more files for this project here

Amavisd-new Maintenance

AmavisAdmin is a tool to maintain SPAMs, Viruses and blocked mails written to an SQL database by Amavisd-new. Mails can be removed automatically or manually, or they can be released to be send to the recipients.

Project homepage: http://sourceforge.net/projects/amavisadmin
Programming language(s): Java,XML
License: other

  addnewline.xsl
  clrefentry.xsl
  dblatex-release-notes.xsl
  doc-link-docbook.xsl
  docbook-elements.xsl
  docparam2txt.xsl
  html2roff.xsl
  identity.xsl
  jref2refsect1.xsl
  jrefhtml.xsl
  lrefentry.xsl
  make-elements.xsl
  make-xsl-params.xsl
  pirefentry.xsl
  reference-fo.xsl
  reference-txt.xsl
  reference.xsl
  tdg-link.xsl
  xsl-param-link.xsl
  xsl-params.xsl
  xsl2jref.xsl