Mauritz Jeanson [Sat, 13 Oct 2007 07:03:17 +0000 (07:03 +0000)]
Added a "not(ancestor::title)" test to work around "too many nested
apply-templates" problems when processing xrefs or links in no.anchor.mode mode.
Hopefully, this closes bug #1811721.
Michael Smith [Wed, 10 Oct 2007 09:00:20 +0000 (09:00 +0000)]
Made some release-build changes:
- added "tests" target to DISTRIB_DEPENDS
- created "docsrc-clean" target and configured makefile so that
it gets run only when the release-clean target is run
- took variable definitions for stylesheets used in "make check"
smoketesting, and moved them to the Makefile.tests file
Michael Smith [Wed, 10 Oct 2007 08:54:48 +0000 (08:54 +0000)]
Added some DocBook XML source files for use with the "make check"
target. The makefile just causes these source file to be copied
over from the releasetools directory. These are useful for
downstream packagers in doing smoketesting.
In no.anchor.mode mode, do not output anchors for elements that are descendants
of <title>. Previously, having inline elements with @id/@xml:id in <title>s
resulted in anchors both in the TOC and in the main flow. Closes bug #1797492.
In the table.block template, added a check for the dbfo_keep-together PI, so that
a table may break (depending on the PI value) at a page break. This was needed
since the outer fo:block that surrounds fo:table has keep-together.within-column="always"
by default, which prevents the table from breaking. Closes bug #1740964 (Titled
table does not respect dbfo PI).
Refactored legalnotice/revhistory chunking, so that the use.id.as.filename
parameter as well as the dbhtml_filename PI are taken into account. A new named
template in titlepage.xsl is used to compute the filename.
An update to the fix for bug #1790495 (r7433):
The "ln-" prefix is output only when the legalnotice doesn't have an
@id/@xml:id, in which case the stylesheets generate an ID value,
resulting in a filename like "ln-7e0fwgj.html". This is useful because
without the prefix, you wouldn't know that the file contained a legalnotice.
The same logic is also applied to revhistory, using an "rh-" prefix.
Removed the [&scope;] predicate from the target variable in the template with name="reference".
This filter was the cause of missing index backlinks when @zone and @type were used on indexterms,
with index.on.type=1. Closes bug #1680836.
Michael Smith [Mon, 10 Sep 2007 11:12:44 +0000 (11:12 +0000)]
Added capability in FO output for displaying URLs for all
hyperlinks (elements marked up with xlink:href attributes) in the
same way as URLs for ulinks are already handled (which is to say,
either inline or as numbered footnotes).
Background on this change:
DocBook 5 allows "ubiquitous" linking, which means you can make
any element a hyperlink just by adding an xlink:href attribute to
it, with the value set to an external URL. That's in contrast to
DocBook 4, which only allows you to use specific elements (e.g.,
the link and ulink elements) to mark up hyperlinks.
The existing FO stylesheets have a mechanism for handling display
of URLs for hyperlinks that are marked up with ulink, but they did
not handle display of URLs for elements that were marked up with
xlink:href attributes. This change adds handling for those other
elements, enabling the URLs they link to be displayed either
inline or as numbered footnotes (depending on what values the user
has the ulink.show and ulink.footnotes params set to).
Note that this change only adds URL display support for elements
that call the simple.xlink template -- which currently is most
(but not all) inline elements.
This change also moves the URL display handling out of the ulink
template and into a new "hyperlink.url.display" named template;
the ulink template and the simple.xlink named template now both
call the hyperlink.url.display template.
Warning: In the stylesheet code that determines what footnote
number to assign to each footnote or external hyperlink, there is
an XPath expression for determining whether a particular
xlink:href instance is an external hyperlink; that expression is
necessarily a bit complicated and further testing may reveal that
it doesn't handle all cases as expected -- so some refinements to
it may need to be done later.
Closes #1785519. Thanks to Ken Morse for reporting and
troubleshooting the problem.
Added 'ln-' prefix to the name of the legalnotice chunk, in order to match the
<link href"..."> that is output by make.legalnotice.head.links (chunk-common.xsl).
Modified the href attribute on the legalnotice link.
Closes bug #1790495.
Michael Smith [Thu, 6 Sep 2007 12:44:41 +0000 (12:44 +0000)]
Changed "smoketest" target to "check". Thanks to Frederic Crozat
from Mandriva for the suggestion to include a makefile for a "make
check" in the upstream package.
Added <xsl:with-param name="quiet" select="$chunk.quietly"/> to calls to
the write.chunk, write.chunk.with.doctype, and write.text.chunk templates.
This makes chunk.quietly=1 suppress chunk filename messages also for help
support files (which seems to be what one would expect). See bug #1648360.
Michael Smith [Fri, 31 Aug 2007 17:11:32 +0000 (17:11 +0000)]
Made the xsl/tools/xsl/build/doc-link-docbook.xsl stylesheet
import profile-docbook.xsl, so that we can do profiling of release
notes. Corrected some problems in the target for the release-notes
HTML build.
Michael Smith [Fri, 31 Aug 2007 16:30:00 +0000 (16:30 +0000)]
Removed the hacky commenting system used for including different
text based on release type; the build now includes the text
conditionally based on profiling of the "condition" attribute.
Michael Smith [Thu, 30 Aug 2007 15:03:29 +0000 (15:03 +0000)]
Removed dependency of announce target on the release target. We
really don't need for it to depend on any build targets other than
the specific files (changes file, boilerplate) that it uses in
to create the announcement message.
Michael Smith [Thu, 30 Aug 2007 07:30:54 +0000 (07:30 +0000)]
In subsection titles in release notes and NEWS files, output the
title "Release Notes: N.NN.N" instead of "Release: N.NN.N"
(because the former reads better in announcements).
Michael Smith [Thu, 30 Aug 2007 01:45:28 +0000 (01:45 +0000)]
Updated stylesheets to display data on titlepage from othercredit
content (not just in author content). If there is an otherclass
attribute, the value of the is displayed. It really should also
look for the value of the class attribute, and use that unless it
is "other" (in which case it uses the otherclass value instead),
but that change will have to wait til later...