Mauritz Jeanson [Fri, 30 Nov 2007 17:22:54 +0000 (17:22 +0000)]
Added an update the fix made in revision 7528 (handling of xref/link in no.anchor.mode mode).
Having xref in title is not a problem as long as the target is not an ancestor element.
Closes bug #1838136.
Note that an xref that is in a title and whose target is an ancestor element is still not
rendered in the TOC. This could be considered a bug, but on the other hand I cannot really
see the point in having such an xref in a document.
Michael Smith [Sat, 24 Nov 2007 15:57:13 +0000 (15:57 +0000)]
Remove xsl:output and omit-xml-declaration element, because it
seems to be causing problems with xsltproc. Closes bug #1785732.
Thanks to Denis Gillain for reporting.
I remember that the reason I added this originally was to work
around some other but in xsltproc (I think it was that it was
emitting an xml declaration even when output method is set to
text, or something) so this change is going to probably going to
cause a regression of that, but oh well
Mauritz Jeanson [Sat, 17 Nov 2007 14:33:59 +0000 (14:33 +0000)]
Removed obsolete paragraph saying that profiling stylesheets are needed for HTML Help,
JavaHelp, or Eclipse.
Added info about the warning message that is output if the stylesheets are unable to
add @xml:base.
Changed Saxon 8 to Saxon 9.
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.