xenapiadmin.com

Using xsltproc manually
 
So here's the results using various stylesheets. 
 
To create the pdf file

xsltproc -o intermediate-fo-file.fo \
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl example_manpage.xml
fop -pdf foo.1.pdf -fo intermediate-fo-file.fo ; rm intermediate-fo-file.fo

 

To create a manpage

 

xsltproc --nonet --param man.charmap.use.subnet "0" --param make.year.ranges "1" --param make.single.year.ranges "1" http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl example_manpage.xml

 

To create an html webpage

 

xsltproc -o manpage.html --nonet --param man.charmap.use.subnet "0" --param make.year.ranges "1" --param make.single.year.ranges "1" /usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl example_manpage.xml

 

 

To create an epub document for ereaders

 

xsltproc -o manpage.epub --nonet --param man.charmap.use.subnet "0" --param make.year.ranges "1" --param make.single.year.ranges "1" /usr/share/xml/docbook/stylesheet/docbook-xsl/epub/docbook.xsl example_manpage.xml

 

To create slides - not sure what that means, seems to error.

 

xsltproc -o manpage.slides --nonet --param man.charmap.use.subnet "0" --param make.year.ranges "1" --param make.single.year.ranges "1" /usr/share/xml/docbook/stylesheet/docbook-xsl/slides/docbook.xsl example_manpage.xml

 

 

Do you see why I'm harping on DocBook as the way to go? I've created a directory of the outputs of these lines above so you can browse them. 

http://portal.acs.edcc.edu/xcpdocs/