OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: xpointer problem with refentry


We have various xml files in the build tree, some of which have command-line 
options listed in them.  It would be great if I could create a manpage by 
including the various lists thus:

<refentry id="valgrind">
... ...

<refsect1 id="options">

<xi:include href="hg-manual.xml" xpointer="xpointer(id('hg-cmd-options'))"
            xmlns:xi="http://www.w3.org/2001/XInclude"; />
<xi:include href="cl-manual.xml" xpointer="xpointer(id('cl-cmd-options'))"
            xmlns:xi="http://www.w3.org/2001/XInclude"; />
... ...


However, I cannot get this to work.  If I generate the refentry as html, then 
everything is just peachy.  But when I do this:
  xsltproc -o ./man/ /path/to/manpages/docbook.xsl man-page.xml
I get this:
  No template matches xi:include in refsect1.

And in the output file:
This program follows the usual GNU command line syntax, with long options 
starting with two dashes ('\-\-'). A summary of the most important options is 
included below.
<xi:include></xi:include>.SH "SEE ALSO"

I've tried every permutation of xpointer syntax that I can find on the web, 
but have found no solution.  The other syntax that generates html with no 
complaints is:
<xi:include href="cl-manual.xml" xpointer="element(cmd-options)"
            xmlns:xi="http://www.w3.org/2001/XInclude"; />

According to this:

this should work (and it does for html):
<xi:include href="cl-manual.xml" xpointer="cl-cmd-options"
            xmlns:xi="http://www.w3.org/2001/XInclude"; />

but no joy for a manpage even though all *.xml files have this:
<?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"

I've also tried this approach:
but I don't think I understand enough to make it work.

What's the simplest way around this problem?


There is not a shred of evidence to suggest 
that life should be taken seriously

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]