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
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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
Received on Fri Oct 6 07:40:34 2006
This archive was generated by hypermail 2.1.8 : Fri Oct 06 2006 - 07:40:38 PDT