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

Eliot Kimber ekimber at innodata-isogen.com
Thu Sep 28 05:52:56 PDT 2006


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 
process).

Say you have these FOs:

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

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).

Cheers,

Eliot
-- 
W. Eliot Kimber
Professional Services
Innodata Isogen
9390 Research Blvd, #410
Austin, TX 78759
(214) 954-5198

ekimber at innodata-isogen.com
www.innodata-isogen.com
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list