In message <[EMAIL PROTECTED]> on Mon, 17 Jul 2006 19:51:53 +0100, "Dave
Pawson" <[EMAIL PROTECTED]> said:
dave.pawson> http://www.docbook.org/tdg/en/html/funcparams.html
dave.pawson>
dave.pawson> Is that any help?
That's what I've tried, and it seems like it doesn't add the
parenthesis it should. I just experimented with the attached foo.xml,
and did the following command do convert:
: ; db2x_xsltproc -s man foo.xml | db2x_manxml
The result is attached as foo.3. Note that the parameters to the
function pointer don't have parenthesis around them. And also, the
indentation of the include line is buuuuut-ugly, not quite what I
expected. Spaces are a little to well obeyed, me thinks...
BTW, I do this on a freshly updated Debian unstable.
Cheers,
Richard
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte [EMAIL PROTECTED]
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
<?xml version='1.0'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBk XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<refentry>
<refentryinfo>
<author>
<firstname>Richard</firstname>
<surname>Levitte</surname>
<contrib>Original author</contrib>
<email>[EMAIL PROTECTED]</email>
</author>
</refentryinfo>
<refmeta>
<refentrytitle>foo</refentrytitle>
<manvolnum>3</manvolnum>
</refmeta>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
#include <foo.h>
</funcsynopsisinfo>
<funcprototype>
<funcdef>void <function>sort</function></funcdef>
<paramdef>int *<parameter>arr</parameter>[]</paramdef>
<paramdef>int <parameter>(* comp)</parameter>
<funcparams>int *, int *</funcparams></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
</refentry>
.TH foo 3
.SH SYNOPSIS
.nf
#include <foo.h>
.fi
.sp 1
.PP
void \fIsort\fR(int *\fIarr\fR[], int \fI(* comp)\fR
int *, int *);