xsl-list
[Top] [All Lists]

RE: Numbering cross refs

2003-12-11 07:05:16
So heres what if have now and I get the word Fig. but no numbers at all.
I'm using Antenna House.

<xsl:template match="figure">
  <fo:block id="{(_at_)id}" text-align="center" font-style="italic"
keep-together.within-page="always">
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

<xsl:template match="graphic">
<fo:wrapper keep-together.within-page="always">
    <fo:external-graphic src="{(_at_)boardno}"/>
    <fo:block space-after="5mm" id="{generate-id(.)}">
        <xsl:text>Fig 
        </xsl:text>
        <xsl:number count="figure" level="any" from="mainfunc" format="1
"/>
            <xsl:value-of select="preceding-sibling::title"/>
        <xsl:if test="preceding-sibling::sheet">
            <xsl:text> Sheet
            </xsl:text>
            <xsl:number count="sheet" level="any" from="figure"
format="1 "/>
            <xsl:text> of
            </xsl:text>
            <xsl:value-of select="preceding-sibling::sheet/@total"/>
        </xsl:if>
        <xsl:apply-templates/>
    </fo:block>
        </fo:wrapper>
</xsl:template>

<xsl:template match="xref">
            <fo:basic-link background-color="lightblue"
internal-destination="{(_at_)xrefid}">
                <xsl:text>Fig. </xsl:text>
                <xsl:for-each select="id(@xrefid)">
                    <xsl:number count="figure" level="any"
from="mainfunc" format="1"/>
                    </xsl:for-each>
            </fo:basic-link>
</xsl:template>
 


Confidentiality Notice
The information contained in this e-mail is confidential and intended for use 
only by the person(s) or organization listed in the address. If you have 
received this communication in error, please contact the sender at O'Neil & 
Associates, Inc., immediately. Any copying, dissemination, or distribution of 
this communication, other than by the intended recipient, is strictly 
prohibited.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>