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: Re: [docbook-apps] Olinks and page numbers in FO output


Hi Robert,
Isn't this the same question you asked last week, for which I provided this
response?

http://lists.oasis-open.org/archives/docbook-apps/200509/msg00195.html

Did you not see the response?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Robert Hall" <rhall@vocera.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, September 26, 2005 9:48 AM
Subject: [docbook-apps] Olinks and page numbers in FO output


Using XSL 1.69.1, xsltproc, and FOP 0.20.5 to generate PDF from a
modular book.
An olink that includes %p in the xrefstyle results in an empty ref-id
attribute in the
fo:page-number-citation tag in the FO output, and FOP quits with this
message:
page-number-citation must contain "ref-id"

Here's a sample olink (to another chapter file in the same book):
See <olink targetdoc="aa" targetptr="SysReq" xrefstyle="template:%t on
page %p"/>

Here's the FO tag:
<fo:page-number-citation ref-id=""/>

I'm setting insert.olink.page.number="maybe" and
insert.xref.page.number="maybe"
on the xsltproc command line and using stock fo/docbook.xsl without a
customization layer.
(I logged a bug re: 1.69.1, insert.xref.page.number="yes", and generated
FO.
Perhaps there's a connection?)

An olink without the %p in the xrefstyle works fine:
See <olink targetdoc="aa" targetptr="SysReq" xrefstyle="template:%t"/>

DocBook XSL: The Complete Guide
(http://www.sagehill.net/docbookxsl/OlinkGentext.html) says,
"You can also use the %p placeholder to generate a page number reference
for an olink.
If it is an internal olink, then it will be handled like an xref."

And xrefs work as expected:
See <xref linkend="SysReq" xrefstyle="template:%t on page %p" />

yields the title and the page number.

Many thanks in advance to anyone who can shed some light.
-Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org






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