Re: [xep-support] Does XEP have an extension to conditional renderingofpage number in xrefs?

From: Eliot Kimber <>
Date: Thu Sep 28 2006 - 05:52:56 PDT

Michael Sulyaev wrote:
> Hood, Earl wrote:
>> The goal: Xrefs only include the page number if the item referenced is
>> on a different page from the xref.
>> It appears that XSL 1.0 and 1.1 provides no capabilities to achieve
>> this goal. Does XEP provide an extension to help satisfy this goal?

Let me try, because this is a very common requirement that is one of the
key things you cannot do with XSL-FO out of the box (without a two-pass

Say you have these FOs:

<fo:block id="block-01">Some Title Text</fo:block>
<fo:basic-link internal-destination="block-01">Some Title
Text</fo:basic-link> on page <fo:page-number-citation

The requirement is that when block block-01 and the page-number-citation
are on the same page, then the entire "on page
<fo:page-number-citation/>" be suppressed.

If the they are on different pages, then they are not suppressed.

You could do this at the XSLT level by using a two-pass process that
uses the XEP (or equivalent other proprietary intermediate form) area
tree to determine the relative page relationships of the different
elements and suppress them or not on the second pass.

But I could also imagine an extension element such as:

<xep:suppress-if-same-page ref-id="block-01"> on page
<fo:page-number-citation ref-id="block-01"/></xep:suppress-if-same-page>

I will also observe that the XSL-FO 2.0 requirements meeting will be in
October--that would be a good time to submit any requirements like this
to the XSL-FO editors (with appropriate use cases, justification, and
some sort of priority ranking).



W. Eliot Kimber
Professional Services
Innodata Isogen
9390 Research Blvd, #410
Austin, TX 78759
(214) 954-5198
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Thu Sep 28 06:14:36 2006

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 06:14:40 PDT