[xep-support] Formatting indices with rx exstention

Jerry Janofsky JanofskyJ at comcast.net
Fri Oct 6 07:30:41 PDT 2006


 

I am trying to format an index using rx extensions. Everything looks fine if
the index entry fits on a single line, however, if the entry scrolls to
another line I have trouble with the justification.  I've tried various
combinations of blocks and justifications, however, I can't seem to get it
right.

 

Here is an example of my rendered index.  The first line looks fine because
it is both right and left justified and does not need to scroll. The second
line has a problem because text-align-last="justify" is forcing the page
numbers to spread out. The third entry would be fine if the scrolled line
would indent.  

 

G

Gelman, Martin L., MD..............48, 129

Girolamo, Jr., Allessandro A., MD.....37,

1                     1                     8

Greenwald, Lawrence L., MD,

FACC...........................................15, 96

 

 

Below is what I think would be acceptable. How do I do this? 

 

G

Gelman, Martin L., MD..............48, 129

Girolamo, Jr., Allessandro A., MD.....37,

   118

Greenwald, Lawrence L., MD,

   FACC...........................................15, 96

 

 

Below is the template that generates the first example.

 

<xsl:template match="dir:name">
  <fo:block text-align-last="justify">
     <xsl:value-of select="concat(dir:lastname, ', ', dir:firstname, ' ',
dir:mi, ', ', dir:title)"/>
         <fo:leader leader-pattern="dots"/>
         <rx:page-index>
            <rx:index-item link-back="true">
                <xsl:attribute name="ref-key">
                    <xsl:value-of select="parent::dir:person/@id"/>
                </xsl:attribute>
            </rx:index-item>
         </rx:page-index>
        </fo:block>
    </xsl:template>

 

 

 

Jerry Janofsky

Ames on Demand

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20061006/cb1f5262/attachment.html>


More information about the Xep-support mailing list