|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Numbering cross refs
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="{@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="{@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="{@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








