<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Mon, 2011-03-21 at 17:46 -0700, Dan Nicholson wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <TT><FONT COLOR="#1a1a1a">I'm not volunteering to do it, but I always thought it would be nice</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">if the doc macros actually tried to generate a test doc instead of</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">just checking for tools in the path. It's fairly easy to get xmlto in</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">your path but actually have a hosed up docbook toolchain.</FONT></TT><BR>
    <BR>
</BLOCKQUOTE>
There has been attempts to do that. It brings its own problems.<BR>
That amounts to &quot;testing&quot; the software to see if it works well enough.<BR>
<BR>
This is done in the compiler world to test for features or behaviors.<BR>
This world is well tested, highly backward compatible. Not so for doctools.<BR>
<BR>
In order to have a meaningful test (other than a zero byte file), one<BR>
would require something like this:<BR>
&lt;!DOCTYPE book PUBLIC &quot;-//OASIS//DTD DocBook XML V4.3//EN&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<A HREF="http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd</A>&quot;&gt;<BR>
<BR>
Note the version number. This would eventually break when 4.3 is no longer<BR>
available. By design Docbook is meant not to be backward compatible from<BR>
one major version to another. In our case, util-macros would eventually cease<BR>
to build older versions creating hard to diagnose problems.<BR>
<BR>
Currently we test for the path and optionally a version number.<BR>
Nothing prevents us from adding additional tests, providing we are<BR>
sure it works correctly on all platforms and across time as well.<BR>
<BR>
Right now, we have a docbook feature which only works with a recent version<BR>
of docbook-xsl as documentation in the README:
<BLOCKQUOTE>
<PRE>
The pdf/ps &quot;inside the document&quot; references only started working with
docbook-xsl v 1.76.1 which is not yet available to your favorite O/S.
In xorg-fo.xsl, insert.olink.pdf.frag must be set to zero which allows
the reference to at least point to the top of the document.
</PRE>
</BLOCKQUOTE>
I can't think of any test to verify the feature works or not. It would be nice if the technology<BR>
had some built-in design to do that. I agree with your requirement but the implementation<BR>
is not trivial, even when possible.<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>