If there are EDoc comments in a module, the escript
Example:
1> escript $(ERL_TOP)/lib/erl_docgen/priv/bin/xml_from_edoc.escript ex1.erl
If there are OTP DTD codeinclude tags in the source XML file, the escript
Example:
1> escript $(ERL_TOP)/lib/erl_docgen/priv/bin/codeline_preprocessing.escript \
ex1.xmlsrc ex1.xml
These parameters to
When generating HTML one also needs these three pramaters to
Example:
1> xsltproc --noout --stringparam outdir /tmp/myhtmldoc \
--stringparam docgen $(ERL_TOP)/lib/erl_docgen \
--stringparam topdocdir . \
--stringparam pdfdir "$(PDFDIR)" \
--xinclude \
--stringparam gendate "December 5 2011" \
--stringparam appname MyApp \
--stringparam appver 0.1 \
-path $ERL_TOP/lib/erl_docgen/priv/dtd \
-path $ERL_TOP/lib/erl_docgen/priv/dtd_html_entities \
$ERL_TOP/lib/erl_docgen/priv/xsl/db_html.xsl mybook.xml
The generation of the PDF file is done in two steps. First is
Example:
1> xsltproc --output MyApp.fo \
--stringparam docgen $ERL_TOP/lib/erl_docgen \
--stringparam gendate "December 5 2011" \
--stringparam appname MyApp \
--stringparam appver 0.1 \
--xinclude \
-path $ERL_TOP/lib/erl_docgen/priv/dtd \
-path $ERL_TOP/lib/erl_docgen/priv/dtd_html_entities \
$ERL_TOP/lib/erl_docgen/priv/xsl/db_pdf.xsl mybook.xml
2> fop -fo MyApp.fo -pdf MyApp.pdf
Unix man pages can be generated with
Example:
1> xsltproc --output my_module.3\
--stringparam docgen $ERL_TOP/lib/erl_docgen \
--stringparam gendate "December 5 2011" \
--stringparam appname MyApp \
--stringparam appver 0.1 \
--xinclude -path $ERL_TOP/lib/erl_docgen/priv/dtd \
-path $ERL_TOP/lib/erl_docgen/priv/dtd_man_entities \
$ERL_TOP/lib/erl_docgen/priv/xsl/db_man.xsl my_refpage.xml
The output from the