W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2002

RE: [xsl] FO: Show page number only if target is on different pag e

From: <DPawson@rnib.org.uk>
Date: Fri, 4 Oct 2002 06:56:59 -0400 (EDT)
Message-ID: <9B66BBD37D5DD411B8CE00508B69700F024A7BCC@pborolocal.rnib.org.uk>
To: xsl-list@lists.mulberrytech.com
Cc: public-qt-comments@w3.org




The 'page ident' / number isn't available until the formatter 
has done its stuff so no, no can do in XSL 1.0.

Nice one  for XSL 2.0 though.
Feature request?



regards DaveP

> In the very old days, when I used IBM BookMaster to produce printed
> documents from generic markup, BookMaster provided the feature of
> automatically suppressing the "on page xx" text generated by cross
> references if the thing referenced was on the same page as the
> reference.
> 
> I would like to do the same thing with XSL FO but I don't think it's
> possible in XSL 1.0. That is, I'd like to be able to do something like
> this:
> 
> <xsl:template match="crossref">
>   <fo:inline>
>     <xsl:apply-templates select="id(@refid)" mode="xref"/>
>     <fo:if-not-on-current-page ref-id="{generate-id(id(@refid))}">
>       <xsl:text>, on page </xsl:text>
>       <fo:page-number-citation ref-id="{generate-id(id(@refid))}"/>
>     </fo:if-not-on-current-page>
>   </fo:inline>
> </xsl:template>
> 
> Is something like this possible today or should I submit this as an
> extension requirement? Is this already a logged RFE?
> 
> Thanks,
> 
> Eliot
> -- 
> W. Eliot Kimber, eliot@isogen.com
> Consultant, ISOGEN International
> 
> 1016 La Posada Dr., Suite 240
> Austin, TX  78752 Phone: 512.656.4139
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 
Received on Friday, 4 October 2002 07:36:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT