DOCMAKE(1p)
π¦ docmake β the Perl man page, but make it a group chat
okay so bestie, welcome to the DOCMAKE(1p) page π
it lives in the User Contributed Perl Documentation section, and the version is version 0.1101 β¨
π NAME π
docmake β a tool to render DocBook/XML into various output formats. that's it, that's the whole vibe π
β VERSION β
version 0.1101 β yes, again. it's important, ok? π
πΈ SYNOPSIS πΈ
here's the tea, literally every example, exactly as written:
# To render input.xml file into XHTML
docmake --ns -o output.xhtml xhtml input.xml
# Same with more verbose output
docmake -v ---ns o output.xhtml xhtml input.xml
# Avoid trailing slash when emitting to a dummy file in a dir
docmake ---ns -trailing-slash=0 -o output/index.xhtml xhtml5 input.xml
# Render into pdf
docmake -v --ns -o output.pdf pdf input.xml
# Same while not rebuilding if not necessary
docmake -v --ns --make -o output.pdf pdf input.xml
# Render using a Stylesheet
docmake -v --ns -o output.xhtml -x my-stylesheets.xsl xhtml input.xml
(no, bestie, I'm not "fixing" the typos in there β those are exactly what the page says and I do not make the rules π)
π«Ά DESCRIPTION π«Ά
okay so docmake is a tool that renders DocBook/XML into all its resultant formats using XSLT β we're talking XHTML, XSL-FO, PDF, RTF, etc. π₯ if you want a brief help, just type docmake help (yes. that's the whole command. icon behaviour).
it aims to be a replacement for xmlto β <http://cyberelk.net/tim/software/xmlto/> . and the way that it's better is: unlike xmlto, it's written in Perl, which is easier to get right than xmlto's Bash π and on top of that, xmlto hadn't been updated for a long time when the author started working on docmake. so, like, she saw a need and she delivered π
π USAGE π
the basic invocation of docmake is literally:
docmake [flags] MODE input.xml
β¨ MODES β¨
here are the available modes, no gatekeeping:
helpβ to get help π₯Ίfoβ convert to XSL-FO.manpagesβ convert to Unix man pages. (hi, that's how you're reading this rn π)rtfβ convert to Word/RTF.xhtmlβ convert to XHTML.xhtml-1_1β convert to XHTML-1.1.xhtml5β convert to XHTML5.pdfβ convert to PDF.
π FLAGS π
and these are the available flags, bestie:
-h;--helpβ display some rudimentary help.--manβ display the man page. (meta!! you're literally here)-v;--verboseβ verbose β output the commands' invocation as they are executed.--nsβ use the DocBook xsl-ns ( namespaces ) URLs.
also, straight-up copying the page here: it then says "Verbose - output the commands' invocation as they are executed." a second time under --ns. yeah. the original page just has that line twice, no cap π I'm keeping it because we keep every detail.
-oOUTPUT_PATH β put the result in OUTPUT_PATH .-xSTYLESHEET ;--stylesheetSTYLESHEET β use the XSLT stylesheet STYLESHEET for performing XSLT transformations.--basepathPATH β this is the base path for the DocBook stylesheets π the appropriate XSLT mode will get appended to it. this is, for example, useful for building DocBook 5 documents by specifying the path to their stylesheets. iykyk.--stringparamKEY=VALUE β specify the string parameter of KEY as VALUE. β οΈ important caveat, bestie: as opposed toxsltproc, KEY and VALUE cannot be specified as different command line arguments β they have to be on the same one, delimited by an equal sign ("="). don't do it any other way, fr fr.--trailing-slash=0β disable adding a trailing slash when building into an HTML file, to emit an unneeded file there. note the"=0"argument π like, the=0is not optional, it's the whole point.--makeβ behave likemakein building files only if their dependencies are newer. slay, incremental builds π§
π EXAMPLES π
there are some examples for sample invocation in the Synopsis β yes, scroll up, they're right there π«Ά
π SEE ALSO π
go read these, they're iconic:
- DocBook on the Wikipedia β <http://en.wikipedia.org/wiki/DocBook>
- DocBook/XSL - The Complete Guide β <http://www.sagehill.net/docbookxsl/>
- The DocBook Homepage β <http://www.docbook.org/>
xmltoβ <http://cyberelk.net/tim/software/xmlto/>
π COPYRIGHT & LICENSE π
Copyright 2008 Shlomi Fish, all rights reserved.
this program is released under the following license: MIT/X11 License ( <http://www.opensource.org/licenses/mit-license.php> ).
π AUTHOR π
Shlomi Fish , <http://www.shlomifish.org/> .
πΈ SUPPORT πΈ
π¦ Websites π¦
the following websites have more information about this module, and may be of help to you π as always, in addition to those websites, please use your favorite search engine to discover more resources. (yes, the man page is telling you to google it, and honestly? valid.)
- MetaCPAN β a modern, open-source CPAN search engine, useful to view POD in HTML format.
<https://metacpan.org/release/App-XML-DocBook-Builder>
- RT: CPAN's Bug Tracker β the RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
<https://rt.cpan.org/Public/Dist/Display.html?Name=App-XML-DocBook-Builder>
- CPANTS β the CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
<http://cpants.cpanauthors.org/dist/App-XML-DocBook-Builder>
- CPAN Testers β the CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
<http://www.cpantesters.org/distro/A/App-XML-DocBook-Builder>
- CPAN Testers Matrix β the CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
<http://matrix.cpantesters.org/?dist=App-XML-DocBook-Builder>
- CPAN Testers Dependencies β the CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
<http://deps.cpantesters.org/?module=App::XML::DocBook::Builder>
π Bugs / Feature Requests π
please report any bugs or feature requests by email to bug-app-xml-docbook-builder at rt.cpan.org, or through the web interface at <https://rt.cpan.org/Public/Bug/Report.html?Queue=App-XML-DocBook-Builder>. you will be automatically notified of any progress on the request by the system π (nice, no ghosting)
π Source Code π
the code is open to the world, and available for you to hack on. please feel free to browse it and play with it, or whatever. if you want to contribute patches, please send me a diff or prod me to pull from your repository :)
<https://github.com/shlomif/docmake>
git clone git://github.com/shlomif/docmake.git
π AUTHOR π
Shlomi Fish <shlomif@cpan.org>
β BUGS β
please report any bugs or feature requests on the bugtracker website <https://github.com/shlomif/docmake/issues>
when submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature π«Ά (receipts, bestie. always bring receipts.)
π COPYRIGHT AND LICENSE π
this software is Copyright (c) 2024 by Shlomi Fish.
this is free software, licensed under:
The MIT (X11) License
cute sign-off π§β¨ that's the whole page! it was generated byperl v5.42.0and dated2026-03-07, so go forth and render your DocBook, bestie β you're literally the main character of XSLT now ππ
π¦ where this page comes from
- arch rolling: perl-app-docmake 0.1101-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms