FO RFE: Page-aware conditional inclusion

"W. Eliot Kimber" <[email protected]>
Newsgroups gmane.org.w3c.xsl-editors
Organization ISOGEN International
Message-ID <[email protected]>
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 it's not
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>

Thanks,

Eliot
-- 
W. Eliot Kimber, [email protected]
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.