Login  Register

Re: Adding Document Control to title page

Posted by metro on Apr 11, 2019; 5:33pm
URL: https://discuss.asciidoctor.org/Adding-Document-Control-to-title-page-tp6841p6842.html

I use the following process:

* put information like this in a separate adoc variables file
* include variable file in the master document
* generate docbook5
* generate .fo file using modified stylesheet and passing the adoc variables on the command line to xslt processor
* generate .pdf from .fo

MT
--

memo_variables.adoc:
:memoTo: John Doe

Part of modified docbook.xsl:
  <xsl:param name="memoTo"/>
...
         <fo:table-cell xsl:use-attribute-sets="titlepageTable">
            <fo:block xsl:use-attribute-sets="article.titlepage.recto.style">
              <xsl:value-of select="$memoTo"/>
            </fo:block>
          </fo:table-cell>